flyteorg/flyte
flyteorg/flyte has 7,803 GitHub stars and 914 forks. GitHot measured +1 stars in 24 hours, -37 in 7 days, and -29 in 15 days. Last checked 2026-11-23 10:28 UTC. Last push 2026-11-22.
实测星标增长
- 24小时
- +1
- 7天
- -37
- 15天
- -29
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
关于
在你的 k8s 上以类型安全的方式分布式编排智能体、机器学习流水线和实时推理——完全使用 Python 的 async/await,也支持其他语言(Rust、Go 和 TypeScript)
机器学习README.md
原文[!IMPORTANT]
Flyte 2 is now generally available!
Read more in the announcement here.
Want to try Flyte 2 locally? Run the Devbox locally, or you can try it on Github Codespaces.
Looking for Flyte 1? Go to the master branch, where Flyte 1 is now maintained.
Flyte 2
Reliably orchestrate ML pipelines, models, and agents at scale — in pure Python.
Flyte is a Graduated project of the LF AI & Data Foundation.
10 minutes to Flyte 2
The quickest way to get a feel for Flyte 2 is in this notebook:
Install
uv pip install flyte
For the full SDK and development tools, see the flyte-sdk repository.
Example
import asyncio
import flyte
env = flyte.TaskEnvironment(
name="hello_world",
image=flyte.Image.from_debian_base(python_version=(3, 12)),
)
@env.task
def calculate(x: int) -> int:
return x * 2 + 5
@env.task
async def main(numbers: list[int]) -> float:
results = await asyncio.gather(*[
calculate.aio(num) for num in numbers
])
return sum(results) / len(results)
if __name__ == "__main__":
flyte.init()
run = flyte.run(main, numbers=list(range(10)))
print(f"Result: {run.result}")
| Python | Flyte CLI |
|
|
Serve a Model
# serving.py
from fastapi import FastAPI
import flyte
from flyte.app.extras import FastAPIAppEnvironment
app = FastAPI()
env = FastAPIAppEnvironment(
name="my-model",
app=app,
image=flyte.Image.from_debian_base(python_version=(3, 12)).with_pip_packages(
"fastapi", "uvicorn"
),
)
@app.get("/predict")
async def predict(x: float) -> dict:
return {"result": x * 2 + 5}
if __name__ == "__main__":
flyte.init_from_config()
flyte.serve(env)
| Python | Flyte CLI |
|
|
Local Development Experience
Install the TUI for a rich local development experience:
uv pip install flyte[tui]
Open Source Backend
The open source backend for Flyte 2 is coming soon. This repository will contain the Kubernetes-native backend infrastructure for deploying Flyte 2 as a distributed, multi-node service. See the Backend README for the current state of the backend, protocol buffer definitions, and contribution guide.
If you need an enterprise-ready, production-grade backend for Flyte 2 today, it is available on Union.ai.
Learn More
- Try DevBox - Get started
- Try Devbox in Github Codespaces - Get started in the browser
- SDK Reference — API reference docs
- CLI Reference — CLI docs
- flyte-sdk — The Flyte 2 Python SDK repository
- Slack | GitHub Discussions | Issues
Contributing
We welcome contributions! See the Backend README for backend development, or join us on slack.flyte.org.
Sponsors
CI container image builds for this repository are sponsored by Depot — fast, native multi-arch Docker builds with persistent layer caching.
License
Apache 2.0 — see LICENSE.
探索相关项目
加载中…
