spark-training-gotchas
Ce qu’il fait
Cet outil vous aide à repérer et corriger les problèmes courants qui peuvent faire échouer ou ralentir votre entraînement d'IA sur le système DGX Spark. Il vérifie dix types de défaillances connus.
Quand l’utiliser
- ✓Votre entraînement ne démarre pas et affiche des erreurs étranges.
- ✓Votre entraînement manque de mémoire et plante, alors qu'il semble rester de la place.
- ✓Votre entraînement démarre rapidement mais ralentit ensuite.
Lien du skill
https://github.com/wshobson/agents/blob/main/plugins/dgx-spark-ops/skills/spark-training-gotchas/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Mon entraînement sur DGX Spark plante, qu'est-ce qui pourrait causer le problème ?”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
L'outil analyse votre système et vérifie si l'un des dix problèmes connus se produit. Il vous indique de quel problème il s'agit et comment essayer de le résoudre.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis GitHub.
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-smistill 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 GPU server at a time |
| G7 | NVFP4 slower than FP8 | stay FP8 unless sm_121a |
| G8 | playbook fails outright | check upstream issues |
| G9 | env breaks after install | use a container |
| G10 | 2-Spark TP hangs | DDP/FSDP only, never TP |
The Ten Gotchas
G1: CUDA 12/13 ABI Mismatch
- SYMPTOM:
ImportError: undefined symbolnaming a CUDA function, or a segfault on the first.cuda()call. - CAUSE: most PyPI wheels link
libcudart.so.12; Spark ships CUDA 13. pip never checks CUDA ABI, so it surfaces only at import or first kernel launch. - CHECK:
references/gotcha-checks.mdG1 — the wheel's CUDA build tag. - FIX: reinstall from
download.pytorch.org/whl/cu130or use a matched container.
G2: flash-attn — Skip the pip Build, Watch Unsloth's Auto-Detect
- SYMPTOM:
pip install flash-attnstill fails/hangs. Unsloth may also silently train flash-attn over an explicitly requested SDPA. - CAUSE: no aarch64/sm_121 wheel for bare pip — but NGC
containers ship a working SM121 flash-attn, and Unsloth
auto-prefers it, dropping
attn_implementation="sdpa". - CHECK:
references/gotcha-checks.mdG2 — is flash-attn already present and working. - FIX: bare pip — skip flash-attn, use SDPA (unchanged). On
NGC — the only reliable override is the monkeypatch in
references/gotcha-checks.mdG2.
G3: UMA OOM Below 128GB
- SYMPTOM: OOM during model load/training while
nvidia-smistill reports free memory under the 128GB cap — or, on some setups,[N/A]outright instead of a number. - CAUSE: mmap and the CUDA allocator double-count pages during safetensors load; QLoRA can OOM earlier than bf16 since dequantization adds transient allocs.
- CHECK:
references/gotcha-checks.mdG3 — readfree -gand/proc/meminfo, notnvidia-smi. - FIX: drop the page cache with
sync; echo 3 > /proc/sys/vm/drop_caches— needs root, a between-run reset, not a mid-training step.
G4: Thermal Throttling
- SYMPTOM: throughput drops partway through a multi-hour run, or the box spontaneously reboots under sustained load.
- CAUSE: sustained power draw caps around 100W versus the 240W rated figure; long runs push into that ceiling and throttle or, sometimes, reboot.
- CHECK:
references/gotcha-checks.mdG4 — samplenvidia-smi --query-gpu=temperature.gpu,power.draw. - FIX: if power plateaus under 240W while temperature climbs, treat throttling as the cause; improve cooling or cap run length.
G5: Bandwidth Ceiling
- SYMPTOM: memory-bound workloads, decode-heavy RL loops especially, plateau well below expected throughput.
- CAUSE: 273 GB/s is a spec ceiling, not sustained; measured bandwidth runs 180–192 GB/s.
- CHECK:
references/gotcha-checks.mdG5 — observed step time vs. the measured range, not spec. - FIX: budget throughput from 180–192 GB/s; revise a plan built on the 273 GB/s figure.
G6: Global UMA Resource Contention
- SYMPTOM: a process's KV cache/weights get evicted mid-run silently, no OOM in its own logs.
- CAUSE: unified memory is one global pool; an uncapped or near-capacity process competes with anything else and can evict it. A small,
…
Questions fréquentes
Qu'est-ce que le DGX Spark ?
C'est un type d'ordinateur puissant conçu pour entraîner rapidement des modèles d'intelligence artificielle.
Que sont les « modes de défaillance » ?
Ce sont les différentes façons dont quelque chose peut mal tourner ou échouer.
Faut-il savoir coder pour utiliser cet outil ?
Non, l'outil est conçu pour être utilisé même sans connaissances en programmation. Il vous guide pas à pas avec des instructions.
Détails
Description originale de l’auteur
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.
repo: wshobson/agents
Popularité
- Étoiles GitHub
- 41k
- Position au classement
- #6687
- Licence
- MIT
- Mis à jour
- 15/10/2026
Commentaires
- …
Autres skills de ce dépôt
screen-reader-testing
41kPermet à votre agent de tester les sites web avec des lecteurs d'écran pour vérifier leur accessibilité.
wcag-audit-patterns
41kAide votre agent à auditer l'accessibilité des sites web et à corriger les problèmes selon les directives WCAG.
multi-reviewer-patterns
41kPermet à votre agent de coordonner des revues de code en parallèle, de dédoublonner les résultats et de consolider les rapports.
parallel-debugging
41kPermet à votre agent de déboguer des problèmes complexes grâce à des investigations en parallèle et à l'analyse des causes racines.
Skills similaires
openclaw-update
394kAide votre agent à mettre à jour une passerelle OpenClaw existante, en choisissant la méthode adaptée à son installation et en gardant votre session active.
diagnose-gateway
394kAide votre agent à trouver pourquoi votre passerelle OpenClaw échoue, en vérifiant les paramètres, les canaux et les ports sans rien modifier.
crabbox-apps
394kAide votre agent à ouvrir et exécuter une application sur une machine cloud temporaire, puis à afficher sa vue dans le panneau latéral de votre chat.