At the top of your training script when you call
wandb.init, pass in an experiment name, like this:
If you're training on an offline machine and want to upload your results to our servers afterwards, we have a feature for you!
- 1.Set the environment variable
WANDB_MODE=offlineto save the metrics locally, no internet required.
- 2.When you're ready, run
wandb initin your directory to set the project name.
wandb sync YOUR_RUN_DIRECTORYto push the metrics to our cloud service and see your results in our hosted web app.
You can check via API whether your run is offline by using
run.settings.modeafter your wandb.init().
- If you don’t have internet.
- If you need to fully disable things.
- To sync your run later due to any reason. For instance: if you want to avoid using resources on a training machine.
Currently, the library only works with Python 2.7+ & 3.6+ projects. The architecture mentioned above should enable us to integrate with other languages easily. If you have a need for monitoring other languages, send us a note at [email protected].
# Create a conda env
conda create -n wandb-env python=3.8 anaconda
# Activate created env
conda activate wandb-env
# install wandb with pip in this conda env
pip install wandb
conda activate myenv
conda install wandb --channel conda-forge
If you try to install
wandband see this error:
unable to execute 'gcc': No such file or directory
error: command 'gcc' failed with exit status 1
For example, to install
psutilon Python 3.8 in Linux:
pip install $WHEEL_URL
psutilhas been installed, you can install wandb with
pip install wandb.
The W&B client library supported both Python 2.7 and Python 3 through version 0.10. Due to the Python 2 end of life, support for Python 2.7 was discontinued as of version 0.11. Users who run
pip install --upgrade wandbon a Python 2.7 system will get new releases of the 0.10.x series only. Support for the 0.10.x series will be limited to critical bugfixes and patches. Currently, version 0.10.33 is the last version of the 0.10.x series that supports Python 2.7.