weights-and-biases

Track ML experiments, hyperparameter sweeps, and model artifacts with Weights & Biases.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Machine learning teams lose track of experiments, hyperparameters, and model versions when training runs are scattered across notebooks and scripts, making results impossible to compare or reproduce. ## Core Features & Use Cases - Experiment Tracking: Log metrics, configs, media, and system stats from PyTorch, TensorFlow, Keras, HuggingFace, and PyTorch Lightning training loops with automatic real-time dashboards. - Hyperparameter Sweeps: Run grid, random, or Bayesian optimization searches with early termination and parallel agents across multiple GPUs. - Artifacts & Model Registry: Version datasets and models with lineage tracking, aliases, and a central registry for staging-to-production promotion. - Use Case: A data scientist fine-tuning a BERT model runs a Bayesian sweep over learning rate and batch size, compares 50 runs in the W&B dashboard, and promotes the best checkpoint to the production model registry. ## Quick Start Set up W&B tracking for my PyTorch training script so I can log loss and accuracy metrics and compare runs in a 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 track PyTorch training experiments with Weights & Biases?

Call wandb.init with your project name and config, then call wandb.log with metrics like loss and accuracy inside your training loop. Finish with wandb.finish, and optionally save checkpoints with wandb.save or log them as artifacts.

How do I run a hyperparameter sweep with wandb?

Define a sweep config with a search method (grid, random, or bayes), a target metric, and parameter distributions, then create it with wandb.sweep. Launch one or more agents with wandb.agent pointing to your training function to execute trials.

Does W&B integrate with HuggingFace Transformers?

Yes, set report_to="wandb" in TrainingArguments and the HuggingFace Trainer automatically logs metrics, evaluation results, and checkpoints to W&B. You can also add custom WandbCallback subclasses for additional logging.

Can I use wandb without an internet connection?

Yes, set the WANDB_MODE environment variable to "offline" before initializing your run. Metrics are stored locally and can be uploaded later using the wandb sync command on the run directory.

What is the difference between wandb.save and W&B Artifacts?

wandb.save uploads files associated with a single run, while Artifacts create versioned, standalone objects with lineage tracking, aliases, and deduplication. Artifacts are the recommended approach for datasets and models that need versioning or registry linking.

Which sweep search method should I use for hyperparameter tuning?

Bayesian optimization is recommended for expensive training runs since it learns from previous trials and is most sample-efficient. Use grid search for few discrete parameters needing full coverage, and random search for quick exploration across many parameters.