metaflow README

The project's README from github.com/Netflix/metaflow. As one markdown file: README.md.

Metaflow_Logo_Horizontal_FullColor_Ribbon_Dark_RGB

Metaflow

Metaflow is a human-centric framework designed to help scientists and engineers build and manage real-life AI and ML systems. Serving teams of all sizes and scale, Metaflow streamlines the entire development lifecycle—from rapid prototyping in notebooks to reliable, maintainable production deployments—enabling teams to iterate quickly and deliver robust systems efficiently.

Originally developed at Netflix and now supported by Outerbounds, Metaflow is designed to boost the productivity for research and engineering teams working on a wide variety of projects, from classical statistics to state-of-the-art deep learning and foundation models. By unifying code, data, and compute at every stage, Metaflow ensures seamless, end-to-end management of real-world AI and ML systems.

Today, Metaflow powers thousands of AI and ML experiences across a diverse array of companies, large and small, including Amazon, Doordash, Dyson, Goldman Sachs, Ramp, and many others. At Netflix alone, Metaflow supports over 3000 AI and ML projects, executes hundreds of millions of data-intensive high-performance compute jobs processing petabytes of data and manages tens of petabytes of models and artifacts for hundreds of users across its AI, ML, data science, and engineering teams.

From prototype to production (and back)

Metaflow provides a simple and friendly pythonic API that covers foundational needs of AI and ML systems:

  1. Rapid local prototyping, support for notebooks, and built-in support for experiment tracking, versioning and visualization.
  2. Effortlessly scale horizontally and vertically in your cloud, utilizing both CPUs and GPUs, with fast data access for running massive embarrassingly parallel as well as gang-scheduled compute workloads reliably and efficiently.
  3. Easily manage dependencies and deploy with one-click to highly available production orchestrators with built in support for reactive orchestration.

For full documentation, check out our API Reference or see our Release Notes for the latest features and improvements.

Getting started

Getting up and running is easy. If you don't know where to start, Metaflow sandbox will have you running and exploring in seconds.

Installing Metaflow

To install Metaflow in your Python environment from PyPI:

pip install metaflow

Alternatively, using conda-forge:

conda install -c conda-forge metaflow

Once installed, a great way to get started is by following our tutorial. It walks you through creating and running your first Metaflow flow step by step.

For more details on Metaflow’s features and best practices, check out:

If you need help, don’t hesitate to reach out on our Slack community!

Deploying infrastructure for Metaflow in your cloud

While you can get started with Metaflow easily on your laptop, the main benefits of Metaflow lie in its ability to scale out to external compute clusters and to deploy to production-grade workflow orchestrators. To benefit from these features, follow this guide to configure Metaflow and the infrastructure behind it appropriately.

Get in touch

We'd love to hear from you. Join our community Slack workspace!

Contributing

We welcome contributions to Metaflow. Please see our contribution guide for more details.

metaflow (Netflix/metaflow)

Searching Database…

10.3K ·GitHub
这是什么?Metaflow 是一个开源的 Python 框架,用于构建、管理和部署真实场景中的 AI 和机器学习系统——从在笔记本里快速做原型,到可靠地部署到生产环境。
它是我写代码用的框架,还是得先部署一个平台?它是一个 Python 框架:你安装这个包,用它友好的 Python 风格 API 编写工作流,而实验跟踪、扩缩容和部署这些事情都由它在你的代码之外帮你处理。
我怎么开始上手?从 PyPI(pip install metaflow)或 conda-forge 安装,然后跟着官方教程构建你的第一个 flow。还有一个托管的 Metaflow 沙盒,零配置,几秒钟就能试用。
除了 Python 环境,我还需要准备什么吗?只需要一个 Python 环境——这个包可以直接从 PyPI 或 conda-forge 安装,所以一台装了 Python 的笔记本电脑就足以跑通你的第一批 flow。
所有事情都在自己笔记本上跑,够用来做正经工作吗?做原型用笔记本完全没问题,但它的主要优势——扩展到外部计算集群、以及生产级的任务编排——需要你在自己的云上配置 Metaflow 基础设施;官方有一份专门的指南来讲这件事。
那种大型任务呢——能用 GPU 吗,能并行跑吗?可以——工作负载能在你的云里基于 CPU 和 GPU 进行横向和纵向扩展,并为大规模易并行和 gang 调度的计算任务提供快速的数据访问。
Metaflow 开箱即用都提供了什么?支持 notebook 的本地原型开发,外加为每次运行内置的实验跟踪、版本管理和可视化。
写好的 flow 怎么上线到生产环境?一键就能部署到高可用的生产级工作流编排器,并且内置了响应式编排支持,让任务持续稳定地运行。
What are similar projects?skypilot, serve, kubeflow, mlflow, higgsfield, taipy, kestra, recommenders
Creator
Netflix
Size
48.2 MB
Stars
10.3K
Age
7y
Commits · 90 Days