What problem does it solve?
This Skill helps diagnose and resolve SGLang distributed inference runs that freeze, time out, or deadlock when GPU ranks diverge during collective operations.
Core Features & Use Cases
- Hang Localization: Use watchdog traces, py-spy, NCCL logging, and CUDA coredumps to identify the blocked collective and code path.
- Rank State Comparison: Add structured per-rank logging and tensor or token hashes to detect state divergence without unnecessarily disrupting execution.
- Root-Cause Isolation: Diff event streams and binary-search upstream inputs to locate the first divergence, then apply fixes for nondeterminism, conditional paths, resource failures, and pipeline send or receive mismatches.
- Use Case: When a multi-GPU SGLang serving job hangs during decoding, use this Skill to identify the stalled AllGather, compare rank state, trace the earliest mismatch, and verify the fix across repeated runs.
Quick Start
Use the debug-distributed-hang skill to investigate the current SGLang multi-GPU timeout, identify the blocked collective, and guide me through collecting and comparing per-rank evidence.