Skip to content

Releases: iterative/dvclive

2.7.0: `artifacts` section.

24 Apr 08:53
0f59e9f
Compare
Choose a tag to compare

New Features

artifacts section

You can now pass metadata to Live.log_artifact that will be written to a new artifacts section in the dvc.yaml located at {Live.dir}/{Live.dvc_file}.

Available metadata fields are:

type: Optional[str] = None,
name: Optional[str] = None,
desc: Optional[str] = None,
labels: Optional[List[str]] = None,
meta: Optional[Dict[str, Any]] = None,

When passing type="model", the artifact will be identified by Studio and automatically included in the Studio Model Registry.

  • Example
from pathlib import Path
from dvclive import Live

Path("model.pth").write_text("foo")

with Live(save_dvc_exp=True) as live:
    live.log_artifact(
        "model.pth",
        type="model",
        name="mymodel",
        desc="Finetuned ResNet50",
    )
# dvclive/dvc.yaml
artifacts:
  mymodel:
    path: ../model.pth
    type: model
    desc: Finetuned ResNet50

Auto-initialization of DVC Repo

When inside a non-empty Git Repository, DVCLive will auto-initialize a DVC Repository when needed.

What's Changed

New Contributors

Full Changelog: 2.6.4...2.7.0

2.6.4

14 Apr 17:57
ad58a3f
Compare
Choose a tag to compare

What's Changed

Full Changelog: 2.6.3...2.6.4

2.6.3

11 Apr 22:14
Compare
Choose a tag to compare

What's Changed

Full Changelog: 2.6.2...2.6.3

2.6.2

05 Apr 10:38
1cb31aa
Compare
Choose a tag to compare

What's Changed

  • live: Be more conservative when git adding paths inside dvc exp run. by @daavoo in #517

Full Changelog: 2.6.1...2.6.2

2.6.1

03 Apr 14:37
c9fe84d
Compare
Choose a tag to compare

What's Changed

  • optuna: Use summary instead of log_metric. by @daavoo in #514

Full Changelog: 2.6.0...2.6.1

2.6.0

31 Mar 19:46
634f911
Compare
Choose a tag to compare

What's Changed

  • report: Use base64 images for HTML. by @daavoo in #508
  • live: Track self._dir when self._inside_dvc_exp. by @daavoo in #511
  • make_dvcyaml: Include metrics section also if live.summary. by @daavoo in #512

Full Changelog: 2.5.1...2.6.0

2.5.1: Require `exp` for Studio updates

27 Mar 18:10
00466fa
Compare
Choose a tag to compare

What's Changed

  • remove dvclive outputs from dvc stage outs by @dberenbaum in #506
  • live: Explicitly require exp for sending Studio updates. by @daavoo in #507

Full Changelog: 2.5.0...2.5.1

2.5.0: Optuna callback

20 Mar 12:28
ef6affb
Compare
Choose a tag to compare

New features

dvclive.optuna

import optuna
from dvclive.optuna import DVCLiveCallback

def objective(trial):
    x = trial.suggest_float("x", -10, 10)
    return (x - 2) ** 2

study = optuna.create_study()

study.optimize(
    objective, n_trials=7, callbacks=[DVCLiveCallback()])

What's Changed

Full Changelog: 2.4.0...2.5.0

2.4.0: `Live.log_artifact`

17 Mar 10:35
2fd0660
Compare
Choose a tag to compare

New features

Live.log_artifact

Tracks an existing directory or file with DVC.

https://dvc.org/doc/dvclive/api-reference/live/log_artifact

What's Changed

New Contributors

Full Changelog: 2.3.1...2.4.0

2.3.1

07 Mar 20:09
5b3ffc2
Compare
Choose a tag to compare

What's Changed

  • lightning: prevent conflict with internal step property. by @daavoo in #490

Full Changelog: 2.3.0...2.3.1