# MLflow

> A free tool that logs each training run and stores the models it makes.

**Field:** Artificial Intelligence  
**Category:** MLOps & Deployment  
**Also known as:** ML Flow, MLflow Tracking

## Think of it like

It is like a lab notebook that fills itself in. Each test you run gets its own page.

## Definition

MLflow is a free, open source tool for keeping track of machine learning work. It logs each training run with its settings, scores and saved model. It also has a model registry, so a team can mark which version is ready to use. Newer parts trace and test apps built on language models. It is run as a Linux Foundation project, and Databricks first built it.

## Example

Emma adds two lines of MLflow to her training script. After 30 runs she opens its web page and sorts them by score to find the best settings.

## Example code

```python
import mlflow

with mlflow.start_run():
    mlflow.log_param("learning_rate", 0.01)
    mlflow.log_metric("accuracy", 0.91)
```

One run, one setting and one score saved. MLflow keeps them so runs can be compared later.

## Why it matters

Without a log, nobody can say which settings made the best model. MLflow keeps that record for free.

## Common mistake

Logging scores but not the data version. Then the best run cannot be rebuilt later.

## Three principles

- **Logs every run.** Settings, scores and the saved model.
- **Registry built in.** Marks which version is ready to use.
- **Free and open.** Apache 2.0, run on your own servers or in a cloud.

## Related terms

- [Experiment Tracking](https://learn.benibix.com/term/ai/experiment-tracking)
- [Model Registry](https://learn.benibix.com/term/ai/model-registry)
- [MLOps](https://learn.benibix.com/term/ai/mlops)
- [Weights & Biases (W&B)](https://learn.benibix.com/term/ai/weights-and-biases)
- [Databricks](https://learn.benibix.com/term/data/databricks)
- [Azure Machine Learning](https://learn.benibix.com/term/ai/azure-machine-learning)

![A loop of five boxes: data, train, track runs, registry, serve and watch, then back to data. AutoML sits on the train box, MLflow and Weights and Biases on the track box. A bracket under the loop says Kubeflow runs the steps on Kubernetes. A side box says LLMOps adds prompts, traces and evals.](https://learn.benibix.com/diagrams/ai7-mlops-tools.svg)

---

Source: https://learn.benibix.com/term/ai/mlflow
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
