spark-training-gotchas
Fungsinya
Tool ini membantu menemukan dan memperbaiki masalah umum yang bisa membuat training AI Anda gagal atau melambat di sistem DGX Spark. Tool ini memeriksa sepuluh jenis kegagalan yang sudah dikenal.
Kapan dipakai
- βTraining gagal dimulai dengan error yang aneh.
- βTraining kehabisan memori dan crash, padahal sepertinya masih ada ruang.
- βTraining berjalan cepat di awal tetapi kemudian melambat.
Link skill
https://github.com/wshobson/agents/blob/main/plugins/dgx-spark-ops/skills/spark-training-gotchas/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βTraining saya di DGX Spark sering crash, apa kemungkinan penyebabnya?β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Tool ini menganalisis sistem Anda dan memeriksa apakah ada salah satu dari sepuluh masalah yang sudah dikenal. Tool ini memberi tahu apa masalahnya dan bagaimana cara mencoba memperbaikinya.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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,
β¦
Pertanyaan umum
Apa itu DGX Spark?
Ini adalah jenis komputer bertenaga besar yang dirancang untuk melatih model kecerdasan buatan dengan cepat.
Apa itu 'failure modes'?
Ini adalah cara-cara sesuatu bisa salah atau gagal.
Apakah saya perlu bisa coding untuk menggunakan ini?
Tidak perlu. Tool ini dirancang agar bisa dipakai meskipun Anda tidak memiliki pengetahuan pemrograman. Tool ini memandu Anda dengan instruksi.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 41k
- Peringkat
- #6687
- Lisensi
- MIT
- Diperbarui
- 15/10/2026
Komentar
- β¦
Skill lain dari repositori ini
screen-reader-testing
41kMeminta agent Anda menguji website menggunakan screen reader untuk memastikan website dapat diakses.
wcag-audit-patterns
41kMembantu agent Anda mengaudit aksesibilitas website dan memperbaiki masalah sesuai panduan WCAG.
multi-reviewer-patterns
41kMemungkinkan agent Anda mengoordinasikan code review paralel, menghapus temuan ganda, dan menggabungkan laporan.
parallel-debugging
41kMemungkinkan agent Anda men-debug masalah rumit dengan investigasi paralel dan analisis akar masalah.
Skill serupa
openclaw-update
394kMembantu agent Anda memperbarui OpenClaw Gateway yang sudah ada, dengan memilih metode pembaruan yang sesuai cara pemasangannya dan menjaga sesi Anda tetap berjalan.
diagnose-gateway
394kMembantu agent Anda mencari tahu mengapa OpenClaw Gateway gagal dengan memeriksa pengaturan, channel, dan port tanpa mengubah apa pun.
crabbox-apps
394kMembantu agent Anda membuka dan menjalankan aplikasi di mesin cloud sementara, lalu menampilkan tampilannya di panel samping chat Anda.