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.1rc20260218.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.1rc20260218-py3-none-win_arm64.whl (21.8 MB view details)

Uploaded Python 3Windows ARM64

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

Uploaded Python 3Windows x86-64

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

Uploaded Python 3Windows x86

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

Uploaded Python 3musllinux: musl 1.2+ x86-64

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

Uploaded Python 3musllinux: musl 1.2+ ARM64

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

Uploaded Python 3manylinux: glibc 2.28+ x86-64

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

Uploaded Python 3manylinux: glibc 2.28+ ARM64

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

Uploaded Python 3macOS 12.0+ x86-64

wandb-0.25.1rc20260218-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.1rc20260218.tar.gz.

File metadata

  • Download URL: wandb-0.25.1rc20260218.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.1rc20260218.tar.gz
Algorithm Hash digest
SHA256 891096e1149c127b3d1d4880473827381e9121ac21e0bd87aae696efb6f25515
MD5 6902365948885e9bad140382feb639b3
BLAKE2b-256 2ae113046d75f66b4dabed68cc21a11340d26e5295e575a97fced6b527769198

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wandb-0.25.1rc20260218-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 7eff54a6b65e5bcf6e0637e2794ed999b5e4b0552bee4edcb28cfd6f836c777c
MD5 46643ae7e5bb8fc7a5ac2a74c507f207
BLAKE2b-256 eaf9ee74c0ad0c7c6b5683018ef30f83fda35c15562c602d0bac6183e8c2bfd3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wandb-0.25.1rc20260218-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 8159aa275fb15e551eaed5e1bff99bedf9d9ee3cac6fc341fc2afe5c0138bd7c
MD5 598504f39964c7d6a3302af789be378c
BLAKE2b-256 510cd3752dc4b7117b0b0e178aa169036a03fb1ce6fa7c998b6ce6cb32dd9ed7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wandb-0.25.1rc20260218-py3-none-win32.whl
Algorithm Hash digest
SHA256 580c4369b6dd3852766d684ac5b4acee2d177ea5c35ccaa1fe5046ce778e3e86
MD5 8d05425775074d2265d76ddb8622bfe6
BLAKE2b-256 a7cdfe6857f5556cdea2c38e07c06beb453207af2163f48c8d5dafacc0641fa8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wandb-0.25.1rc20260218-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 8b04fc6713d175cec9074a29298c6525d7a45e3ab2bc0669ae0017219934f1a6
MD5 145584ac6022bb0bcb06327548238487
BLAKE2b-256 ebcb6f9994b2bccb3f9ee97940a764b88de29dd7c6b060620c555461e966e77a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wandb-0.25.1rc20260218-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 6da3baae0dd9c4864f137cedecd4e3f439d48d16e855d5b262d4a662a748f2ed
MD5 7f26e89e6610d64a00ab4ba947062e89
BLAKE2b-256 2c987cbdf33a443c33265d4680e9d3b961d2949a8dcaeca1ac9a18078b4420fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wandb-0.25.1rc20260218-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e76e79156cf79b4021f59bad4bc16dbab6549c30a12589de734e68ac734a0b9d
MD5 3946cf7f00d620fe58c85c0b88b0d166
BLAKE2b-256 bfc1e4f05f224a216d745bc90939e98eea2381b7df7b15992712513453ce79eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wandb-0.25.1rc20260218-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 3c4d8e5451022019a16a36f65a579bb284b3bd9cae83e8a09e0f1aad88e43d3e
MD5 db9eed0322525af9c49d889411094b6a
BLAKE2b-256 3e022bee7107649f7d6edd580bec839055fcef7c6ccba477e271701c9205b3b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wandb-0.25.1rc20260218-py3-none-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 dd02305c31f661bf21161846bc8e6caf4e950697d1c322b8cddc018c62b2153c
MD5 6137024eefd611f5a8c1e0c5359c2645
BLAKE2b-256 d19ff80dd4241fbcb3eb496fe8465c5f85be885897dd4909923d6d477d7c6a92

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wandb-0.25.1rc20260218-py3-none-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 8ec7b0fa78ab3323c1cbc39df328d8b81dbbc03732f056646043be6b32940e16
MD5 105f9756fbb6e068971c553c675e9a8c
BLAKE2b-256 0860ef4e4facc99e56aa77212874b4bd066e133c25fd61d524ff81db2d48b451

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