fix: disable custom all-reduce during CUDA-graph profiling (128K IPC leak)

Merged
SU
4mo ago
+56-0

Summary

CUDA-graph profiling with 128K context + custom all-reduce crashes with IPC handle leak (upstream #46515). This PR disables custom AR during profiling:

  • Module-level disable flag checked by cuda_communicator.all_reduce
  • Set independently in gpu_model_runner during profile_cudagraph_memory, restored in finally
  • Debug log while profiling; clean re-enable after profiling

Verification / benchmark (dual RTX 2080Ti, TP2, maxlen 131072)

scenariobeforeafter
CUDA-graph profiling @128K contextIPC handle leak crash (upstream #46515)completes normally, memory released
normal serving (custom AR active)okunaffected (throughput unchanged)
  • 128K profiling completes without crash on real hardware; custom all-reduce re-enabled after profiling
  • No throughput impact outside profiling (custom AR path untouched in serving)

⚠️ Applying this PR alone (important)

This PR is one of a 4-PR series (one concern per PR, per the maintainer's review guidance). The four together form the complete feature set the SM75 serving stack depends on:

PRconcerndependency
#106int8 per-tensor KV cachefoundation
#107GDN GGUF/AWQ dual-layoutREQUIRED to serve GDN models
#108disable custom AR during profilingindependent
#109Triton decode fast pathdepends on #106

Applying only a subset leaves the tree incomplete and unsafe for the production serve environment:

  • Without #107, serving a GDN (Qwen3.5-style) model fails at engine init ( / worker exception during CUDA-graph capture). On the reference hardware this produced a systemd loop; the repeated load window escalated into a GPU Xid 154 (recovery action 0x2, Node Reboot Required). The incomplete tree is NOT a safe state.
  • Without #106, #109 has no int8 KV infrastructure to accelerate.
  • Merge order: #106 → #107 → #108 → #109 (or merge all four together).