# Weights & Biases (W&B)

> Canonical: https://skillalmanac.com/glossary/weights-and-biases | Last verified: 2026-11-24 | Index status: not offered to search engines

Weights & Biases (W&B) is a platform and Python library for tracking machine-learning experiments: it records training runs, settings and metrics, and shows them in a web app. It also offers Weave for LLM applications.

Also called: wandb, weights and biases, weights biases, W&B, w and b, wandb ai.

## In plain language

When people train an AI model they try many versions, each with different settings, and they need a record of which one did best. Weights & Biases is a service that keeps that record. A few lines of code send the numbers from each training run, such as how the error changed over time, to a web page where charts let you compare runs side by side. It is like a lab notebook that fills itself in. It records what your code reports, so it cannot tell you why a model behaves as it does. Your run data is sent to the service unless you host it yourself, so check where it is stored and who can see it.

## Technical definition

The wandb Python library starts a run with wandb.init, taking a project name and a config dictionary of hyperparameters, and records metrics with run.log. The README says results are visualised in the W&B web app and that the platform is available as a multi-tenant cloud, a dedicated cloud or self-managed. The documentation lists experiment tracking, hyperparameter sweeps, artifacts, reports and automations, with W&B Weave for evaluating LLM and agent applications. The documentation is hosted on CoreWeave's docs site, where Forge is described as combining W&B experiment tracking with agent evaluation. MLflow Tracking is a separate API and UI for logging parameters, metrics and files.

## How it shows up when you use agents

In agent work, W&B appears in two places. In training or fine-tuning code, an agent may add `wandb.init` and `run.log` calls so the loss and accuracy of each run land in the web app. In LLM applications, W&B Weave is described in the documentation as a way to evaluate LLM and agent applications. Both belong to the practice of [MLOps](/glossary/mlops) and, for language-model apps, [LLMOps](/glossary/llmops). Compare [observability](/glossary/observability).

What breaks when it is misunderstood: a coding agent that adds tracking code may also need an API key, and the run data goes to a hosted service unless the team self-manages it. Do not paste a key into a prompt or commit it. Ask where run data is stored and who can see the project before enabling it. Another failure is logging many metrics but never deciding which one counts, so runs pile up with no way to pick a winner. Decide the metric and the comparison first, then log it. The catalogue has no W&B skill. [llm-eval-test-sets](/skills/skill-almanac/llm-eval-test-sets) covers the dataset side of evaluation, and [agent-session-cost-review](/skills/skill-almanac/agent-session-cost-review) reviews a finished agent session locally.

## Common confusions

- **W&B versus MLflow.** Both track runs, parameters and metrics. They are separate products from separate publishers, and this page does not rank them.
- **Models versus Weave.** The wandb library tracks training runs. The documentation presents Weave alongside it for LLM and agent evaluation.
- **Tracking versus training.** W&B records what your code reports. It does not train or improve the model.
- **Myth.** W&B needs a cloud account. The README says it can also be self-managed on your own infrastructure.

## Worked examples in this catalogue

### [llm-eval-test-sets](https://skillalmanac.com/skills/skill-almanac/llm-eval-test-sets)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: An eval dataset for an LLM feature, built and validated with a checker for duplicates, missing graders, imbalance and leakage.

Why it exercises the concept: Tracking tools record results of evaluations. This skill builds the test set those results depend on. It does not call W&B, so the link is adjacent.

### [agent-session-cost-review](https://skillalmanac.com/skills/skill-almanac/agent-session-cost-review)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A report of where a coding-agent session spent its tokens, produced by parsing the saved session transcript.

Why it exercises the concept: It is a small, local version of the same habit: measure a run after it happens. W&B Weave covers LLM application tracing in a hosted product, which this skill does not.

### [How to Build an AI Agent: A Minimal Tool Loop](https://skillalmanac.com/learn/build-an-ai-agent)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: The guide builds a minimal agent in Python with a tool loop, checks that it works and shows where it breaks.

Why it exercises the concept: Once an agent loop exists, you need records of what each run did to find breaks. That is the need tools such as W&B Weave address.

## Related terms

- [MLOps](https://skillalmanac.com/glossary/mlops.md)
- [LLMOps](https://skillalmanac.com/glossary/llmops.md)
- [AI observability (LLM observability)](https://skillalmanac.com/glossary/observability.md)
- [Machine learning (ML)](https://skillalmanac.com/glossary/machine-learning.md)
- [Hyperparameter](https://skillalmanac.com/glossary/hyperparameter.md)
- [LLM-as-a-judge](https://skillalmanac.com/glossary/llm-as-a-judge.md)

## Sources

- [wandb/wandb: The AI developer platform](https://github.com/wandb/wandb), Weights & Biases (GitHub) (accessed 2026-11-24)
- [CoreWeave Forge: Weights & Biases](https://docs.coreweave.com/forge-home), CoreWeave (accessed 2026-11-24)
- [MLflow Tracking](https://mlflow.org/docs/latest/ml/tracking/), MLflow project (accessed 2026-11-24)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-24. [Glossary index](https://skillalmanac.com/glossary.md).
