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.27.2.tar.gz (40.3 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.27.2-py3-none-win_arm64.whl (22.1 MB view details)

Uploaded Python 3Windows ARM64

wandb-0.27.2-py3-none-win_amd64.whl (24.2 MB view details)

Uploaded Python 3Windows x86-64

wandb-0.27.2-py3-none-win32.whl (24.2 MB view details)

Uploaded Python 3Windows x86

wandb-0.27.2-py3-none-musllinux_1_2_x86_64.whl (26.7 MB view details)

Uploaded Python 3musllinux: musl 1.2+ x86-64

wandb-0.27.2-py3-none-musllinux_1_2_aarch64.whl (24.7 MB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

wandb-0.27.2-py3-none-manylinux_2_28_x86_64.whl (26.4 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ x86-64

wandb-0.27.2-py3-none-manylinux_2_28_aarch64.whl (24.6 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ ARM64

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

Uploaded Python 3macOS 12.0+ x86-64

wandb-0.27.2-py3-none-macosx_12_0_arm64.whl (24.0 MB view details)

Uploaded Python 3macOS 12.0+ ARM64

File details

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

File metadata

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

File hashes

Hashes for wandb-0.27.2.tar.gz
Algorithm Hash digest
SHA256 c81ff93ab63f4dabc5a27b90ac3d12310fbfa6a14ca99201626921c99b2845be
MD5 df58adbe58d3c148fa8145b050e4e566
BLAKE2b-256 14a253ca062f430178e3af48ebc137396481d0ee885fb94a554c0df464cd8afa

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for wandb-0.27.2-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 32ed7456f40443c971e95dd63704d840fce66c24f88049a9bda8a09dfe85effe
MD5 55dcd760aa0c1d536c47ac008b2eb965
BLAKE2b-256 aa3a01ab3afc1f6f962df93db34be8183147c9821e4dce82dc03313fb8d08635

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for wandb-0.27.2-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 87204d4fe40fbd9a1fe89a05927ce4ddb8be34d8210045457819fb4a35e0bcea
MD5 ce0c06c2ecd151ca90a2bd83297e37c6
BLAKE2b-256 bf0b9e442779f5f24baaca044daf7546a735f41a811886b84ae12740d51b7f9d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for wandb-0.27.2-py3-none-win32.whl
Algorithm Hash digest
SHA256 5c55fad8c7be9d345dcebdc9dc10f7d2ac5af5bede62acbcd79a412ccaf48c87
MD5 311c5c6ea3648f10bd6943c002614863
BLAKE2b-256 e09baa94eb8265b0c55dc6c3e435c11241b3f885c7a1720718046efd7cbd8361

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wandb-0.27.2-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 41158181fc5b691438b3d04fee0a8c061e3f1f407a3258096afbebfe1db24e72
MD5 336746d585e4c6b91025f3f5019a2d7a
BLAKE2b-256 e17aa6f7a02a0e6bf73e163b61caca03aaba3452836a02dbe2b64f9e1a3c6afc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wandb-0.27.2-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 566aa2fcd67d2a23c08713da75e9daf82f30f7136af76763ef1d7db3d901d940
MD5 0a9369b1a79fbffc91b48116adf12007
BLAKE2b-256 ed4c0c845edac5ff0fd0930e881bec2569f2e2af2a4fc873249855600546eee0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wandb-0.27.2-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 55bfebf4d382116a8e9610848cadc0de50d406bacd3d0a390d12dabde196f009
MD5 8f904ba238a9509feb3b55b3518b87a2
BLAKE2b-256 76e27a5064aba235ddb855b8c2250e07e6187fcc8382332e237e545d4de094ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wandb-0.27.2-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e0779592410215a2762063c3585d3dcad73c7dca9cb6d63c4dcc1588267c1392
MD5 a2e512f12b539ba5cb4ca759b77b0dd7
BLAKE2b-256 b5a3f9fe31ca72b4f5854d1e488403d6310783127a6b7e267c28577e9bd51b43

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wandb-0.27.2-py3-none-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 de8099f02f540c743069617db7d034511a64c193748783aa6d2d98310918d170
MD5 50ba12bd3cad918ccf72f8fc95079156
BLAKE2b-256 431472c26f67b0b6cb307cbb76659465c6ab7d99ea27c268d1b4f5aa82c4d8e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wandb-0.27.2-py3-none-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 978400b3c4b7d97e927c32264453da5e4a0040a3468d5b77a00d9c480613f370
MD5 5d84158b819ba26f81b259d6fb1108e7
BLAKE2b-256 4b9518d3625558667b459d91c19630f7cecfbc133f87f5b144a7fb755e473e8c

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