Repository navigation
[Perf] cuda-graph: Raise MLA prefill capture default to chunked size capped at 8192 - #45565
Conversation
Revert the changes from d7426a7 so the default prefill capture size follows chunked_prefill_size for MLA as well.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@Fridge003 here is a B300 data point on the MLA prefill-graph cap from this PR. On GPUs with at least 160 GB, I compared the default against
Since that is the only setup I measured, #48214 sets the flag in the B300 FP8 Low Latency recipe only. Two questions about the default:
Not tested: B200, GB200, GB300, NVFP4, the High Throughput cells, other MLA models, prefill CP, PD and HiCache. |
MLA currently defaults prefill CUDA graph capture to 2048 tokens even when chunked prefill is larger. Default MLA capture to
min(8192, cfg.chunked_prefill_size)to expand coverage while limiting capture memory growth.Non-MLA models retain the existing default of
cfg.chunked_prefill_size. In particular, Muse MegaMoE + LayerNorm SP with a 16384-token chunk keeps a 16384-token capture ceiling, satisfying its requirement that captured workspaces cover the largest prefill chunk.For MLA, chunked prefill sizes of 4096 and 16384 default to capture maxima of 4096 and 8192, respectively. This applies when prefill
max_bsis unset; explicit settings and existing downstream caps retain their behavior.Validation:
git diff --check, and all applicable pre-commit hooks passed.CI States
Latest PR Test (Base): 🚫 Run #39735173853
Latest PR Test (Extra): ❌ Run #39735173847
Latest PR Test (AMD ROCm 10): ⏳ Run #39735173846