MLflow
mlflow / mlflow
实验跟踪、模型注册、打包与部署的开源平台:记录参数、指标与产物,比较 run,注册模型版本并部署 REST/gRPC 服务。An open-source platform for experiment tracking, model registry, packaging and deployment: log params, metrics and artifacts, compare runs, register model versions and serve over REST/gRPC.
为什么选Why choose it
- 把“哪次实验、什么参数、什么指标”固定成可查询记录。Turns “which run, which params, which metrics” into a queryable record.
- 模型注册表能管版本与阶段,适合交接。The model registry manages versions and stages, which helps handoffs.
- 自托管、和主流训练框架都能接。Self-hostable and connects to mainstream training frameworks.
不适合Not for
不是专门的 LLM 可观测平台;prompt/trace 要接 Langfuse 或 Phoenix。Not an LLM-specific observability platform; prompt/trace needs Langfuse or Phoenix.
自托管要数据库与对象存储,规模大了要运维。Self-hosting needs a database and object store; scale brings ops work.
不是数据标注或向量库。Not an annotation tool or vector database.
最小上手Minimum setup
- pip install mlflow,起本地 tracking server 或直接用文件后端。pip install mlflow and start a local tracking server or use a file backend.
- 在一个训练脚本里 log params、metrics 与模型产物。Log params, metrics and model artifacts from one training script.
- 再注册模型版本,试一次本地 REST 部署。Register a model version, then try a local REST deployment.
依赖与成本Dependencies and cost
Python;本地文件后端可零依赖起步;生产要 Postgres/MySQL 与 S3/OSS 对象存储,部署还要容器或 VM。Python; a local file backend needs no services; production wants Postgres/MySQL and S3-compatible storage, plus containers or VMs for serving.
许可与使用边界License and usage boundaries
Apache-2.0;集成的数据库、对象存储与云服务各自条款。Apache-2.0; integrated databases, object stores and cloud services have their own terms.
开源不等于可商用:GPL / AGPL 有传染性;代码许可、模型许可、生成内容许可要分开看。上线前读仓库 LICENSE 与模型卡,必要时让法务确认。Open source is not automatically commercial-use friendly: GPL / AGPL are copyleft; code, model and output licenses are separate. Read the LICENSE and model card before launch, and involve legal when needed.
替代与相邻Alternatives and neighbors
- Langfuse — 生产可用Production,LLM 应用的追踪、评测、prompt 管理与成本分析平台,可自托管。Tracing, evaluation, prompt management and cost analytics for LLM applications, available self-hosted.
- Arize Phoenix — 生产可用Production,开源 LLM 追踪与评测平台,基于 OpenTelemetry,带可视化与数据集管理。Open-source LLM tracing and evaluation on OpenTelemetry, with visual exploration and dataset management.
- Evidently — 生产可用Production,数据与模型监控框架:数据漂移、质量、LLM 输出评测都能出报表、测试与带告警的看板。A data and model monitoring framework: drift, quality and LLM output checks with reports, tests and alerting dashboards.
下一步Next steps
- 打开 GitHub,先读 README、LICENSE、最近 release 与 issue。Open GitHub and read the README, LICENSE, latest release and issues first.
- 按“部署依赖 / 显存 / 数据 / 网络 / 权限”列一张上手清单。Make an onboarding checklist for deployment dependencies, VRAM, data, network and permissions.
- 用一个小样本跑通,再决定是否进生产;不要直接上生产数据。Run a small sample first, then decide on production; never start with production data.
GitHub 仓库 ↗GitHub repository ↗ 文档 ↗Docs ↗ 加入对比Add to compare