Skip to main content

A CLI and library for interacting with the Weights and Biases API.

Project description



Weights and Biases ci pypi

The W&B client is an open source library and CLI (wandb) for organizing and analyzing your machine learning experiments. Think of it as a framework-agnostic lightweight TensorBoard that persists additional information such as the state of your code, system metrics, and configuration parameters.

Features

  • Store config parameters used in a training run
  • Associate version control with your training runs
  • Search, compare, and visualize training runs
  • Analyze system usage metrics alongside runs
  • Collaborate with team members
  • Run parameter sweeps
  • Persist runs forever

Quickstart

pip install wandb

In your training script:

import wandb
# Your custom arguments defined here
args = ...

run = wandb.init(config=args)
run.config["more"] = "custom"

def training_loop():
    while True:
        # Do some machine learning
        epoch, loss, val_loss = ...
        # Framework agnostic / custom metrics
        wandb.log({"epoch": epoch, "loss": loss, "val_loss": val_loss})

Running your script

From the directory of your training script run wandb init to initialize a new directory. If it's your first time using wandb on the machine it will prompt you for an API key - create an account at wandb.com and you can find one in your profile page. You can check in wandb/settings directory to version control to share your project with other users. You can also set the username and API key through environment variables if you don't have easy access to a shell.

Run your script with python my_script.py and all metadata will be synced to the cloud. Data is staged locally in a directory named wandb relative to your script. If you want to test your script without syncing to the cloud you can run wandb off.

Runs screenshot

Detailed Usage

Framework specific and detailed usage can be found in our documentation.

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

wandb-0.6.33.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

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

wandb-0.6.33-py2.py3-none-any.whl (1.2 MB view details)

Uploaded Python 2Python 3

File details

Details for the file wandb-0.6.33.tar.gz.

File metadata

  • Download URL: wandb-0.6.33.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.4

File hashes

Hashes for wandb-0.6.33.tar.gz
Algorithm Hash digest
SHA256 71e965c9185e92583d8aeadc15147b036124a682cac6d99f633c02c77940b0a8
MD5 440d078e570494f9cbdec037bd0641a1
BLAKE2b-256 91b2e64ae98ac5284337297229fb2d13cb894893f63aab5de4c1fbce3b963d00

See more details on using hashes here.

File details

Details for the file wandb-0.6.33-py2.py3-none-any.whl.

File metadata

  • Download URL: wandb-0.6.33-py2.py3-none-any.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.4

File hashes

Hashes for wandb-0.6.33-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c2e405665da1765ad4d7a18a9ebc14e5b9fd6bb1f54d6761d8bee2c2179101d9
MD5 0c805d6d058b0dcd9718d04e0be7693c
BLAKE2b-256 a26cc972b725b79007c9400017d19d173016b3f23f1c185a47dc85c6e8395ad8

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