Skip to main content

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

Project description



Weights and Biases PyPI Conda (channel only) CircleCI Codecov

Use W&B to build better models faster. Track and visualize all the pieces of your machine learning pipeline, from datasets to production models.

  • Quickly identify model regressions. Use W&B to visualize results in real time, all in a central dashboard.
  • Focus on the interesting ML. Spend less time manually tracking results in spreadsheets and text files.
  • Capture dataset versions with W&B Artifacts to identify how changing data affects your resulting models.
  • Reproduce any model, with saved code, hyperparameters, launch commands, input data, and resulting model weights.

Sign up for a free account →

Features

  • Store hyper-parameters used in a training run
  • Search, compare, and visualize training runs
  • Analyze system usage metrics alongside runs
  • Collaborate with team members
  • Replicate historic results
  • Run parameter sweeps
  • Keep records of experiments available forever

Documentation →

Quickstart

pip install wandb

In your training script:

import wandb

# Your custom arguments defined here
args = ...

wandb.init(config=args, project="my-project")
wandb.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})

If you're already using Tensorboard or TensorboardX, you can integrate with one line:

wandb.init(sync_tensorboard=True)

Running your script

Run wandb login from your terminal to signup or authenticate your machine (we store your api key in ~/.netrc). You can also set the WANDB_API_KEY environment variable with a key from your settings.

Run your script with python my_script.py and all metadata will be synced to the cloud. You will see a url in your terminal logs when your script starts and finishes. 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 set the environment variable WANDB_MODE=dryrun.

If you are using docker to run your code, we provide a wrapper command wandb docker that mounts your current directory, sets environment variables, and ensures the wandb library is installed. Training your models in docker gives you the ability to restore the exact code and environment with the wandb restore command.

Web Interface

Sign up for a free account → Watch the video Introduction video →

Detailed Usage

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

Testing

To run basic test use make test. More detailed information can be found at CONTRIBUTING.md.

We use circleci for CI.

Academic Researchers

If you'd like a free academic account for your research group, reach out to us →

We make it easy to cite W&B in your published paper. Learn more →

Community

Got questions, feedback or want to join a community of ML engineers working on exciting projects?

slack Join our slack community.

Twitter Follow us on Twitter.

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

wandb-0.17.0rc2-py3-none-win_amd64.whl (6.7 MB view details)

Uploaded Python 3Windows x86-64

wandb-0.17.0rc2-py3-none-win32.whl (6.7 MB view details)

Uploaded Python 3Windows x86

wandb-0.17.0rc2-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (6.3 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

wandb-0.17.0rc2-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.7 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

wandb-0.17.0rc2-py3-none-macosx_11_0_arm64.whl (6.7 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

wandb-0.17.0rc2-py3-none-macosx_10_9_x86_64.whl (6.7 MB view details)

Uploaded Python 3macOS 10.9+ x86-64

wandb-0.17.0rc2-py3-none-any.whl (2.1 MB view details)

Uploaded Python 3

File details

Details for the file wandb-0.17.0rc2-py3-none-win_amd64.whl.

File metadata

  • Download URL: wandb-0.17.0rc2-py3-none-win_amd64.whl
  • Upload date:
  • Size: 6.7 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for wandb-0.17.0rc2-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 baef450cd52e708b8ff53bb5d8b283055931161b15429775259f981833fd501f
MD5 1d1608a0599a8d9476baad072af64dfb
BLAKE2b-256 e9d0a0e51d4be65790c7d3ef304d72129323ec94f0b1c17a14d81d3db3f36941

See more details on using hashes here.

File details

Details for the file wandb-0.17.0rc2-py3-none-win32.whl.

File metadata

  • Download URL: wandb-0.17.0rc2-py3-none-win32.whl
  • Upload date:
  • Size: 6.7 MB
  • Tags: Python 3, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for wandb-0.17.0rc2-py3-none-win32.whl
Algorithm Hash digest
SHA256 9faeb5e01e93879cf142effd9eb77cd839c5cbb2f16019cc0914290ba1f9bacb
MD5 bb952f6126f32dcc7031e8d119454269
BLAKE2b-256 725c78eca087421a093be7cf0fdbb6cbcae4d2424eb5401b1a570eaf85bf3bd2

See more details on using hashes here.

File details

Details for the file wandb-0.17.0rc2-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for wandb-0.17.0rc2-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 7b500a38695f5b4dbe11acc046e8c28c529cf2da8d56fd0c2942ee16fe51a8ff
MD5 6aaef3c9a1257e4b45243d158b780571
BLAKE2b-256 0144609186f562c4b67e23aed6d3c08db4713d49a25abdeb02f65ff513adee73

See more details on using hashes here.

File details

Details for the file wandb-0.17.0rc2-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for wandb-0.17.0rc2-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3b5f4fec1e7eaac1489540db679cbea60cebe26edd9ba131416a5bcf3d5b093e
MD5 22bd8d7778cdbcc65fefd0a6532da01a
BLAKE2b-256 ca93739c1d60fdbbccbd9df4183e197ef85d8361a28725b1e53cb24d0f6f7141

See more details on using hashes here.

File details

Details for the file wandb-0.17.0rc2-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for wandb-0.17.0rc2-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8c09030c4fbd4313f59b4cd137263a9ef4718207686b0be5938c7bd31ae25fd1
MD5 230c17a872a69105966e6a26424fea56
BLAKE2b-256 984a82ae0f9f28feec39a03cd2f2182620760ac0d901ca3550969ac385a0aa2e

See more details on using hashes here.

File details

Details for the file wandb-0.17.0rc2-py3-none-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for wandb-0.17.0rc2-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 767cd36f3f8c4a53592e1f6cf183e3f53a2877fbcc52784ba1d6d682b418f46b
MD5 f2bf74586062a841d106f194c0249c33
BLAKE2b-256 ffd23b3d274ed9ed873cc136c38e8cae12fe5b98b4e9fbaec0d156a158fd4d00

See more details on using hashes here.

File details

Details for the file wandb-0.17.0rc2-py3-none-any.whl.

File metadata

  • Download URL: wandb-0.17.0rc2-py3-none-any.whl
  • Upload date:
  • Size: 2.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for wandb-0.17.0rc2-py3-none-any.whl
Algorithm Hash digest
SHA256 9ddb07c267e5b7cf1355c7fae2cbc271705ee914e3e8830c533fdb7a5e7f6a27
MD5 2d0534d90b4563606c95f30b6e1cf6bc
BLAKE2b-256 297292d32d2f2fb7cd4a67f66cc444794a861ccd67d890c44555fbc24508dcb2

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