Weights & Biases
Some commands to enable wandb
- Run the following commands to make sure that proxy and docker are working normally
cat /etc/systemd/system/docker.service.d/http-proxy.conf
cat /etc/systemd/system/docker.service.d/https-proxy.conf
systemctl status docker
- Run the following commands to pull wandb and start wandb server
docker pull wandb/local
docker search wandb/local
export WANDB_MODE=online
wandb server start
wandb local
- The above command may be fail with
image_id_from_registry NoneType have no split attribute, the following commands can check the method and configuration
find /usr/local/lib/python3.10/dist-packages/wandb/ -name "*.py"|xargs grep "def image_id_from_registry"
cat ~/.docker/config.json
- Run the following command to check method one by one and will found
auth_tokenwill fail withssl/tlsprotocal
python -c "import wandb;print(wandb.docker.image_id('wandb/local'))"
python -c "import wandb;print(wandb.docker.image_id_from_registry('wandb/local'))"
python -c "import wandb;print(wandb.docker.auth.load_config())"
python -c "import wandb;print(wandb.docker.parse('wandb/local'))"
python -c "import wandb;print(wandb.docker.auth_token('index.docker.io', 'wandb/local'))"
- Run the following command to double confirm that
ssl/tlshave some issue. I haven’t resolved it yet
curl -v https://index.docker.io
- I checked the
image_id_from_registryand extract the docker command to run it directly
docker run -d --rm -v wandb:/vol -p 8080:8080 --name wandb-local wandb/local
docker logs wandb-local
ls /var/lib/docker/volumes
- Run the following command to cli login
wandb login --relogin --host=http://localhost:8080
- Run below command to synchronize offline run directory
export WANDB_BASE_URL=http://localhost:8080
wandb sync ./path/to/offline-run-directory/