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.25.1rc20260223.tar.gz (44.0 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.25.1rc20260223-py3-none-win_arm64.whl (21.8 MB view details)

Uploaded Python 3Windows ARM64

wandb-0.25.1rc20260223-py3-none-win_amd64.whl (24.6 MB view details)

Uploaded Python 3Windows x86-64

wandb-0.25.1rc20260223-py3-none-win32.whl (24.6 MB view details)

Uploaded Python 3Windows x86

wandb-0.25.1rc20260223-py3-none-musllinux_1_2_x86_64.whl (25.4 MB view details)

Uploaded Python 3musllinux: musl 1.2+ x86-64

wandb-0.25.1rc20260223-py3-none-musllinux_1_2_aarch64.whl (22.9 MB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

wandb-0.25.1rc20260223-py3-none-manylinux_2_28_x86_64.whl (25.3 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ x86-64

wandb-0.25.1rc20260223-py3-none-manylinux_2_28_aarch64.whl (22.8 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ ARM64

wandb-0.25.1rc20260223-py3-none-macosx_12_0_x86_64.whl (25.2 MB view details)

Uploaded Python 3macOS 12.0+ x86-64

wandb-0.25.1rc20260223-py3-none-macosx_12_0_arm64.whl (23.3 MB view details)

Uploaded Python 3macOS 12.0+ ARM64

File details

Details for the file wandb-0.25.1rc20260223.tar.gz.

File metadata

  • Download URL: wandb-0.25.1rc20260223.tar.gz
  • Upload date:
  • Size: 44.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for wandb-0.25.1rc20260223.tar.gz
Algorithm Hash digest
SHA256 d7b7ec0a3bbc86b39c967c69e60b4460fac24682b6ce9ecc20372cf846da4772
MD5 3b19ffd7948e0f0c594075230ccba0d0
BLAKE2b-256 98da527c3b9803844dc6563a55bb9c19b1535b47d9162a6694dadae57959d9c5

See more details on using hashes here.

File details

Details for the file wandb-0.25.1rc20260223-py3-none-win_arm64.whl.

File metadata

File hashes

Hashes for wandb-0.25.1rc20260223-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 8107e5a4f38abf161440e681b2a8c87800db85985525f4cadf5c5ac7f759b01f
MD5 245cdddd88b9c9d5ee6910dfea83da20
BLAKE2b-256 f37b5c1cdc8d5554d6067ff5f45114613016ddfdd81d0bcdb50db00ce36f6abd

See more details on using hashes here.

File details

Details for the file wandb-0.25.1rc20260223-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for wandb-0.25.1rc20260223-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 bb803c05a4ed36d212c99defa6c4e3ced0099e1c5e1ad2777fc0a4ce06280a7a
MD5 7d21b8b3687d8792d1579c09e58650c5
BLAKE2b-256 cfa1b8dfd0e248cf7a0389f9b74274ef492fdf383f7bd2bfc7664e697d0d1f1c

See more details on using hashes here.

File details

Details for the file wandb-0.25.1rc20260223-py3-none-win32.whl.

File metadata

File hashes

Hashes for wandb-0.25.1rc20260223-py3-none-win32.whl
Algorithm Hash digest
SHA256 8251c9ae1da9a4acd5046b0e4431cf71bd0f4f62d360ce8b7640c5cc4e524c80
MD5 124b4b99281aaa658713fd413a9fed31
BLAKE2b-256 c64f36cc5bb122a650e7c1c5dd2f529078ddb1ed233260630315ab5cd4d0a402

See more details on using hashes here.

File details

Details for the file wandb-0.25.1rc20260223-py3-none-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for wandb-0.25.1rc20260223-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 52e02f52b961a63fdad9657ee93627adbf4e7ca2a2890f18baaa0a5d9d33dd68
MD5 d80fb88171911812aa6f66642a3a3d25
BLAKE2b-256 728433527fce7767244f0977ada97bc1916ae24964ed8d99ab61cc8f9029b38b

See more details on using hashes here.

File details

Details for the file wandb-0.25.1rc20260223-py3-none-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for wandb-0.25.1rc20260223-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 f065864b37dd4fc1d68c139d8e8c518a94d020d9dd9a42750625be776c7f0b40
MD5 ea6d3fa2ab2560ee25dfb448ba738424
BLAKE2b-256 f0e34e69f3264694aa978015dc20ca27f72b7596a7d47fd80d9a0c6aa9a12788

See more details on using hashes here.

File details

Details for the file wandb-0.25.1rc20260223-py3-none-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for wandb-0.25.1rc20260223-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 58cc3aaace1d16c99c55883d77d45773711aba29cf0788d026b2433660add827
MD5 3992c3928eee703596cc06a8b690806d
BLAKE2b-256 985afddfd7fdf85d2d3ee51490c24f46a9995bb45c00d341e18be2b3ca5bdc98

See more details on using hashes here.

File details

Details for the file wandb-0.25.1rc20260223-py3-none-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for wandb-0.25.1rc20260223-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 11ed53fe0747d8ed25ee4b8afc1b3082e71720433dae6ec165ca90dd98258172
MD5 617007565eff3caac4e0d2322c80fb04
BLAKE2b-256 a5c618e214e9f8f8bfba72c69a02f2d637b37562502d597d7cd7724e7fa34202

See more details on using hashes here.

File details

Details for the file wandb-0.25.1rc20260223-py3-none-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for wandb-0.25.1rc20260223-py3-none-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 e6dd6e24bf10a813c2ca2adcf9ef24ea98319f44943e200a74ed71fa3facd309
MD5 23e29bd3fe3765bf4d557afb267866ea
BLAKE2b-256 a17cf548d335d01242f61702abfbbb22cd320e3a6d7755173ddfba24ca3c7724

See more details on using hashes here.

File details

Details for the file wandb-0.25.1rc20260223-py3-none-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for wandb-0.25.1rc20260223-py3-none-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 4b7b516262f341a9db8295975a545dc7454862521b5e0b5d64b651e23f36b468
MD5 c88871878ba55b3d5ec96254f62d772a
BLAKE2b-256 a7e4e44a6e116e214ecea559d2c47f79aa79ac6d5418c79833c56853f76e537f

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