A CLI and library for interacting with the Weights & Biases API.
Actively maintained. Last release 9 days ago, commits in 26 of the last 26 weeks. A safe choice.
A CLI and library for interacting with the Weights & Biases API.
Actively maintained. Last release 9 days ago, commits in 26 of the last 26 weeks. A safe choice.
pip install wandb
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.
See the W&B Developer Guide and API Reference Guide for a full technical description of the W&B platform.
Install W&B to track, visualize, and manage machine learning experiments of any size.
pip install wandb
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.
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.
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.
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:
See the Hosting documentation in the W&B Developer Guide for more information.
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.
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.
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.
Use instead of wandb: tools that do the same job, closest first.
Compare with swanlab →Compare with trackio →Compare with aim →Compare all 4 →
Python library for streamlined tracking and management of AI training processes.
Commit activity
26/26 weeks with commits
Release cadence
20 releases in 12 months
Issues & PRs handled
37% closed in the past year
Contributor spread
15 authors in last 100 commits
OpenSSF Scorecard
not evaluated
A lightweight, local-first, and free experiment tracking library built on top of Hugging Face Datasets and Spaces.
A super-easy way to record, search and compare AI experiments.
ClearML - Auto-Magical Experiment Manager, Version Control, and MLOps for AI
Engine for ML/Data tracking, visualization, dashboards, and model UI for Polyaxon.
Probe: experiment tracking for ML teams and their coding agents (SDK, CLI, read-only MCP).
Use together with wandb: extensions, drivers, servers and companion tools.