MLflow for Experiment Tracking: Setup, Usage, and When It Is Enough
MLflow tracks parameters, metrics, and artifacts for ML experiments. Here is how to set it up in 5 lines, integrate with training loops, and when to use it over W&B.
MLflow is an open source platform for managing the ML lifecycle: experiment tracking (logging parameters, metrics, and artifacts during training), model registry (versioning production models), and model serving. For most ML teams, MLflow's experiment tracking covers 80% of what they need from Weights & Biases at zero marginal cost, since MLflow is fully self-hosted and free. The key trade-offs: MLflow requires you to manage infrastructure (a tracking server and artifact store), whereas W&B is managed and works out of the box. MLflow's UI is functional but less polished than W&B. For teams that can tolerate a bit of infrastructure management and want to avoid per-seat SaaS pricing, MLflow is the right choice.
Setup in 5 Lines
The simplest MLflow setup requires no separate server. MLflow logs locally to an ./mlruns directory:
That is the complete local setup. No server, no cloud account, no configuration files.
Running a Tracking Server for Teams
For team use, you need a shared tracking server so multiple people can log to the same backend. The simplest production setup uses a PostgreSQL database and an S3-compatible artifact store:
mlflow server --backend-store-uri postgresql://user:password@localhost/mlflow --default-artifact-root s3://your-bucket/mlflow-artifacts --host 0.0.0.0 --port 5000
For small teams (2-5 people), running MLflow on a single VM (2 vCPU, 4GB RAM is sufficient) with S3 or MinIO for artifact storage works well. The infrastructure cost is $20-50/month versus $100-500/month for W&B Team.
Team workspace
Ship faster with chat, meetings, and projects in one place — Zlyqor.
Pristren builds AI-powered software for teams. Zlyqor is our all-in-one workspace - chat, projects, time tracking, AI meeting summaries, and invoicing - in one tool. Try it free.
Practical deep-dives on LLMs, developer tools, and AI engineering. No filler. Unsubscribe any time.
// written byFIG. AUTH-01
530
Mahmudul Haque Qudrati
CEO & ML Engineer
CEO and ML Engineer at Pristren. Builds AI-powered software for teams and writes about machine learning, LLMs, developer tools, and practical AI applications.
OpenCode runs Claude, GPT, Gemini, or local Ollama models in one terminal agent — Claude Code is official, polished, and Anthropic-native. Honest 2026 comparison.