Apache License 2.0

项目介绍

flyteorg/flyte 是一个托管在 GitHub 上的开源项目,主要使用 Go 编写,采用 Apache License 2.0 许可证,目前获得 7.8k 个 Star、917 次 Fork。

仓库全名
flyteorg/flyte
开源许可证
Apache License 2.0
Star 数
7.8k
Fork 数
917
未关闭 Issue
196

README 摘要

[!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…

完整内容见 GitHub 原始 README 或本页 。

常见问题

flyte 用什么语言开发?

主要使用 Go 编写,采用 Apache License 2.0 许可证,目前有 7.8k 个 Star。

flyte 可以免费商用吗?

仓库采用 Apache License 2.0 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 flyte 的源码?

可以直接克隆仓库:git clone https://github.com/flyteorg/flyte.git,默认分支为 main;安装与运行步骤见仓库 README。

flyte 最近还在维护吗?

仓库最近一次更新为 22 小时前,当前有 196 个未关闭 Issue;Star 数为 7.8k,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

Dynamic, resilient AI orchestration. Coordinate data, models, and compute as you build AI workflows.

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

语言占比

Dockerfile
Go
Go Template
Makefile
Mustache
Python
Rust
Shell
TypeScript

Release

README

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.

Open in 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.

Version Python License Docs SDK Reference CLI Reference

Flyte is a Graduated project of the LF AI & Data Foundation.

Flyte and LF AI & Data Logo

10 minutes to Flyte 2

The quickest way to get a feel for Flyte 2 is in this notebook:

Try In Colab

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}")
PythonFlyte CLI
python hello.py
flyte run hello.py main --numbers '[1,2,3]'

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)
PythonFlyte CLI
python serving.py
flyte serve serving.py env

Local Development Experience

Install the TUI for a rich local development experience:

uv pip install flyte[tui]

Watch the local development experience

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

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.

Built with Depot

License

Apache 2.0 — see LICENSE.

评论

暂无评论