MLflow
Overview
MLflow — a platform for managing the machine learning lifecycle: experiments, models, and deployment.
Capabilities
- experiment tracking;
- model versioning;
- model registration and deployment;
- storing metrics and artifacts.
Use Cases
- MLOps teams;
- experiment tracking;
- model version management.
MLflow vs Langfuse
| MLflow | Langfuse | |
|---|---|---|
| Focus | ML lifecycle | LLM tracing |
| Suitable For | Model training | Prompts and generations |
Getting Started
pip install mlflow
mlflow ui # the dashboard will open at http://localhost:5000
Minimal logging setup:
import mlflow
mlflow.set_experiment("my-experiment")
with mlflow.start_run():
mlflow.log_param("lr", 0.001)
mlflow.log_metric("loss", 0.4)