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

Uploaded Python 3Windows ARM64

wandb-0.27.1-py3-none-win_amd64.whl (24.1 MB view details)

Uploaded Python 3Windows x86-64

wandb-0.27.1-py3-none-win32.whl (24.1 MB view details)

Uploaded Python 3Windows x86

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

Uploaded Python 3musllinux: musl 1.2+ x86-64

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

Uploaded Python 3musllinux: musl 1.2+ ARM64

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

Uploaded Python 3manylinux: glibc 2.28+ x86-64

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

Uploaded Python 3manylinux: glibc 2.28+ ARM64

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

Uploaded Python 3macOS 12.0+ x86-64

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

File metadata

  • Download URL: wandb-0.27.1.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.1.tar.gz
Algorithm Hash digest
SHA256 214b3430c1e76e5eb55192c1bb4184a084f969e0c75cb15a709324c069efe10e
MD5 b70662fb82a505f708f23b60b2eefcac
BLAKE2b-256 faa435a6e297ca22e0e2cbe77cbd21d33462874b8f508b41f0fae2f4c292ffea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wandb-0.27.1-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.1-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 356eda1fbce41101286935f5291e7db5ddfd062b23ddbbdd1d45ed03763ba2c4
MD5 17eb06d56848095a272c8d369a381246
BLAKE2b-256 5db4ed3e3410d0a86b9542c4cd3839f47bd72493063240759e7120f38637a9c0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wandb-0.27.1-py3-none-win_amd64.whl
  • Upload date:
  • Size: 24.1 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.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 2d7e4bb60a28756a0a6c78884dbad60bcd07e7cf840cdd8e3a3873bdf2af62af
MD5 0638d2e98389230f5829c9236a0c8ec1
BLAKE2b-256 7aa97d25ba1386fe6b4dea65342aba7c82a9ac3294cb591b449622b31d75e0c5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wandb-0.27.1-py3-none-win32.whl
  • Upload date:
  • Size: 24.1 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.1-py3-none-win32.whl
Algorithm Hash digest
SHA256 38dd902b56188789d3b17c03f8f77fef97a0b1c5aecee94c5bd70836e667b2cf
MD5 8b8961ff818d543051cd8b2562ecc83a
BLAKE2b-256 fa1491283eb2a17063091858f9f2b822437b16d75e53d742e295db1b479dcca4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wandb-0.27.1-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 a79f899de9861543bf20f273cdfe513c85d6841e88568aa1de05ce4a0a5a547b
MD5 6720c94c85b092e3233fe8c5db002c7c
BLAKE2b-256 3d2bf9c5bffd1f858c2c0a6dd41a8b5dea3d9337d4282dd247e603e1bea98d80

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wandb-0.27.1-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 af91e99c0dc02de03997169d218698e1175fca1cd06d5af5ef68a855c0cf6968
MD5 52e7456a1154b92677f414229789cdcb
BLAKE2b-256 463e9fbaac13e1ffcecb3265dd08b8a76a15c21361ccbc0c65ab745847268240

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wandb-0.27.1-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 77ccc56582d07671a867b78ced686096ca53c021d79fed38e5aaf4cebbd0450b
MD5 b99bb4a6ce25a09d488a8cfc4705e8e2
BLAKE2b-256 02cd0cd5ef8723581cef8d6ecb9de29623a3da89c969b04f32809c1f22985ba2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wandb-0.27.1-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 1c62f0daae156b1f56b2ac78e3dab25a19c8e4ef73b83547c0c877c77d433e9a
MD5 e91ef1f1b54b998b92b552ff0b0224dc
BLAKE2b-256 164e872bd057b83a6c5da5c4e8c482c41df9338898a3c34d26172eb306388b8c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wandb-0.27.1-py3-none-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 2fb189f186f2a41df9c559918a3308da22069dca5bc6f021bfface197a9aa1ff
MD5 b1ccbffda848b52dc4e9d33d8308b7f4
BLAKE2b-256 914a4dfa139ccce0f686eef44e3b8a3efc535333e4275e8fddcb68ff03b4f60d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wandb-0.27.1-py3-none-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 abd80f9f74a4c28890c2a38d356fb0bceadfce497311ff13431ff387f4f23698
MD5 fc53f25f3c1240d4e871442e4c351fb4
BLAKE2b-256 fee23fa03632b11cbaa8b078a2c50fd985b6009a3ffcc566c3898d430c987cd1

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