Skip to main content

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

  1. 瀏覽器打開 http://<host ip>:<port>
    • <host ip> 為當初執行 server 啟動程式的機器的 IP,例如 10.11.60.1
  2. 點擊 login 並註冊此部屬上的帳戶,建議設置:

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.1.1.tar.gz (57.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wandb_tools-0.1.1-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file wandb_tools-0.1.1.tar.gz.

File metadata

  • Download URL: wandb_tools-0.1.1.tar.gz
  • Upload date:
  • Size: 57.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.16

File hashes

Hashes for wandb_tools-0.1.1.tar.gz
Algorithm Hash digest
SHA256 01e2998a94a1fe512a10b425a44882df3738576ff8797bed1fe0bf487936036c
MD5 2681e359fd4903437f014a27c98f963b
BLAKE2b-256 5667e01e0a4b4bc00aef0d676dc4b33d31330f833e3dc6b113e3d91c25fe3284

See more details on using hashes here.

File details

Details for the file wandb_tools-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for wandb_tools-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cc6f3ef66193f93ff9ccf94874ca8b6d81d97a9d59a6cb0c792573313bba9223
MD5 115d6ab470adcec31e09125fb28f0921
BLAKE2b-256 bf25e313458053b8449a7117a2cfe2e834500ece1223c8f438009900fc02680e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page