Flyte 2: Reliable ML Orchestration at Scale

Reliably orchestrate ML pipelines, models, and agents at scale — in pure Python.

Source repo
flyteorg/flyte
Stars
★ 7.7k
Last updated
2d ago
License
Apache-2.0
Primary language
Go

At a glance

How it runs
CLILibrary / SDK
Works with
Platform-specific
Cost
Free tier plus a paid hosted plan
Setup effort
Medium · a few setup steps
You'll need
Python 3.12uvShell / CLINetwork accessLocal filesystem
Typical use
Data scientists who want to define an ML pipeline using pure Python without deep infrastructure knowledge.
Not a fit if
  • Teams needing a production backend today; the open source backend is not yet released
  • Teams that must run fully self-hosted or offline; the production-grade backend is only on Union.ai
  • Users staying on Flyte 1 who do not want to migrate

What does this agent do, and when should you use it?

Flyte 2 is an open-source, Kubernetes-native AI orchestration platform that coordinates data, models, and compute to build AI workflows at scale. It provides a Python SDK and CLI for defining and running tasks, workflows, and serving models with FastAPI. Flyte 2 handles asynchronous task execution and concurrency, and is a graduated project of the LF AI & Data Foundation. This repository currently contains the SDK and local development experience (including a TUI), while the Kubernetes backend is announced as coming soon or available for enterprise via Union.ai.

Flyte 2 allows users to define tasks using Python decorators (e.g., @env.task) and orchestrate workflows using async concurrency. It provides TaskEnvironment to specify container images and dependencies. Users can run workflows either from Python or CLI, with CLI commands like flyte run hello.py main --numbers '[1,2,3]'. Models can be served via FastAPI applications using FastAPIAppEnvironment and flyte serve. The platform simplifies running multi-step ML pipelines by managing orchestration and concurrency of async executions.

  1. Data scientists who want to define an ML pipeline using pure Python without deep infrastructure knowledge.
  2. ML engineers needing to orchestrate asynchronous tasks reliably and at scale on Kubernetes.
  3. Teams that want to serve models with a REST API using FastAPI.
  4. Developers looking for a rich local development experience with a TUI for rapid iteration.
  5. Organizations that need a production-grade orchestration platform for AI workloads at scale.

How do you install or deploy this agent?

Install Flyte using uv pip install flyte. For the TUI local development experience, use uv pip install flyte[tui].

How do you use this agent?

  1. Initialize a Flyte environment: env = flyte.TaskEnvironment(name="hello_world", image=flyte.Image.from_debian_base(python_version=(3, 12)))
  2. Define tasks using @env.task and call them with async functions or concurrently.
  3. Initialize Flyte with flyte.init() and run the workflow with flyte.run(main, numbers=list(range(10))).
  4. Alternatively, use the CLI: flyte run hello.py main --numbers '[1,2,3]'.
  5. For serving models, create a FastAPI app, wrap it with FastAPIAppEnvironment, and serve with flyte.serve(env).

What are this agent's strengths and limitations?

Pros
  • Pure Python SDK for ease of adoption.
  • Async task support for efficient concurrency.
  • Local development TUI for enhanced developer experience.
  • Kubernetes-native for scalable deployments.
  • Graduated project under LF AI & Data Foundation.
Limitations
  • Backend is not yet available; must wait or use enterprise solution.
  • Requires Python 3.12 and uv, which may necessitate environment adjustments.
  • Potential migration complexity from Flyte 1.
  • Documentation points to external sites, not in-repo.

How does this agent compare with similar options?

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
Flyte 2: Reliable ML Orchestration at Scale This agent 0 · Major gaps CLIFreemium ★ 7.7k 2d ago Go —
Metaflow 77 · Good Library / SDKFree ★ 10k 3d ago Python —
Sparrow Document Intelligence Platform 29 · Major gaps CLIFree + model costs ★ 5.2k 11d ago Python —
DecisionBox 44 · Major gaps Self-hosted serviceFree + model costs ★ 120 20d ago Go OpenAI API · Claude API

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Major gaps
0/ 100 5-point scale 0.0 / 5
This review covers the source as of Aug 11, 2026. The project has shipped 12 stable release(s) since, which have not been re-reviewed. The score and verdict describe the reviewed version only. Recent releases ↓
Trust 0/29
Reliability 0/14
Adaptability 0/18
Convention 0/18
Effectiveness 0/13
Verifiability 0/8
Why each dimension lost points
Trust0 / 29 · 0.0/5

Insufficient evidence: The repository does not provide explicit documentation on permission model, user confirmation, data flow transparency, sensitive data handling, dependency security, external effects, rollback, or source attribution. All criteria scored 0 due to lack of evidence.

Reliability0 / 14 · 0.0/5

Insufficient evidence: No explicit evidence for self-consistency, dependency availability, or failure messages. All criteria scored 0 due to lack of evidence.

Adaptability0 / 18 · 0.0/5

Insufficient evidence: No explicit documentation on target audience, capability boundaries, trigger precision, or environment fit. All criteria scored 0 due to lack of evidence.

Convention0 / 18 · 0.0/5

Insufficient evidence: No explicit evidence for information architecture, install notes, naming stability, examples/FAQ, known limitations, license, versioning, or maintenance responsibility. All criteria scored 0 due to lack of evidence.

Effectiveness0 / 13 · 0.0/5

Insufficient evidence: No explicit evidence for output usability, marginal value, or cost-benefit. All criteria scored 0 due to lack of evidence.

Verifiability0 / 8 · 0.0/5

Insufficient evidence: No explicit evidence for claim traceability, cross-source corroboration, or fact-inference separation. All criteria scored 0 due to lack of evidence.

Risks and how to mitigate them
  • Not found in source: least-privilege scopingGrant only what the task needs: a dedicated account or read-only token, scoped to specific directories and repos.
  • Not found in source: confirmation before actingTurn on (or add) a confirmation step before it acts, and try it in a sandbox or test environment before real data.
  • Not found in source: data-flow disclosureWatch which external services it contacts (proxy or firewall logs) and keep sensitive data out until you know where it goes.
  • Not found in source: sensitive-data handlingUse dedicated, low-privilege, revocable API keys — never production credentials — and keep secrets out of logs.
  • Not found in source: dependency securityPin versions and run a dependency audit (npm audit, pip-audit) before installing; prefer running it in a container.
  • Not found in source: disclosed external effectsEstablish which external systems it writes to, sends to or changes, and verify with test accounts or repos before production.
  • Not found in source: rollback or recovery pathBack up first, or work on a git branch or snapshot, so its changes can be undone.
  • Not found in source: verifiable attributionInstall from the official repo or registry and check the publisher and URL to avoid look-alike packages.
  • The repository content is insufficient to support a comprehensive assessment of the Agent product; more documentation or code details are needed.
  • Publisher identity is unverified; caution is advised.
Evidence confidence: Low Reviewed Aug 11, 2026 Reviewed revision da172dbf606f New commits since this review; the score may not cover them
See the full review method →

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. v2.0.51
    Release notes excerpt
    What's Changed * fix(copilot): download multipart blob items through the authenticated store by @k1sauce in https://github.com/flyteorg/flyte/pull/8077 * fix(executor): surface Kueue preemptions as system retries with their reason by @AdilFayyaz in https://github.com/flyteorg/flyte/pull/8070 * feat: add queue_id to SelectClusterRequest by @EngHabu in https://github.com/flyteorg/flyte/pull/8088 * idl: restrict the character set of artifact name and version by @EngHabu in https://github.com/flyteorg/flyte/pull/8092 …
    View on GitHub ↗
  2. v1.16.9
    Release notes excerpt
    What's Changed * [Feat] add sleep plugin by @machichima in https://github.com/flyteorg/flyte/pull/7579 * build(deps): bump github.com/prometheus/client_golang from 1.23.2 to 1.24.1 by @dependabot[bot] in https://github.com/flyteorg/flyte/pull/7724 * build(deps): bump gorm.io/driver/postgres from 1.6.0 to 1.6.1 by @dependabot[bot] in https://github.com/flyteorg/flyte/pull/7734 * update README messaging for Flyte v2 by @cosmicbboy in https://github.com/flyteorg/flyte/pull/7769 …
    View on GitHub ↗
  3. v2.0.50
    Release notes excerpt
    What's Changed * fix(flytek8s): dedupe container env vars by name in DecorateEnvVars by @AdilFayyaz in https://github.com/flyteorg/flyte/pull/8053 * build(deps): bump google.golang.org/api from 0.297.0 to 0.298.0 by @dependabot[bot] in https://github.com/flyteorg/flyte/pull/8062 * build(deps): bump sigs.k8s.io/controller-runtime from 0.25.0 to 0.25.1 by @dependabot[bot] in https://github.com/flyteorg/flyte/pull/8061 * build(deps): bump github.com/aws/aws-sdk-go-v2/service/secretsmanager from 1.49.0 to 1.50.0 by @dependabot[bot] in https://github.com/flyteorg/flyte/pull/8059 …
    View on GitHub ↗

FAQ

How does Flyte 2 differ from Flyte 1?
Flyte 2 focuses on pure Python orchestration with async task capabilities, while Flyte 1 is the original Kubernetes-native workflow engine. The backend for Flyte 2 is under development.
Can Flyte 2 be self-hosted?
Currently, the open-source backend is not released; users can use the local development mode or get the enterprise backend from Union.ai.
Does Flyte 2 support model serving?
Yes, via FastAPI applications and FastAPIAppEnvironment.
What license does Flyte 2 use?
Apache 2.0.
View on GitHub ↗ Install ↓

Related agents