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.26.0.tar.gz (42.1 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.26.0-py3-none-win_arm64.whl (22.9 MB view details)

Uploaded Python 3Windows ARM64

wandb-0.26.0-py3-none-win_amd64.whl (24.9 MB view details)

Uploaded Python 3Windows x86-64

wandb-0.26.0-py3-none-win32.whl (24.9 MB view details)

Uploaded Python 3Windows x86

wandb-0.26.0-py3-none-musllinux_1_2_x86_64.whl (27.5 MB view details)

Uploaded Python 3musllinux: musl 1.2+ x86-64

wandb-0.26.0-py3-none-musllinux_1_2_aarch64.whl (25.5 MB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

wandb-0.26.0-py3-none-manylinux_2_28_x86_64.whl (27.2 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ x86-64

wandb-0.26.0-py3-none-manylinux_2_28_aarch64.whl (25.4 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ ARM64

wandb-0.26.0-py3-none-macosx_12_0_x86_64.whl (26.0 MB view details)

Uploaded Python 3macOS 12.0+ x86-64

wandb-0.26.0-py3-none-macosx_12_0_arm64.whl (24.8 MB view details)

Uploaded Python 3macOS 12.0+ ARM64

File details

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

File metadata

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

File hashes

Hashes for wandb-0.26.0.tar.gz
Algorithm Hash digest
SHA256 0356853895b53fe110e2ed17a1d49c15405498f08e5fbc339deab384f2df45f1
MD5 70bb4b61e3a40a78af076165ee2754d0
BLAKE2b-256 9382911948663ddf9e5ec6bc5cde19b0fffcb23c4b64a546bf5c084fde76c4cb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wandb-0.26.0-py3-none-win_arm64.whl
  • Upload date:
  • Size: 22.9 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.26.0-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 99bd11974e9005d3a3f82e1fabfc4909ffa1fdede23a8839f5fbaea2f5be9033
MD5 cb5a349f0a4ce6d8c9f489c74a8e4ea0
BLAKE2b-256 1a3e344cb29b593f8e7abc14cc268dafde1974bae3f073b4885476f4fbba3cb8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wandb-0.26.0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 24.9 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.26.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 21a8346434fd30e1bc13a26b226fc29b6f33a1cb346d610cbcb4040c3b0e1f63
MD5 188919acffa6152af7fa7c6b9f861e5f
BLAKE2b-256 353dbf182f3af977e6297fc05bc3fd9bd51feacfe4d2c4ce83c90eb2ad7ce59b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wandb-0.26.0-py3-none-win32.whl
  • Upload date:
  • Size: 24.9 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.26.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 362828d48d21dd4877e28fdce40421ebdfc16d1fe0b59e8371b12d75bbc3f1e7
MD5 e5527e5117436e2cf77e9fbb26d3670b
BLAKE2b-256 24c5a4eb8fb6e7527584c6ccdf5c9b265283ed0c9d94d26d5eb28f9b48cd5779

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wandb-0.26.0-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 3eb88fb556a64bf4492cf571bb851d47871901c096f0540d841ccb50f5cbeb66
MD5 6a595b15597fec7bccf6c0de6c5775a5
BLAKE2b-256 ddf0821a451110dd5f5c39358752abbdcb56c4fcebcc41039c7dcd4b024d2e27

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wandb-0.26.0-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 fb9a63babeee044fecf65a4675f7dfb0efaea4986e498a3bc8f948558af877e7
MD5 1bcde987740726d68a5ab3c5fe3b09dc
BLAKE2b-256 c484e4b0636a3e921e2cffb159b57b5a83787475993e2b5adb6181fbf7712a59

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wandb-0.26.0-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 28a14ffc014e523498d077dfde12839b7be586ca8c3190e72e7167c1aea6ee4c
MD5 508537cb75d6a2bcd533075cab31054a
BLAKE2b-256 4fa855325da4b240d07ba2a8e1949a05b5942dd3346e14f7fd5e3cc72e46a648

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wandb-0.26.0-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 a17aae051a31831388cff880251c1b5bc38fbf6a283a0ee7c543709e8e9633d1
MD5 9535db591d605061d8c59f9945f16b62
BLAKE2b-256 45a6940ca459d70c7cce7a6f7b395809f8ed051a25b2ce696fb93694c77f065f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wandb-0.26.0-py3-none-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 92f6f303fe2af50e3f711833a835150f9b4d8082874bfd9868cf15491ea2947e
MD5 e9d0e5b8f34cd29dc08bb0303a2911e1
BLAKE2b-256 29b84d38b43747616c4a9304be38b6e78526814deb5c1e01b3b6ebac82ce1cb5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wandb-0.26.0-py3-none-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 1ece94a2a5eda1d0e3a2d8a2fd28aa0187705d6efa5ac4c0b8680083583b7ec1
MD5 c5ec9879cd26dc139c28ffe0e31304ad
BLAKE2b-256 6916c0ea55323be74da9b4297d934b8e787251ae944d5776340c5498871927f1

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