dvclive: Experiments logger for ML projects. · Pythie
Install dvclive
Initialize DVC Repository $ git init
$ dvc init
$ git commit -m "DVC init"
Example code Copy the snippet below into train.py for a basic API usage example:
import time
import random
from dvclive import Live
params = {"learning_rate": 0.002, "optimizer": "Adam", "epochs": 20}
with Live() as live:
# log a parameters
for param in params:
live.log_param(param, params[param])
# simulate training
offset = random.uniform(0.2, 0.1)
for epoch in range(1, params["epochs"]):
fuzz = random.uniform(0.01, 0.1)
accuracy = 1 - (2 ** - epoch) - fuzz - offset
loss = (2 ** - epoch) + fuzz + offset
# log metrics to studio
live.log_metric("accuracy", accuracy)
live.log_metric("loss", loss)
live.next_step()
time.sleep(0.2)
See Integrations for examples using
DVCLive alongside different ML Frameworks.
Running Run this a couple of times to simulate multiple experiments:
$ python train.py
$ python train.py
$ python train.py
...
Comparing DVCLive outputs can be rendered in different ways:
DVC CLI You can use dvc exp show and
dvc plots to compare and
visualize metrics, parameters and plots across experiments:
─────────────────────────────────────────────────────────────────────────────────────────────────────────────
Experiment Created train.accuracy train.loss val.accuracy val.loss step epochs
─────────────────────────────────────────────────────────────────────────────────────────────────────────────
workspace - 6.0109 0.23311 6.062 0.24321 6 7
master 08:50 PM - - - - - -
├── 4475845 [aulic-chiv] 08:56 PM 6.0109 0.23311 6.062 0.24321 6 7
├── 7d4cef7 [yarer-tods] 08:56 PM 4.8551 0.82012 4.5555 0.033533 4 5
└── d503f8e [curst-chad] 08:56 PM 4.9768 0.070585 4.0773 0.46639 4 5
─────────────────────────────────────────────────────────────────────────────────────────────────────────────
$ dvc plots diff $(dvc exp list --names-only) --open
DVC Extension for VS Code While experiments are running, live updates will be displayed in both views.
DVC Studio If you push the results to DVC Studio , you can
compare experiments against the entire repo history:
Comparison to related technologies DVCLive is an ML Logger , similar to:
The main differences with those ML Loggers are:
DVCLive does not require any additional services or servers to run.
DVCLive metrics, parameters, and plots are
stored as plain text files
that can be versioned by tools like Git or tracked as pointers to files in DVC
storage.
DVCLive can save experiments or runs as
hidden Git commits .
You can then use different options to visualize the metrics,
parameters, and plots across experiments.
Contributing
License Distributed under the terms of the
Apache 2.0 license , dvclive is
free and open source software.
Popularity
Downloads, last 7 days 22.9K-6%
Stars, last 7 days –
Direct dependents 2
All dependents 3 48
Fair
Maintenance, out of 100
Recent release
last release 176 days ago
Commit activity
1/26 weeks with commits
Release cadence
1 releases in 12 months
Issues & PRs handled
50% closed in the past year
Contributor spread
12 authors in last 100 commits
OpenSSF Scorecard
not evaluated
Releases
Latest 3.49.1
Released Jun 5, 2026
Releases, 12 months 1
First release Feb 17, 2021 Compatibility
Requires Python >=3.9
Tested on 3.9 · 3.10 · 3.11 · 3.12 · 3.13 · 3.14
License Apache-2.0 (Permissive) AlternativesUse instead of dvclive: tools that do the same job, closest first.
Compare with wandb → Compare with comet-ml → Compare with swanlab → Compare all 4 →
wandb 0.31.2 Active Pythie’s Index: 86A CLI and library for interacting with the Weights & Biases API.
Supercharging Machine Learning
swanlab 0.10.6 Active Pythie’s Index: 88Python library for streamlined tracking and management of AI training processes.
neptune 1.14.0.post2 Archived Pythie’s Index: 8Neptune Client
mlflow 3.18.0 Active Pythie’s Index: 90MLflow is an open source platform for the complete machine learning lifecycle
Works well withUse together with dvclive: extensions, drivers, servers and companion tools.
dvc Pythie’s Index: 57Git for data scientists - manage your code and data together 1.8M downloads/mo spacy-loggers Logging utilities for SpaCy
23.3M downloads/mo
dvc-studio-client Pythie’s Index: 40Small library to post data from DVC/DVCLive to Iterative Studio 1.8M downloads/mo dvc-render Pythie’s Index: 24Dvc Render 1.7M downloads/mo azureml-mlflow Pythie’s Index: 84Contains the integration code of AzureML with Mlflow. 1.4M downloads/mo