Skip to main content

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

Project description



Use W&B to build better models faster. Track and visualize all the pieces of your machine learning pipeline, from datasets to production machine learning models. Get started with W&B today, sign up for a W&B account!


Building an LLM app? Track, debug, evaluate, and monitor LLM apps with Weave, our new suite of tools for GenAI.

 

Documentation

See the W&B Developer Guide and API Reference Guide for a full technical description of the W&B platform.

 

Quickstart

Install W&B to track, visualize, and manage machine learning experiments of any size.

Install the wandb library

pip install wandb

Sign up and create an API key

Sign up for a W&B account. Optionally, use the wandb login CLI to configure an API key on your machine. You can skip this step -- W&B will prompt you for an API key the first time you use it.

Create a machine learning training experiment

In your Python script or notebook, initialize a W&B run with wandb.init(). Specify hyperparameters and log metrics and other information to W&B.

import wandb

# Project that the run is recorded to
project = "my-awesome-project"

# Dictionary with hyperparameters
config = {"epochs" : 1337, "lr" : 3e-4}

# The `with` syntax marks the run as finished upon exiting the `with` block,
# and it marks the run "failed" if there's an exception.
#
# In a notebook, it may be more convenient to write `run = wandb.init()`
# and manually call `run.finish()` instead of using a `with` block.
with wandb.init(project=project, config=config) as run:
    # Training code here

    # Log values to W&B with run.log()
    run.log({"accuracy": 0.9, "loss": 0.1})

Visit wandb.ai/home to view recorded metrics such as accuracy and loss and how they changed during each training step. Each run object appears in the Runs column with generated names.

 

Integrations

W&B integrates with popular ML frameworks and libraries making it fast and easy to set up experiment tracking and data versioning inside existing projects.

For developers adding W&B to a new framework, follow the W&B Developer Guide.

 

W&B Hosting Options

Weights & Biases is available in the cloud or installed on your private infrastructure. Set up a W&B Server in a production environment in one of three ways:

  1. Multi-tenant Cloud: Fully managed platform deployed in W&B’s Google Cloud Platform (GCP) account in GCP’s North America regions.
  2. Dedicated Cloud: Single-tenant, fully managed platform deployed in W&B’s AWS, GCP, or Azure cloud accounts. Each Dedicated Cloud instance has its own isolated network, compute and storage from other W&B Dedicated Cloud instances.
  3. Self-Managed: Deploy W&B Server on your AWS, GCP, or Azure cloud account or within your on-premises infrastructure.

See the Hosting documentation in the W&B Developer Guide for more information.

 

Python Version Support

We are committed to supporting our minimum required Python version for at least six months after its official end-of-life (EOL) date, as defined by the Python Software Foundation. You can find a list of Python EOL dates here.

When we discontinue support for a Python version, we will increment the library’s minor version number to reflect this change.

 

Contribution guidelines

Weights & Biases ❤️ open source, and we welcome contributions from the community! See the Contribution guide for more information on the development workflow and the internals of the wandb library. For wandb bugs and feature requests, visit GitHub Issues or contact support@wandb.com.

 

W&B Community

Be a part of the growing W&B Community and interact with the W&B team in our Discord. Stay connected with the latest ML updates and tutorials with W&B Fully Connected.

 

License

MIT License

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.28.1.tar.gz (40.6 MB view details)

Uploaded Source

Built Distributions

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

wandb-0.28.1-py3-none-win_arm64.whl (22.3 MB view details)

Uploaded Python 3Windows ARM64

wandb-0.28.1-py3-none-win_amd64.whl (24.4 MB view details)

Uploaded Python 3Windows x86-64

wandb-0.28.1-py3-none-win32.whl (24.4 MB view details)

Uploaded Python 3Windows x86

wandb-0.28.1-py3-none-musllinux_1_2_x86_64.whl (27.0 MB view details)

Uploaded Python 3musllinux: musl 1.2+ x86-64

wandb-0.28.1-py3-none-musllinux_1_2_aarch64.whl (25.0 MB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

wandb-0.28.1-py3-none-manylinux_2_28_x86_64.whl (26.5 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ x86-64

wandb-0.28.1-py3-none-manylinux_2_28_aarch64.whl (24.8 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ ARM64

wandb-0.28.1-py3-none-macosx_12_0_x86_64.whl (25.5 MB view details)

Uploaded Python 3macOS 12.0+ x86-64

wandb-0.28.1-py3-none-macosx_12_0_arm64.whl (24.3 MB view details)

Uploaded Python 3macOS 12.0+ ARM64

File details

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

File metadata

  • Download URL: wandb-0.28.1.tar.gz
  • Upload date:
  • Size: 40.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for wandb-0.28.1.tar.gz
Algorithm Hash digest
SHA256 870ccb1a01238b0ac07c6fd96a0810a1f79090aba04ea29f4ee012ac8327705d
MD5 a3cc379aa10e6c36659fdccbc3950595
BLAKE2b-256 92fb8d3f96a8b143060d6fa145462d0785981373e04694e4152555ccb5d23939

See more details on using hashes here.

File details

Details for the file wandb-0.28.1-py3-none-win_arm64.whl.

File metadata

  • Download URL: wandb-0.28.1-py3-none-win_arm64.whl
  • Upload date:
  • Size: 22.3 MB
  • Tags: Python 3, Windows ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for wandb-0.28.1-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 4aa07f13dd3bcac2c0524c8d0f49f76e83ab5c1054fd09f3b1a436cfcde146a6
MD5 3123bb70035d759d5e02fce02bed6ca8
BLAKE2b-256 077875b6827a6665337a715c5347c5edbd84eca660f7a0f48d8d6d24d1f66bee

See more details on using hashes here.

File details

Details for the file wandb-0.28.1-py3-none-win_amd64.whl.

File metadata

  • Download URL: wandb-0.28.1-py3-none-win_amd64.whl
  • Upload date:
  • Size: 24.4 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for wandb-0.28.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 d98a10370162b1e970850237114c56e9c4c58f3cb701e4b8cb38f36f6749fd52
MD5 21c1854e2a89082c6262955b60c51bd0
BLAKE2b-256 bf6fed6616b11ea15b8ceabedcaa567286c1c9ec65fa50563230a90bfb627cc5

See more details on using hashes here.

File details

Details for the file wandb-0.28.1-py3-none-win32.whl.

File metadata

  • Download URL: wandb-0.28.1-py3-none-win32.whl
  • Upload date:
  • Size: 24.4 MB
  • Tags: Python 3, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for wandb-0.28.1-py3-none-win32.whl
Algorithm Hash digest
SHA256 4bc461cda3ce23a19d8df5e42981a664d95fa3231efb10fd1e85d9d4824c7d29
MD5 556802c92ab3c07d79898efbbfa1cb79
BLAKE2b-256 b28349deab9447687625371435ca21b6da82f223f1c7d014d77386b9cb91833c

See more details on using hashes here.

File details

Details for the file wandb-0.28.1-py3-none-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for wandb-0.28.1-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 7233061080507a4b4098bed1ccb381ce6f890c60397cd4153d060285bcb267bd
MD5 f47fb0de0be1d154ad8e61ab6d27c81a
BLAKE2b-256 23306de2f7995a8a6eecbd03d24c79a139a734c0168f5520cf4c7ccb43c1dbbc

See more details on using hashes here.

File details

Details for the file wandb-0.28.1-py3-none-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for wandb-0.28.1-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 cf2b1533945395e4fdbe6182b272bb0ca8a02c10b3086a395e2d57686ae3ed0d
MD5 7ae429a25710798720ffa1e6a570936c
BLAKE2b-256 11c006b23518e29690784f1b3081e39c7679ca076cb0af094cb9b4bb309150f5

See more details on using hashes here.

File details

Details for the file wandb-0.28.1-py3-none-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for wandb-0.28.1-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8cfb898b6a6c884d9c9294b02764e88bce65049f027a124d6bee53fe722469b6
MD5 31f39f92e3cb13efe591568178215af6
BLAKE2b-256 b3da49924c7df2952dfd82c86c3779c339c0c3d6f6439387c03d97d0470c3658

See more details on using hashes here.

File details

Details for the file wandb-0.28.1-py3-none-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for wandb-0.28.1-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 ae9ae6fb29e2e2b1d097ed8b75c0c0240c778c2a8cad1d996dee870a1e401c2c
MD5 e2128fd28402ad315fe245387fb83d85
BLAKE2b-256 e21ad15bcfb4417fa69edcaa33db8ea012db733da1057e193b047e3f69fdd671

See more details on using hashes here.

File details

Details for the file wandb-0.28.1-py3-none-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for wandb-0.28.1-py3-none-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 3da3db219c54bfd1082c00e9061c8ea894ba43e42733b5af00bb10c09d7158fe
MD5 47c4f61eeef520e1a8b76dc6c51d03ae
BLAKE2b-256 8f186c3da7e6cb215ad363324db8dc4d83b93626f5e339822b05b1c38a6097fd

See more details on using hashes here.

File details

Details for the file wandb-0.28.1-py3-none-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for wandb-0.28.1-py3-none-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 da909a76e65c64c0d93acc485d2a19f66e336f1e3f725f1c98a070883e084943
MD5 2ddd01f4b2289860b2e9c76b459e6d37
BLAKE2b-256 06218df50164d07623cfcefec19bbf9327d9be84b637a827cea1f0c06db005fd

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