wandb.init()
once at the beginning of your script to initialize a new job. This creates a new run in W&B and launches a background process to sync data.wandb
Python library.run = wandb.init(reinit=True)
: Use this setting to allow reinitializing runsrun.finish()
: Use this at the end of your run to finish logging for that runInitStartError: Error communicating with wandb process
wandb.init()
.
There are several approaches to managing multiprocess training:wandb.init
in all your processes, using the group keyword argument to define a shared group. Each process will have its own wandb run and the UI will group the training processes together.wandb.init
is called in your script, we automatically look for git information to save, including a link to a remote repo and the SHA of the latest commit. The git information should show up on your run page. If you aren't seeing it appear there, make sure that your shell's current working directory when executing your script is located in a folder managed by git.wandb.init
starts a process that syncs metrics in real time to our cloud hosted app. If your machine is offline, you don't have internet access, or you just want to hold off on the upload, here's how to run wandb
in offline mode and sync later.WANDB_MODE="offline"
wandb sync [PATH_TO_RUN]
. The path to your run will be a folder in your wandb
directory corresponding to the Run ID of the run in progress.LaunchError: Permission denied
Launch Error: Permission denied
, you don't have permissions to log to the project you're trying to send runs to. This might be for a few different reasons.multiprocessing
library?multiprocessing
library. If you see an error message such as:if name == main
. Note that you would only need to add this entry point protection in case you're trying to run W&B directly from the script.