Deploy wandb locally

0. premise

  • Docker installation complete
  • Python installation complete
  • Register wandb.ai and get License key

1. Deploy wandb

refer: https://github.com/wandb/server

pip install wandb

Create a directory,

sudo mkdir -p /u01/data/wandb; sudo chmod 777 /u01/data/wandb

Visit Docker Hub to confirm the latest version of tag,

start the container,

# 将 192.168.31.92 换成你的 IP 地址
docker run -d --restart=always -v /u01/data/wandb:/vol -e HOST=http://192.168.31.92:8080 -p 8080:8080 --name wandb-local wandb/local:0.39.0

2. Access wandb

Use a browser to open http://192.168.31.92:8080 , replace 192.168.31.92 with your IP address, register an account and log in.

Then click "System settings" on the right,

insert image description here
Enter the License Key obtained before, click "Update settings",

insert image description here

Then you can use wandb normally.

3. Login to wandb

# !wandb login --host "http://192.168.31.92:8080" "<your_api_key>"
wandb.login(anonymous="allow",host="http://192.168.31.92:8080",key="<your_api_key>")

end!

Guess you like

Origin blog.csdn.net/engchina/article/details/132121337