Ultralytics YOLO27: Join the waitlist.
License YOLO
Back to Ultralytics Glossary

Weights & Biases

Weights & Biases (W&B) is an ML platform for tracking experiments, running hyperparameter sweeps, and versioning models and data. Features and YOLO setup.

Weights & Biases (W&B, or wandb after its Python package) is a developer platform for machine learning operations (MLOps) that records, visualizes, and compares model training runs. A few lines in a PyTorch or other training script send each run's configuration, such as the learning rate and batch size, along with its metrics, GPU statistics, and output files to a hosted dashboard, where teams compare experiments, reproduce results, and trace which data and settings produced a model. Beyond experiment tracking, W&B covers hyperparameter tuning, dataset and model versioning, a model registry, and, through its Weave product, tracing and evaluation of large language model (LLM) applications. The GPU cloud provider CoreWeave completed its acquisition of Weights & Biases in May 2025, and the W&B documentation now lives on the CoreWeave docs site.

Core Features#

  • Experiments: wandb.init() starts a run and stores its configuration, and wandb.log() records metrics, images, and tables at each step. The SDK also samples system metrics such as GPU utilization and memory, which exposes data-loading bottlenecks.
  • Sweeps: Automated hyperparameter searches using grid, random, or Bayesian methods, with agents that run trials in parallel on many machines and optional early termination of weak runs.
  • Artifacts: Versioned datasets, model checkpoints, and other files, with lineage graphs that show which run consumed or produced each version.
  • Registry: A curated catalog of approved model and dataset versions that teams promote toward deployment.
  • Reports: Shareable documents that combine live charts from runs with written analysis.
  • Weave: Tracing, evaluation, and cost tracking for LLM and agent applications.

A sweep separates the search from the training: a controller holds the search state and proposes configurations, and any number of agents pull those configurations, train, and report the target metric back.

Using W&B With Ultralytics YOLO#

Ultralytics YOLO ships a built-in W&B integration that is off by default. Once it is enabled in the Ultralytics settings, every training run logs its full argument list, per-epoch losses and learning rates, validation metrics such as precision, recall, and mean average precision (mAP), and the plots it saves, and at the end it uploads best.pt as a model artifact along with interactive precision-recall and confidence curves. Those best.pt artifacts can later be imported into Ultralytics Platform for prediction, export, or deployment.

import os

from ultralytics import YOLO, settings

# Log locally without an API key; upload later with "wandb sync", or run "wandb login" and drop this line
os.environ["WANDB_MODE"] = "offline"

# Turn on the built-in W&B callback (requires "pip install wandb"; saved to the Ultralytics settings file)
settings.update({"wandb": True})

# project and name become the W&B project and run names
model = YOLO("yolo26n.pt")
model.train(data="coco8.yaml", epochs=5, project="yolo26-experiments", name="baseline")

Training runs that share a project and differ in name appear side by side in one W&B project, so runs with different model sizes, image sizes, or augmentation settings can be compared on one dashboard.

  • Model weights and biases: The platform's name refers to the learnable parameters of a neural network. Weights scale the inputs to each neuron, biases shift its output before the activation function, and backpropagation updates both. The platform can log their distributions and gradients during training.
  • MLflow: An open-source platform for tracking, packaging, and registering models that teams often self-host. W&B is primarily a managed service with self-hosted options for enterprises.
  • TensorBoard: A local visualization tool for training logs from PyTorch and TensorFlow, without W&B's hosted collaboration, sweeps, or registry.

Explore solutions

Computer vision in sports

Computer vision in sports

Discover how Ultralytics YOLO powers sports vision with player and ball tracking, performance analytics, coaching insights, and athlete rehabilitation.
Learn more
Computer vision for aerial imagery

Computer vision for aerial imagery

Turn drone and aerial imagery into real-time insights for agriculture, aquaculture, conservation, and geospatial analysis with Ultralytics YOLO.
Learn more
Computer vision in aerospace

Computer vision in aerospace

Apply computer vision in aerospace with Ultralytics YOLO for aircraft inspection, runway FOD detection, airport ground operations, and composite defect detection.
Learn more
Computer vision in security

Computer vision in security

Protect every site with Ultralytics YOLO models. Vision AI powers perimeter monitoring, threat detection, license-plate recognition, and workplace safety.
Learn more
Computer vision in robotics

Computer vision in robotics

Power smarter machines with Ultralytics YOLO models. Vision AI in robotics drives autonomous navigation, perception, object tracking, and real-time control.
Learn more
Computer vision in logistics

Computer vision in logistics

Streamline logistics with Ultralytics YOLO models. Vision AI enables package inspection, sorting, vehicle tracking, and real-time warehouse safety monitoring.
Learn more
Computer vision in retail

Computer vision in retail

Reimagine retail with Ultralytics YOLO models. Vision AI powers inventory tracking, shelf monitoring, queue management, and smarter customer insights.
Learn more
Computer vision in healthcare

Computer vision in healthcare

Build healthcare solutions with Ultralytics YOLO models. Vision AI in healthcare powers faster medical imaging, smarter diagnostics, and patient monitoring.
Learn more
Computer vision in manufacturing

Computer vision in manufacturing

Optimize manufacturing with Ultralytics YOLO models. Vision AI drives quality control, defect detection, PPE compliance, and assembly line automation.
Learn more
Computer vision in automotive

Computer vision in automotive

Apply computer vision in automotive with Ultralytics YOLO models. Vision AI elevates road safety, driver assistance, and vehicle automation for smarter roads.
Learn more
Computer vision in agriculture

Computer vision in agriculture

Bring vision AI to smart agriculture with Ultralytics YOLO models. Power crop monitoring, livestock tracking, and precision farming for higher, smarter yields.
Learn more

Let's build the future of AI together!

Begin your journey with the future of machine learning