Awesome
<p align="center"> <img src="https://raw.githubusercontent.com/flyteorg/static-resources/main/flyte/readme/flyte_and_lf.png" alt="Flyte and LF AI & Data Logo" width="250"> </p> <h1 align="center"> Flyte </h1> <p align="center"> :building_construction: :rocket: :chart_with_upwards_trend: </p> <p align="center"> <a href="https://github.com/flyteorg/flyte/releases/latest"> <img src="https://img.shields.io/github/release/flyteorg/flyte.svg?style=for-the-badge" alt="Current Release label" /></a> <a href="https://github.com/flyteorg/flyte/actions/workflows/sandbox.yml"> <img src="https://img.shields.io/github/actions/workflow/status/flyteorg/flyte/sandbox.yml?label=Sandbox%20docker%20image&style=for-the-badge" alt="Sandbox Status label" /></a> <a href="https://github.com/flyteorg/flyte/actions/workflows/tests.yml"> <img src="https://img.shields.io/github/actions/workflow/status/flyteorg/flyte/tests.yml?label=tests&style=for-the-badge" alt="Test Status label" /></a> <a href="http://www.apache.org/licenses/LICENSE-2.0.html"> <img src="https://img.shields.io/badge/LICENSE-Apache2.0-ff69b4.svg?style=for-the-badge" alt="License label" /></a> <a href="https://bestpractices.coreinfrastructure.org/projects/4670"> <img src="https://img.shields.io/badge/openssf%20best%20practices-passing-green?style=for-the-badge" alt="OpenSSF Best Practices label" /></a> <a href="https://artifacthub.io/packages/search?repo=flyte"> <img src="https://img.shields.io/endpoint?style=for-the-badge&url=https://artifacthub.io/badge/repository/flyte" alt="Flyte Helm Chart label" /></a> <a href="https://twitter.com/flyteorg"> <img src="https://img.shields.io/badge/X-000000.svg?style=for-the-badge&logo=X&logoColor=white" height=30px/></a> <a href="https://slack.flyte.org" alt="Twitter, formerly X logo label"> <img src="https://img.shields.io/badge/Slack-Chat-pink?style=for-the-badge&logo=slack" alt="Flyte Slack label" /></a> </p>Flyte is an open-source orchestrator that facilitates building production-grade data and ML pipelines. It is built for scalability and reproducibility, leveraging Kubernetes as its underlying platform. With Flyte, user teams can construct pipelines using the Python SDK, and seamlessly deploy them on both cloud and on-premises environments, enabling distributed processing and efficient resource utilization.
<h2 align="center"> Build </h2> <p> Write code in Python or any other language and leverage a robust type engine. </p> <img alt="Getting started with Flyte" src="https://raw.githubusercontent.com/flyteorg/static-resources/main/common/flytereadmebuildv2.gif" style="width: 60%; height: auto;" /> <h2 align="center"> Deploy & Scale </h2> <p> Either locally or on a remote cluster, execute your models with ease. </p> <img alt="Getting started with Flyte" src="https://raw.githubusercontent.com/flyteorg/static-resources/main/common/flytereadme-deploy.gif" style="width: 60%; height: auto;" /> <h3 align="center"> <a href="#quick-start">Get Started</a> <span> ยท </span> <a href="https://docs.flyte.org/">Documentation</a> <span> ยท </span> <a href="#how-to-stay-involved">Resources</a> </h3>Table of contents
Quick start
- Install Flyte's Python SDK
pip install flytekit
- Create a workflow (see example)
- Run it locally with:
pyflyte run hello_world.py hello_world_wf
Ready to try a Flyte cluster?
- Create a new sandbox cluster, running as a Docker container:
flytectl demo start
- Now execute your workflows on the cluster:
pyflyte run --remote hello_world.py hello_world_wf
<img alt="Getting started with Flyte, showing the welcome screen and Flyte dashboard" src="https://raw.githubusercontent.com/flyteorg/static-resources/main/flytesnacks/getting_started/getting_started_console.gif" style="width: 100%; height: auto;" />
Do you want to see more but don't want to install anything?
Head over to https://sandbox.union.ai/. It allows you to experiment with Flyte's capabilities from a hosted Jupyter notebook.
Ready to productionize?
Go to the Deployment guide for instructions to install Flyte on different environments
Tutorials
- Fine-tune Code Llama on the Flyte codebase
- Forecast sales with Horovod and Spark
- Nucleotide Sequence Querying with BLASTX
Features
๐ Strongly typed interfaces: Validate your data at every step of the workflow by defining data guardrails using Flyte types.<br>
๐ Any language: Write code in any language using raw containers, or choose Python, Java, Scala or JavaScript SDKs to develop your Flyte workflows. <br />
๐ Immutability: Immutable executions help ensure reproducibility by preventing any changes to the state of an execution. <br />
๐งฌ Data lineage: Track the movement and transformation of data throughout the lifecycle of your data and ML workflows. <br />
๐ Map tasks: Achieve parallel code execution with minimal configuration using map tasks. <br />
๐ Multi-tenancy: Multiple users can share the same platform while maintaining their own distinct data and configurations. <br />
๐ Dynamic workflows: Build flexible and adaptable workflows that can change and evolve as needed, making it easier to respond to changing requirements. <br />
โฏ๏ธ Wait for external inputs before proceeding with the execution. <br />
๐ณ Branching: Selectively execute branches of your workflow based on static or dynamic data produced by other tasks or input data. <br />
๐ Data visualization: Visualize data, monitor models and view training history through plots. <br />
๐ FlyteFile & FlyteDirectory: Transfer files and directories between local and cloud storage. <br />
๐๏ธ Structured dataset: Convert dataframes between types and enforce column-level type checking using the abstract 2D representation provided by Structured Dataset. <br />
๐ก๏ธ Recover from failures: Recover only the failed tasks. <br />
๐ Rerun a single task: Rerun workflows at the most granular level without modifying the previous state of a data/ML workflow. <br />
๐ Cache outputs: Cache task outputs by passing cache=True
to the task decorator. <br />
๐ฉ Intra-task checkpointing: Checkpoint progress within a task execution. <br />
โฐ Timeout: Define a timeout period, after which the task is marked as failure. <br />
๐ญ Dev to prod: As simple as changing your domain from development or staging to production. <br />
๐ธ Spot or preemptible instances: Schedule your workflows on spot instances by setting interruptible
to True
in the task decorator. <br />
โ๏ธ Cloud-native deployment: Deploy Flyte on AWS, GCP, Azure and other cloud services. <br />
๐
Scheduling: Schedule your data and ML workflows to run at a specific time. <br />
๐ข Notifications: Stay informed about changes to your workflow's state by configuring notifications through Slack, PagerDuty or email. <br />
โ๏ธ Timeline view: Evaluate the duration of each of your Flyte tasks and identify potential bottlenecks. <br />
๐จ GPU acceleration: Enable and control your tasksโ GPU demands by requesting resources in the task decorator. <br />
๐ณ Dependency isolation via containers: Maintain separate sets of dependencies for your tasks so no dependency conflicts arise. <br />
๐ Parallelism: Flyte tasks are inherently parallel to optimize resource consumption and improve performance. <br />
๐พ Allocate resources dynamically at the task level. <br />
Who's using Flyte
Join the likes of LinkedIn, Spotify, Freenome, Pachama, Warner Bros. and many others in adopting Flyte for mission-critical use cases. For a full list of adopters and information on how to add your organization or project, please visit our ADOPTERS page.
How to stay involved
๐ฅ Monthly community sync: Happening the first Tuesday of every month, this is where the Flyte team provides updates on the project, and community members can share their progress and ask questions. <br> ๐ฌ Slack: Join the Flyte community on Slack to chat with other users, ask questions, and get help. <br> โ ๏ธ Newsletter: join this group to receive the Flyte Monthly newsletter. <br> ๐น Youtube: Tune into panel discussions, customer success stories, community updates and feature deep dives. <br> ๐ Blog: Here, you can find tutorials and feature deep dives to help you learn more about Flyte. <br> ๐ก RFCs: RFCs are used for proposing new ideas and features to improve Flyte. You can refer to them to stay updated on the latest developments and contribute to the growth of the platform.
How to contribute
There are many ways to get involved in Flyte, including:
- Submitting bugs and feature requests for various components.
- Reviewing the documentation and submitting pull requests for anything from fixing typos to adding new content.
- Speaking or writing about Flyte or any other ecosystem integration and letting us know!
- Taking on a
help wanted
orgood-first-issue
and following the CONTRIBUTING guide to submit changes to the codebase. - Upvoting popular feature requests to show your support.
We :heart: our contributors
<!-- CONTRIBUTORS START --> <!-- CONTRIBUTORS END -->License
Flyte is available under the Apache License 2.0. Use it wisely.
<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=6a6b21ca-61bb-444f-aecd-4a6ba5372be5" />