Loading...
Loading...
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.
npx skill4agent add wshobson/agents spark-training-gotchasnvidia-smi| # | 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 |
| 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 |
ImportError: undefined symbol.cuda()libcudart.so.12references/gotcha-checks.mddownload.pytorch.org/whl/cu130pip install flash-attnattn_implementation="sdpa"references/gotcha-checks.mdreferences/gotcha-checks.mdnvidia-smi[N/A]references/gotcha-checks.mdfree -g/proc/meminfonvidia-smisync; echo 3 > /proc/sys/vm/drop_cachesreferences/gotcha-checks.mdnvidia-smi --query-gpu=temperature.gpu,power.drawreferences/gotcha-checks.mdgpu-memory-utilization<=0.5references/gotcha-checks.mdcvt.e2m1x2sm_121areferences/gotcha-checks.md(12, 1)sm_121asm_121areferences/gotcha-checks.mdgithub.com/NVIDIA/dgx-spark-playbookspip installreferences/gotcha-checks.mdspark-environment-setup--no-depsreferences/gotcha-checks.mdpython3 -c "import torch; print(torch.version.cuda)" # expect 13.x (G1); NGC builds have no +cu130 tag — that's not a failureimport torch; print(torch.cuda.get_device_capability()) # expect (12, 1) (G7){ [ -f /.dockerenv -o -f /run/.containerenv ] || grep -qE 'docker|containerd' /proc/1/cgroup; } 2>/dev/null && echo container || echo unknown # G9assets/preflight.shINFO:references/gotcha-checks.mdspark-environment-setup