Introduction to Weights & Biases
Discover the ML developer platform used by OpenAI, NVIDIA, and thousands of teams for experiment tracking, model optimization, and collaboration.
What is Weights & Biases?
Weights & Biases (W&B) is a machine learning platform that helps ML practitioners track experiments, visualize results, optimize hyperparameters, and share findings. Founded in 2017, it has become one of the most popular tools in the ML ecosystem.
W&B is a SaaS platform with a generous free tier for individuals and academic teams. Enterprise customers can deploy it on-premises or in a private cloud.
Core Products
Experiments
Track metrics, parameters, code, system metrics, and media (images, audio, video) with just a few lines of code.
Sweeps
Automated hyperparameter optimization with Bayesian, grid, and random search. Distributed across multiple machines.
Artifacts
Version and track datasets, models, and other files. Build lineage graphs to understand data flow.
Reports
Create interactive documents combining live charts, markdown, and code. Share findings with your team.
W&B vs Alternatives
| Feature | W&B | MLflow | Neptune | ClearML |
|---|---|---|---|---|
| Hosting | SaaS + Enterprise | Self-hosted (free) | SaaS + Enterprise | SaaS + Self-hosted |
| Tracking | Excellent | Excellent | Excellent | Good |
| Visualization | Best-in-class | Good | Good | Good |
| Sweeps | Built-in (Bayesian) | Via integrations | Via integrations | Built-in |
| Collaboration | Excellent (Reports) | Limited | Good | Good |
| Free tier | Generous (unlimited runs) | Fully free | Limited | Generous |
| Model Serving | Via Registry | Built-in | No | Built-in |
How It Works
The W&B workflow is simple:
Add a few lines of code
Import wandb, initialize a run, and log metrics. That's it — 3 lines to get started.
View results in the dashboard
Real-time charts update as your training progresses. Compare runs side-by-side.
Optimize with Sweeps
Define a search space and let W&B find the best hyperparameters automatically.
Share via Reports
Create interactive reports with live visualizations and share with your team.
import wandb
wandb.init(project="my-first-project")
wandb.config.learning_rate = 0.001
for epoch in range(100):
loss = train_one_epoch()
wandb.log({"loss": loss, "epoch": epoch})
wandb.finish()
wandb.ai). No credit card required for the free tier.
Lilly Tech Systems