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.0.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.0-py3-none-win_arm64.whl (22.4 MB view details)

Uploaded Python 3Windows ARM64

wandb-0.28.0-py3-none-win_amd64.whl (24.5 MB view details)

Uploaded Python 3Windows x86-64

wandb-0.28.0-py3-none-win32.whl (24.5 MB view details)

Uploaded Python 3Windows x86

wandb-0.28.0-py3-none-musllinux_1_2_x86_64.whl (27.1 MB view details)

Uploaded Python 3musllinux: musl 1.2+ x86-64

wandb-0.28.0-py3-none-musllinux_1_2_aarch64.whl (25.1 MB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

wandb-0.28.0-py3-none-manylinux_2_28_x86_64.whl (26.8 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ x86-64

wandb-0.28.0-py3-none-manylinux_2_28_aarch64.whl (24.9 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ ARM64

wandb-0.28.0-py3-none-macosx_12_0_x86_64.whl (25.6 MB view details)

Uploaded Python 3macOS 12.0+ x86-64

wandb-0.28.0-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.0.tar.gz.

File metadata

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

File hashes

Hashes for wandb-0.28.0.tar.gz
Algorithm Hash digest
SHA256 b20e5af0fe80e2e2a466b0466a1d60cedcc578dce0f036eca04f4a0adcad95b6
MD5 aba1f6dabef12cb90b51fbd39d144ef2
BLAKE2b-256 5fa7683bfbd6cbade3012bc90d3e9c4cfc72dd62566195bf4c30321946d64b77

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wandb-0.28.0-py3-none-win_arm64.whl
  • Upload date:
  • Size: 22.4 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.28.0-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 c5b0faf1b84cf79ebabed77538c1940a4c6053e815f767a4004e877a1354bed1
MD5 df0c2f946b185dd0c9bcf56db4c4dcc5
BLAKE2b-256 f077b5ce9696c8cb955521a7941fbc443e78b2f504894c6ae1a2d0b1de6e12ae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wandb-0.28.0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 24.5 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.28.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 ac1f82292e2da4f98297b78c3a46726b3a6c5734ecb75fc39b8db2c8a4989159
MD5 344690c97df8bbc34a2f701135bc7280
BLAKE2b-256 c6c4c7bed5e981679c74e9fbb22c03ff31c42e95f266199d03d8d325f4d0e6df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wandb-0.28.0-py3-none-win32.whl
  • Upload date:
  • Size: 24.5 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.28.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 8834ef3a7c8c43b701654162783caa7ad37af48a0ff06fc35d0d65a411f76ccd
MD5 3835c3915113061ddcb247cce6e694b5
BLAKE2b-256 59b1f7a96c09cab0c5131b1e6466659b093b401e1653cbe6bb77b462fc1c361d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wandb-0.28.0-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 9fec6c908554c2dad33110c1312bc3028cc2e430f0679f16b84f82c8ea801e3b
MD5 badad0bcc41fee76b982a99492506cca
BLAKE2b-256 89679be00fb2db2281063af24a148636d2dd363d337317642ab5d8e93572c794

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wandb-0.28.0-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 8954bc1c62ae43914dce2bebfd1d9957f72350f8fbb78e5cdfe2ca9b6be8a7b8
MD5 acde0401d576c305e73b3d77d96e88a1
BLAKE2b-256 005823b6c17a6d3d5422b007707961c4496b2f6f892624d2910c9f7742fcc202

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wandb-0.28.0-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 325b2d0bd88be6eda5db10542499bad3710927f2569c81a84dc5eeaffc76825c
MD5 bbd85883300c7cc4642e8ec80de8fbb1
BLAKE2b-256 d85d1385ce3c219cb5bd30d4027687e3f8d25969c7dfd09adad1cbd5080e1a72

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wandb-0.28.0-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 6dbcba12ab168aa37561f2f32dcdef8713495fc25fa7d30fdc9bfb37989694dd
MD5 870c51d706bb94dae09a7f84f40e1a54
BLAKE2b-256 1555c3db03d04aeab3726066a418b2ef6a1f8119774ee510f4fbe992f52b7472

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wandb-0.28.0-py3-none-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 ae255da18726ee8e731ef82cbc85035b901a28ae14cf91604c361b44b8d44ce0
MD5 c51f8e3302c65cc295a143fffb47ee3d
BLAKE2b-256 81ff42b539bc75bc48fc86981dccde89327ba9b71504b805b9ba42cba7c26de9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wandb-0.28.0-py3-none-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 c3dab1205a5aca4abbad1eca08902cdba86add0edfa83d8d61b4429d0e79fa87
MD5 6dfebc597a72d2f7a3b71908f685b37e
BLAKE2b-256 c0471723605f76c5d6446b6d0db65b83eda1599721bc8c1e65bd76cc1682b1a7

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