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

Uploaded Python 3Windows ARM64

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

Uploaded Python 3Windows x86-64

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

Uploaded Python 3Windows x86

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

Uploaded Python 3musllinux: musl 1.2+ x86-64

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

Uploaded Python 3musllinux: musl 1.2+ ARM64

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

Uploaded Python 3manylinux: glibc 2.28+ x86-64

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

Uploaded Python 3manylinux: glibc 2.28+ ARM64

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

Uploaded Python 3macOS 12.0+ x86-64

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

File metadata

  • Download URL: wandb-0.25.0.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.0.tar.gz
Algorithm Hash digest
SHA256 45840495a288e34245d69d07b5a0b449220fbc5b032e6b51c4f92ec9026d2ad1
MD5 f94e3f15fc1c3419b7c6ea105fe96b80
BLAKE2b-256 fd60d94952549920469524b689479c864c692ca47eca4b8c2fe3389b64a58778

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for wandb-0.25.0-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 c6174401fd6fb726295e98d57b4231c100eca96bd17de51bfc64038a57230aaf
MD5 394ba731fbf6ba4521ea66da46a60145
BLAKE2b-256 276c5847b4dda1dfd52630dac08711d4348c69ed657f0698fc2d949c7f7a6622

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for wandb-0.25.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 78307ac0b328f2dc334c8607bec772851215584b62c439eb320c4af4fb077a00
MD5 9f310e44dab52511f25644d1048fdf3a
BLAKE2b-256 2597460f6cb738aaa39b4eb2e6b4c630b2ae4321cdd70a79d5955ea75a878981

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for wandb-0.25.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 020b42ca4d76e347709d65f59b30d4623a115edc28f462af1c92681cb17eae7c
MD5 36d6575724544013e6c30928c7edf821
BLAKE2b-256 ccfb9578eed2c01b2fc6c8b693da110aa9c73a33d7bb556480f5cfc42e48c94e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wandb-0.25.0-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 ada6f08629bb014ad6e0a19d5dec478cdaa116431baa3f0a4bf4ab8d9893611f
MD5 773c89d171a60fbbe95a5310a2beeacd
BLAKE2b-256 d79468163f70c1669edcf130822aaaea782d8198b5df74443eca0085ec596774

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wandb-0.25.0-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 6edd8948d305cb73745bf564b807bd73da2ccbd47c548196b8a362f7df40aed8
MD5 ef6dc5763534b4fb32bb4093069b5325
BLAKE2b-256 c795cb2d1c7143f534544147fb53fe87944508b8cb9a058bc5b6f8a94adbee15

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wandb-0.25.0-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6c4c38077836f9b7569a35b0e1dcf1f0c43616fcd936d182f475edbfea063665
MD5 e4e2bb5899e24c241575bca470b84f65
BLAKE2b-256 de91ec9465d014cfd199c5b2083d271d31b3c2aedeae66f3d8a0712f7f54bdf3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wandb-0.25.0-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 5e0127dbcef13eea48f4b84268da7004d34d3120ebc7b2fa9cefb72b49dbb825
MD5 3fd1607cbb64f43f268f92ac9ecc8b2f
BLAKE2b-256 d9a1258cdedbf30cebc692198a774cf0ef945b7ed98ee64bdaf62621281c95d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wandb-0.25.0-py3-none-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 daeedaadb183dc466e634fba90ab2bab1d4e93000912be0dee95065a0624a3fd
MD5 846ce0354aaeb498ef4592bb29c13a72
BLAKE2b-256 c39531bb7f76a966ec87495e5a72ac7570685be162494c41757ac871768dbc4f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wandb-0.25.0-py3-none-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 5eecb3c7b5e60d1acfa4b056bfbaa0b79a482566a9db58c9f99724b3862bc8e5
MD5 59481fb6ae848e9a958f080169a781b8
BLAKE2b-256 c17d0c131db3ec9deaabbd32263d90863cbfbe07659527e11c35a5c738cecdc5

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