Edit on GitHub


Signals that the current step has ended and increases step value by 1 (one).

def next_step()


from dvclive import Live

live = Live()

for step in range(3):
    live.log("metric", 0.9)


DVCLive uses the step value to track the progress of each metric logged with Live.log(). You can use Live.next_step() to increase the step by 1 (one).

Each metric logged in between Live.next_step() (or Live.set_step()) calls will be associated to the updated step value.

DVC integration

When dvclive is used alongside DVC, each Live.next_step() call will have additional effects.

By default, on each Live.next_step() call, DVC will prepare an HTML report with all the metrics logs logged in path.

In addition, when checkpoints are enabled in the pipeline, DVC will create a new checkpoint on each Live.next_step() call.


🐛 Found an issue? Let us know! Or fix it:

Edit on GitHub

Have a question? Join our chat, we will help you:

Discord Chat