fix: disable custom all-reduce during CUDA-graph profiling (128K IPC leak)
Merged
SU
4mo ago+56+56+01234567890123456789-0-0-0123456789
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_runnerduringprofile_cudagraph_memory, restored infinally - Debug log while profiling; clean re-enable after profiling
Verification / benchmark (dual RTX 2080Ti, TP2, maxlen 131072)
| scenario | before | after |
|---|---|---|
| CUDA-graph profiling @128K context | IPC handle leak crash (upstream #46515) | completes normally, memory released |
| normal serving (custom AR active) | ok | unaffected (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:
| PR | concern | dependency |
|---|---|---|
| #106 | int8 per-tensor KV cache | foundation |
| #107 | GDN GGUF/AWQ dual-layout | REQUIRED to serve GDN models |
| #108 | disable custom AR during profiling | independent |
| #109 | Triton decode fast path | depends 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).