dvclive 3.48.5


pip install dvclive

  Latest version

Released: Aug 17, 2025


Meta
Author: Iterative
Maintainer: Iterative
Requires Python: >=3.9

Classifiers

Development Status
  • 4 - Beta

Programming Language
  • Python :: 3
  • Python :: 3.9
  • Python :: 3.10
  • Python :: 3.11
  • Python :: 3.12

DVCLive

PyPI Status Python Version License

Tests Codecov pre-commit Black

DVCLive is a Python library for logging machine learning metrics and other metadata in simple file formats, which is fully compatible with DVC.

Documentation


Quickstart

Python API Overview PyTorch Lightning Scikit-learn Ultralytics YOLO v8

Install dvclive

$ pip 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:

$ dvc exp show
─────────────────────────────────────────────────────────────────────────────────────────────────────────────
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 plots diff

DVC Extension for VS Code

Inside the DVC Extension for VS Code, you can compare and visualize results using the Experiments and Plots views:

VSCode Experiments

VSCode Plots

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:

Studio Compare

You can enable Studio Live Experiments to see live updates while experiments are running.


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

Contributions are very welcome. To learn more, see the Contributor Guide.

License

Distributed under the terms of the Apache 2.0 license, dvclive is free and open source software.

3.48.5 Aug 17, 2025
3.48.4 Aug 04, 2025
3.48.3 Jul 07, 2025
3.48.2 Feb 06, 2025
3.48.1 Dec 19, 2024
3.48.0 Aug 05, 2024
3.47.0 Jul 12, 2024
3.46.1 Jun 10, 2024
3.46.0 Apr 24, 2024
3.45.0 Mar 11, 2024
3.44.0 Feb 23, 2024
3.43.0 Feb 21, 2024
3.42.0 Feb 15, 2024
3.41.1 Jan 23, 2024
3.41.0 Jan 23, 2024
3.5.1 Dec 22, 2023
3.5.0 Dec 21, 2023
3.4.1 Dec 06, 2023
3.4.0 Dec 06, 2023
3.3.1 Nov 14, 2023
3.3.0 Nov 14, 2023
3.2.0 Oct 31, 2023
3.1.0 Oct 21, 2023
3.0.1 Sep 26, 2023
3.0.0 Sep 22, 2023
2.16.0 Aug 29, 2023
2.15.2 Aug 18, 2023
2.15.1 Aug 18, 2023
2.15.0 Aug 16, 2023
2.14.0 Aug 14, 2023
2.13.1 Aug 04, 2023
2.13.0 Jul 25, 2023
2.12.1 Jul 05, 2023
2.12.0 Jun 23, 2023
2.11.3 Jun 13, 2023
2.11.2 Jun 09, 2023
2.11.1 Jun 08, 2023
2.11.0 May 30, 2023
2.10.1 May 22, 2023
2.10.0 May 21, 2023
2.9.0 May 15, 2023
2.8.1 May 02, 2023
2.8.0 Apr 27, 2023
2.7.0 Apr 24, 2023
2.6.4 Apr 14, 2023
2.6.3 Apr 11, 2023
2.6.2 Apr 05, 2023
2.6.1 Apr 03, 2023
2.6.0 Mar 31, 2023
2.5.1 Mar 27, 2023
2.5.0 Mar 20, 2023
2.4.0 Mar 17, 2023
2.3.1 Mar 07, 2023
2.3.0 Mar 07, 2023
2.2.0 Mar 06, 2023
2.1.0 Feb 16, 2023
2.0.2 Feb 06, 2023
2.0.1 Feb 03, 2023
2.0.0 Feb 03, 2023
1.4.0 Feb 01, 2023
1.3.4 Jan 31, 2023
1.3.3 Jan 23, 2023
1.3.2 Jan 04, 2023
1.3.1 Jan 03, 2023
1.3.0 Dec 27, 2022
1.2.2 Dec 14, 2022
1.2.1 Dec 14, 2022
1.2.0 Dec 12, 2022
1.1.2 Dec 10, 2022
1.1.1 Dec 07, 2022
1.1.0 Dec 01, 2022
1.0.3 Nov 30, 2022
1.0.2 Nov 28, 2022
1.0.1 Nov 08, 2022
1.0 Nov 05, 2022
0.12.1 Oct 20, 2022
0.12.0 Oct 05, 2022
0.11.0 Sep 26, 2022
0.10.0 Jul 22, 2022
0.9.0 Jun 13, 2022
0.8.2 May 24, 2022
0.8.1 May 19, 2022
0.8.0 May 10, 2022
0.7.3 Apr 27, 2022
0.7.2 Apr 07, 2022
0.7.1 Apr 05, 2022
0.7.0 Apr 04, 2022
0.6.1 Apr 04, 2022
0.6.0 Mar 04, 2022
0.5.1 Feb 09, 2022
0.5.0 Jan 31, 2022
0.4.6 Dec 07, 2021
0.4.5 Nov 26, 2021
0.4.4 Nov 26, 2021
0.4.3 Nov 08, 2021
0.4.2 Oct 20, 2021
0.4.1 Oct 11, 2021
0.4.0 Oct 06, 2021
0.3.0 Oct 04, 2021
0.2.3 Sep 10, 2021
0.2.2 Sep 09, 2021
0.2.1 Aug 30, 2021
0.2.0 Aug 27, 2021
0.1.2 Aug 25, 2021
0.1.1 Aug 18, 2021
0.1.0 Aug 09, 2021
0.0.10 Aug 02, 2021
0.0.9 Aug 02, 2021
0.0.8 Jul 30, 2021
0.0.7 Jul 29, 2021
0.0.6 Jul 26, 2021
0.0.5 Jul 19, 2021
0.0.4 Jun 29, 2021
0.0.3 May 20, 2021
0.0.2 Mar 22, 2021
0.0.1 Mar 03, 2021
0.0.1a1 Feb 17, 2021
0.0.1a0 Feb 17, 2021

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras:
Dependencies:
dvc (>=3.48.4)
dvc-render (<2,>=1.0.0)
dvc-studio-client (<1,>=0.20)
funcy
gto
ruamel.yaml
scmrepo (<4,>=3)
psutil
pynvml