Agent skill

spark-training-gotchas

Preflight and diagnose the ten known failure modes for ML training on NVIDIA DGX Spark. Use when a training run on DGX Spark fails to start, OOMs below the 128GB limit, slows down mid-run, or before any multi-hour training job on GB10.

Seth Hobson38,331★ · +219/wk · 1 repos on radarProfile →
claude-codecodexcopilotcursorships scriptsMIT
Install
npx skills add wshobson/agents --skill spark-training-gotchas --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 3
SKILL.md size: 8 KB
Bundled scripts: yes
Path: plugins/dgx-spark-ops/skills/spark-training-gotchas/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 38,479 · +148 this week
Language: Python
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Spark Training Gotchas DGX Spark's GB10 chip (Grace Blackwell, SM121, 128GB unified memory, aarch64) has ten recurring failure modes across launch, memory, thermals, bandwidth, and precision. Each is named G1–G10 so it can be checked by number — the numbering is load-bearing for tooling that runs these checks. Read this before a long run, not after hour six. ## When to Use This Skill - A training run fails to start, with an import error or a segfault that doesn't point at the real cause. - A run OOMs while `nvidia-smi` still shows headroom. - Throughput degrades partway through a run that started fine. - Before any multi-hour or multi-epoch job on GB10. - Wiring two Sparks together, before picking a parallelism strategy. - Choosing between FP8 and NVFP4 for a Spark-hosted run. ## Common Issues Quick Reference | # | Symptom | Fix | |---|---|---| | G1 | undefined symbol / segfault | cu130 wheel or container | | G2 | flash-attn wrong backend used | skip pip build; monkeypatch on NGC | | G3 | OOM despite headroom | drop page cache | | G4 | throughput drop / reboot | expect ~100W sustained cap | | G5 | memory-bound step slow | budget 180–192 GB/s | | G6 | cache evicted mid-run | one G

What's inside
Steps it walks through
  1. When to Use This Skill
  2. Common Issues Quick Reference
  3. The Ten Gotchas
  4. G1: CUDA 12/13 ABI Mismatch
  5. G2: flash-attn — Skip the pip Build, Watch Unsloth's Auto-Detect
  6. G3: UMA OOM Below 128GB
  7. G4: Thermal Throttling
  8. G5: Bandwidth Ceiling
  9. G6: Global UMA Resource Contention
  10. G7: NVFP4 Slower Than FP8 on SM121
  11. G8: Stale Official Playbooks
  12. G9: Container-First, Not Bare Pip
  13. G10: Dual-Spark Is DDP/FSDP Only
  14. Fast Triage
Ships with 2 files
  • assets/preflight.sh
  • references/gotcha-checks.md
Commands it runs
python3 -c "import torch; print(torch.version.cuda)"  # expect 13.x (G1); NGC builds have no +cu130 tag — that's not a failure
More from agents
All skills →
About this skill
What does the spark-training-gotchas skill do?

Preflight and diagnose the ten known failure modes for ML training on NVIDIA DGX Spark. Use when a training run on DGX Spark fails to start, OOMs below the 128GB limit, slows down mid-run, or before any multi-hour training job on GB10.

How do I install it?

Run `npx skills add wshobson/agents --skill spark-training-gotchas --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From wshobson/agents, a repository with 38,479 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going