Add your description here
Project description
Wandb-Local
Server
1. Launch Server
python3 serve.py --project <project name> --port <port>
- 建立名稱為
<user name>-wandb-<project name>container - 預設的存儲目錄是
/volume/share/wandb-local/volume/<project name>
若要使用預設路徑外的儲存目錄,可以指定 --volume 參數,例如
python3 serve.py --project <project name> --port <port> --volume /volume/share/wandb-local/volume/trade-richardwang/
2. Registration
- 瀏覽器打開
http://<host ip>:<port><host ip>為當初執行 server 啟動程式的機器的 IP,例如 10.11.60.1
- 點擊 login 並註冊此部屬上的帳戶,建議設置:
- Full name: Sinopac
- E-mail: 123@sinopac.com
- Username: sinopac
- Pssword: 123@sinopac.com
Client
Configure connection
可在右上角機器人頭像 -> User Settings -> Danger Zone -> API keys -> Reveal 中找到
寫在 dot env 檔案
設置於 .env 檔案
WANDB_BASE_URL=http:/<host ip>:<port>
WANDB_API_KEY=<api-key>
寫在 Python 檔案
os.environ["WANDB_BASE_URL"] = "http:/<host ip>:<port>"
os.environ["WANDB_API_KEY"] = "<api-key>"
Best practices
Programmatically cleanup cache
wandb use ./cache/local to save artifacts even they are uploaded to server.
c = wandb.wandb_sdk.wandb_artifacts.get_artifacts_cache()
c.cleanup(int(10e9)) # up to 10GB cache
Do not log system metrics
System metrics are frequent and many, which can put a lot of pressure on a local server.
wandb.init(
...
settings=wandb.Settings(
_disable_stats=True,
_disable_machine_info=True,
)
)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wandb_tools-0.2.0.tar.gz
(77.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wandb_tools-0.2.0.tar.gz.
File metadata
- Download URL: wandb_tools-0.2.0.tar.gz
- Upload date:
- Size: 77.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e285012b8ba0768043975c5ff0d7795e6c628225f8ebcdd431b964c615ee16f
|
|
| MD5 |
aae060a8ea091cc7c7c9b759d59242e3
|
|
| BLAKE2b-256 |
5b3e83dc58dbe5deddfd726efbc06c852533ad50fde10788bb892a285a3d6408
|
File details
Details for the file wandb_tools-0.2.0-py3-none-any.whl.
File metadata
- Download URL: wandb_tools-0.2.0-py3-none-any.whl
- Upload date:
- Size: 10.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ff3eda7eb42757b37b1ad053b9edbfb61445f9b958a46a4ce88203ab720309e
|
|
| MD5 |
2b4bccf99288efca7f92e233b4836452
|
|
| BLAKE2b-256 |
dbcc7af70f6ccd6b49314671f1a9b8dae6397b4813ee1dde9235fac112aa2236
|