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

Uploaded Python 3Windows ARM64

wandb-0.26.1-py3-none-win_amd64.whl (25.0 MB view details)

Uploaded Python 3Windows x86-64

wandb-0.26.1-py3-none-win32.whl (25.0 MB view details)

Uploaded Python 3Windows x86

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

Uploaded Python 3musllinux: musl 1.2+ x86-64

wandb-0.26.1-py3-none-musllinux_1_2_aarch64.whl (25.6 MB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

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

Uploaded Python 3manylinux: glibc 2.28+ x86-64

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

Uploaded Python 3manylinux: glibc 2.28+ ARM64

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

Uploaded Python 3macOS 12.0+ x86-64

wandb-0.26.1-py3-none-macosx_12_0_arm64.whl (24.9 MB view details)

Uploaded Python 3macOS 12.0+ ARM64

File details

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

File metadata

  • Download URL: wandb-0.26.1.tar.gz
  • Upload date:
  • Size: 42.2 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.1.tar.gz
Algorithm Hash digest
SHA256 eef2dbaea06f0b1c0cdc5d76f544ae4c2b8848fc512442a00bd59f0502fc8aa1
MD5 f7162bc48c8a2dbb7b0ad022ce848210
BLAKE2b-256 6aa472a6640e1f566e81f184a426e3e45298d4c6672664de41adb7eb6f64370a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wandb-0.26.1-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.1-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 f848b7744f896bc04cabbb28360a2814d1551a91fa2c456243e06435729c8a2e
MD5 12a45ead56a9b5ce5a8c4f4ef8641c9d
BLAKE2b-256 04dc5baf3e99b3eeb709d6f75124b5bec8cb73d4b38d2b10df7fdcfde4966200

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wandb-0.26.1-py3-none-win_amd64.whl
  • Upload date:
  • Size: 25.0 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.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 5817785467d3f1676f1812ec19a89f77f6e56dfe67d9f47080075af95f705d3e
MD5 45f94f6b24b7c9043078dbbf7dbe4b49
BLAKE2b-256 e39b487413eaccefdb58799a226726e24b486e9192d2671c75a4550c160aba23

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wandb-0.26.1-py3-none-win32.whl
  • Upload date:
  • Size: 25.0 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.1-py3-none-win32.whl
Algorithm Hash digest
SHA256 5c2bd44e575ae9944e2764d1aaa031461178276bf2636d5558399c2816ef5cfe
MD5 b874a24a3fc63ef545c491cd71101e32
BLAKE2b-256 7cd04e846ffc1d0cc435518dfa581ce73ac82cfd0ebbf35f3853c9277f632e5f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wandb-0.26.1-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 5854928725cfeff1f284d5c043cd353f810e5da02eead2c120ef5056ad026fea
MD5 0fe3dff2398c8c54ec8bb88d1fb66b6d
BLAKE2b-256 df9958c3d8c36ae8e2b7d70bf6493eb5daa1cca0231a04b025717b4cd1a78f1e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wandb-0.26.1-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 2fa768ee0636a569afb7541cf996e56309c47070566a38916823f94e02afe586
MD5 248a3e8cb688a573b3fff2a13f553a16
BLAKE2b-256 62cf4a6dce0c782223ef0eeea7139daee73418a7322befcf083512c31cebaa18

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wandb-0.26.1-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a2c8eeec8706dcd2872e69c3b4d20ec523082fdb4440295491556e219ad2aa67
MD5 b5db5236851dc7542afad285857d1c27
BLAKE2b-256 7be9b4bf8f3509dcea1cec52233a38991459654635b5a8e6a494eb912e1b9cfb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wandb-0.26.1-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 7c78bc2454cfe1ffa1c3a256060a387356eed8a4488e024d9d2eba8f2b5bd51d
MD5 f5bc7a885b9d0c882adf3dd89757f3a0
BLAKE2b-256 56af400d84a3bdce0b062b4baa70acb6becd2c8018697f4fbf5af9a9e1e406e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wandb-0.26.1-py3-none-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 55d91cabde98162d7116a5e19ddd052bd9848556243f1da4cbb9ffb7ad435bfc
MD5 cb74cb2d2a7b243e3e48a357d9fd0bee
BLAKE2b-256 a1ade39ca3086534129e42208ba00ed2c6247ce425f890219eeec33b4f162864

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for wandb-0.26.1-py3-none-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 2955fe190c005fb83ee6d73f066c8a33f09f3212a1f2eb53faa6581440e456be
MD5 91e799a8b8c616c53949220ceeb664f7
BLAKE2b-256 8c093296235f3906e904f06f2df29eed4d672fb23c0932c9486e2af64f2f2a66

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