Skip to content

Migrate from W&B ​

Use the Rundial compatibility module to adapt common W&B training code.

Start Rundial and create an API key with the Quickstart. Keep the stack running and set RUNDIAL_API_KEY.

Install the SDK and replace the import:

bash
pip install rundial
python
import rundial.compat.wandb as wandb

with wandb.init(entity="default-workspace", project="default-project", name="baseline") as run:
    run.log({"loss": 0.5}, step=1)

Supported calls ​

W&B callRundial behavior
initentity selects the workspace and project selects the project. id supplies the run ID; resume=True maps to allow.
logLogs values with an optional step, either on the module or the run.
config and run.configRead and update run configuration.
run.summary and define_metricSet summary values and aggregate numeric metrics. best uses the minimum.
Image and TableCreate media values for logging.
finishFinish the run; a nonzero exit_code marks it failed.
login(key=...)Set RUNDIAL_API_KEY in the current process.
watchEmits a warning and does not log model information.

Accessing an unsupported module symbol, including wandb.Artifact, wandb.sweep, wandb.agent, wandb.alert, or wandb.plot, raises NotImplementedError. See Images, tables and artifacts for files.

Environment variables ​

W&B variableRundial behavior
WANDB_ENTITYWorkspace, unless entity is supplied.
WANDB_PROJECTProject, unless project is supplied.
WANDB_MODEoffline and dryrun select offline mode; disabled disables logging.

Set RUNDIAL_API_KEY for authentication. WANDB_API_KEY is not mapped. RUNDIAL_WORKSPACE and RUNDIAL_PROJECT are fallbacks when the corresponding W&B variables are absent.

Next steps ​