agentleFS
rakaarwakyrakaarwaky/agents-arwaky/skills/mlops/weights-and-biases/SKILL.md

weights-and-biases

Skill0 starsChanged 56 days agoMITView on GitHub

W&B: log ML experiments, sweeps, model registry, dashboards.

  • Reads credentials
  • Installs packages

5 other projects use a version of this, 5 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. 1 is common, 0 are distinctive, and 2 are very specific to this project.

  • 1

    Common

    Most of the 5 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Common:

    Use Weights & Biases (W&B) when you need to:

    line 23
  2. Very specific:

    Use descriptive run names (bert-base-lr0.001-bs32), never run1.

    line 81
  3. Very specific:

    Use WANDB_MODE=offline on unstable connections, wandb sync later.

    line 83

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Weights & Biases: ML Experiment Tracking & MLOps

When to Use This Skill

Use Weights & Biases (W&B) when you need to:

  • Track ML experiments with automatic metric logging
  • Visualize training in real-time dashboards
  • Compare runs across hyperparameters and configurations
  • Optimize hyperparameters with automated sweeps
  • Manage model registry with versioning and lineage
  • Collaborate on ML projects with team workspaces
  • Track artifacts (datasets, models, code) with lineage

Users: 200,000+ ML practitioners | GitHub Stars: 10.5k+ | Integrations: 100+

Installation

# Install W&B
pip install wandb

# Login (creates API key)
wandb login

# Or set API key programmatically
export WANDB_API_KEY=your_api_key_here

```text

## Minimal Quick Start

```python
import wandb

run = wandb.init(project="my-project", config={"lr": 0.001, "epochs": 10})
for epoch in range(10):
    wandb.log({"epoch": epoch, "train/loss": train_loss, "val/loss": val_loss})
wandb.finish()

```text

Full PyTorch loop, config tracking, and metric patterns:
[references/tracking-basics.md](references/tracking-basics.md)

## Workflow Checklist

1. **Track a run** — `wandb.init` + `wandb.log` + `wandb.finish`.
   Details: [references/tracking-basics.md](references/tracking-basics.md#quick-start--core-concepts)
2. **Tune hyperparameters** — define `sweep_config`, run `wandb.sweep` + `wandb.agent`.
   Details: [references/sweeps.md](references/sweeps.md)
3. **Version data/models** — `wandb.Artifact`, `log_artifact`, model registry aliases.
   Details: [references/artifacts.md](references/artifacts.md)
4. **Integrate a framework** — HuggingFace `report_to="wandb"`, Lightning `WandbLogger`, Keras callbacks.
   Details: [references/integrations.md](references/integrations.md)
5. **Visualize + harden** — custom charts, tags/groups, offline mode.
   Details: [references/tracking-basics.md](references/tracking-basics.md#visualization--best-practices)

## Best Practices (summary)

1. Organize runs with tags, groups, and `job_type`.
2. Log system metrics, code version, and data splits — not just loss.
3. Use descriptive run names (`bert-base-lr0.001-bs32`), never `run1`.
4. Save final models and prediction tables as artifacts.
5. Use `WANDB_MODE=offline` on unstable connections, `wandb sync` later.

## Team & Pricing

- Share runs via URL; use team projects for shared artifacts/registry.
- **Free**: public projects, 100GB · **Academic**: free · **Teams**: $50/seat/mo · **Enterprise**: custom.

## Resources

- **Documentation**: https://docs.wandb.ai
- **GitHub**: https://github.com/wandb/wandb (10.5k+ stars)
- **Examples**: https://github.com/wandb/examples
- **Community**: https://wandb.ai/community
- **Discord**: https://wandb.me/discord

## References

| File | Read it when |
|------|--------------|
| `references/tracking-basics.md` | Quick-start loops, config/metric patterns, charts, best practices |
| `references/sweeps.md` | Comprehensive hyperparameter optimization guide |
| `references/artifacts.md` | Data and model versioning patterns |
| `references/integrations.md` | Framework-specific examples |

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.