๐ Weights & Biases (W&B) Flashcards
Experiment Tracking and Model Management for ML Teams
๐ What is W&B?
Weights & Biases is a tool for tracking experiments, visualizing metrics, managing models, and collaborating on ML workflows.
โ๏ธ Setup
Install via pip install wandb
and use wandb.init()
to begin logging an experiment.
๐ Metrics Logging
Use wandb.log()
to track training/validation metrics in real time across epochs and batches.
๐ Hyperparameter Tracking
Automatically track and compare hyperparameters used in different runs for optimization and reproducibility.
๐ Project & Run Organization
Organize experiments by project and run with a web dashboard that supports filtering, comparisons, and notes.
๐ฏ W&B Sweeps
Automate hyperparameter optimization using W&B Sweeps with Bayesian search, grid, or random strategies.
๐ง Model Management
Use W&B Artifacts to version and manage datasets, models, and evaluation results collaboratively.
๐งช Dataset Versioning
Track and version datasets like Git for data using Artifacts, with full lineage and metadata.
๐บ Visualization Dashboards
Interactive plots, custom charts, and parallel coordinates for hyperparameter sweep analysis.
๐ Team Collaboration
Share live reports, dashboards, and analysis with team members and stakeholders across projects.
โก Auto-Logging
Out-of-the-box support for popular ML libraries like Keras, PyTorch Lightning, Sklearn, Hugging Face, XGBoost, and more.
๐ ๏ธ Integration Ecosystem
Seamlessly integrates with Colab, Jupyter, GitHub, S3, GCP, AWS, and other parts of the ML stack.