Skip to main content
App version: 3.4.8

Offline logging

By creating runs in offline mode, you can log metadata without a connection to the Neptune server.

In offline mode, the metadata is stored on the local disk. To send the data to the Neptune app, you must manually synchronize it.

Log offline

To log offline, use mode="offline" when initializing a Run:

from neptune_scale import Run


run = Run(
mode="offline",
project="team-alpha/project-x",
run_id="likable-barracuda",
experiment_name="swim-further",
)

By default, the offline run is stored in the .neptune directory inside the current working directory. Each .sqlite3 file corresponds to a run.

tip

You can also set the mode using the NEPTUNE_MODE environment variable.

Synchronize the data with Neptune

To synchronize your offline run with the Neptune app, use the neptune sync command.

Synchronizing forked runs

To successfully sync offline experiments consisting of multiple related runs, you must first synchronize the parent run and then one or more children, in the correct order.

For details, see Neptune CLI: Synchronize forked runs.