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,
)
)
Metadata
Release files for wandb-tools 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wandb_tools-0.2.0.tar.gz | 77.8 kB | Without provenance | Details for wandb_tools-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wandb_tools-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for wandb_tools-0.2.0-py3-none-any.whl |
Total release size: 88.4 kB
Release files / wandb_tools-0.2.0.tar.gz
| Download URL | wandb_tools-0.2.0.tar.gz |
|---|---|
| Size | 77.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0e285012b8ba0768043975c5ff0d7795e6c628225f8ebcdd431b964c615ee16f
|
|
BLAKE2b-256 checksum How to use checksums |
5b3e83dc58dbe5deddfd726efbc06c852533ad50fde10788bb892a285a3d6408
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.2
|
Release files / wandb_tools-0.2.0-py3-none-any.whl
| Download URL | wandb_tools-0.2.0-py3-none-any.whl |
|---|---|
| Size | 10.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9ff3eda7eb42757b37b1ad053b9edbfb61445f9b958a46a4ce88203ab720309e
|
|
BLAKE2b-256 checksum How to use checksums |
dbcc7af70f6ccd6b49314671f1a9b8dae6397b4813ee1dde9235fac112aa2236
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.2
|
Security for wandb-tools 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.