weights-and-biases

Log ML experiments, hyperparameter sweeps, and artifacts to Weights & Biases.

Updated Apr 9, 2026
One-click install
npx skills add https://github.com/MarbleSodas/Mavis --skill weights-and-biases-marblesodas
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: weights-and-biases
Source: https://github.com/MarbleSodas/Mavis/tree/main/skills/mlops/evaluation/weights-and-biases
Command: npx skills add https://github.com/MarbleSodas/Mavis --skill weights-and-biases-marblesodas

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires wandb, and includes references (resource) components.

What problem does it solve?

Weights & Biases (W&B) solves the problem of losing visibility into ML experiments by centralizing metrics, configurations, artifacts, and hyperparameter search results in one place.

Core Features & Use Cases

  • Experiment tracking: Log training/validation metrics with run-level configuration and consistent run IDs for comparison.
  • Hyperparameter sweeps: Define sweep strategies (grid, random, Bayesian) to systematically optimize models based on target metrics.
  • Artifacts and model registry: Version datasets and model checkpoints with lineage, aliases (latest/best/production), and deployment handoffs across teams.
  • Framework integrations: Use W&B with PyTorch, TensorFlow/Keras, HuggingFace Transformers, and PyTorch Lightning to reduce custom logging effort.
  • Collaboration and visualization: Share dashboards and reports for team review, debugging, and performance analysis.

Quick Start

Install and initialize W&B in your training script, then log metrics each epoch and finish the run to view charts and comparisons in the W&B dashboard.

Frequently Asked Questions about weights-and-biases

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I log ML training metrics for experiment tracking?

To log ML training metrics for experiment tracking, initialize a W&B run in your training script and log validation metrics each epoch. This centralizes your results, preventing scattered experiment data across local runs.

Can I use W&B with PyTorch and HuggingFace Transformers?

Yes, W&B integrates with PyTorch, HuggingFace Transformers, TensorFlow/Keras, and PyTorch Lightning. These framework integrations reduce custom logging effort by automatically capturing training loop metrics and configurations.

How do I run hyperparameter sweeps to optimize models?

Run hyperparameter sweeps by defining a search strategy like grid, random, or Bayesian optimization targeting specific metrics. W&B systematically explores configurations to find the best performing model parameters.

What is the best way to version model checkpoints and datasets?

The best way to version model checkpoints and datasets is using W&B Artifacts. This system versions your files with lineage tracking and applies aliases like latest, best, or production for clear deployment handoffs.

Do I need a W&B account to track experiments?

Yes, you need a W&B account and API token to track experiments. You must configure the wandb Python package in your environment to initialize runs, log metrics, and create artifact checkpoints.

How does artifact versioning help with model registry workflows?

Artifact versioning helps with model registry workflows by tracking dataset and checkpoint lineage across runs. It assigns aliases like best or production to manage model versions and streamline team deployment handoffs.