Skip to content

2.7.0: `artifacts` section.

Compare
Choose a tag to compare
@daavoo daavoo released this 24 Apr 08:53
· 221 commits to main since this release
0f59e9f

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