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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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.1.2.tar.gz.
File metadata
- Download URL: wandb_tools-0.1.2.tar.gz
- Upload date:
- Size: 58.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c56d9e11577468fd742b9ef46886fef5e7b2bac0abf5c106ae9c97d1f778cc05
|
|
| MD5 |
12c0ccd1112308d5f48efb2a6b76efe7
|
|
| BLAKE2b-256 |
6db3900e5ca1428395cfe56749e37e0f379925e8092daae2e24ef69103d1fb87
|
File details
Details for the file wandb_tools-0.1.2-py3-none-any.whl.
File metadata
- Download URL: wandb_tools-0.1.2-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7fdcb5bcffc1bc3883e0b223622cb17de89e18705fd29faeb47c47790c187441
|
|
| MD5 |
ec935ac393e7ff6c92b451b121e06133
|
|
| BLAKE2b-256 |
35ee238af06060a4b89581edad21fb71f639e0e058a5e05e90ca61bef878b8b4
|