[Perf] Parallelize mHC pre-norm JIT warmup - #56683
Merged
WoosukKwon merged 1 commit intoSep 14, 2026
Merged
Conversation
Co-authored-by: Codex <noreply@openai.com> Signed-off-by: Woosuk Kwon <woosuk@inferact.ai>
Collaborator
Author
|
/ci run |
|
✅ Triggered Buildkite CI #88687 for commit |
njhill
approved these changes
Sep 14, 2026
4 tasks
Shreya-gaur
pushed a commit
to Shreya-gaur/vllm_private
that referenced
this pull request
Sep 14, 2026
Signed-off-by: Woosuk Kwon <woosuk@inferact.ai>
ItsRoy69
pushed a commit
to ItsRoy69/vllm
that referenced
this pull request
Sep 15, 2026
Signed-off-by: Woosuk Kwon <woosuk@inferact.ai>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Compile independent mHC pre-norm warmup variants concurrently. Add a
compile_many()hook toVllmJitKernel, retain sequential compilation by default, and use TileLang'spar_compile()for missingMHCPreNormKernelvariants with at most four compiler workers per process. Cached variants are retained and duplicate keys are removed. TileLang elaborates the modules serially before compiling them in parallel.The existing open PRs #51802 and #49707 address mHC warmup coverage. This change preserves the existing registered keys and runtime dispatch, and changes how those keys are compiled. Searches for parallel JIT compilation and
par_compilefound no open PR implementing the same change. This PR is independent of the dummy-initialization change in #56682.Test Plan
Also exercised the existing
test_deepseek_v41_mhc_pre_delayedreference and CUDA graph replay assertions after batch warmup, for broadcast, identity, and carried pre-mix (33 tokens, fused normalization, DeepGEMM enabled, 20 Sinkhorn iterations).Test Result
60 existing warmup tests passed in 18.86 seconds. All three GPU reference/CUDA graph replay cases passed on GB200 after batch warmup. Applicable pre-commit hooks and
git diff --checkpassed. No test additions are included.On GB200, nine cold-cache DSV4.1 pre-norm variants (hidden size 5120, hc_mult 4, three input/pre-mix configurations and split counts 1/4/16) compiled in:
This is a 2.19x speedup for the isolated compilation stage. These are single-run measurements excluding imports/key enumeration, with separate empty TileLang caches; host-side engine initialization was concurrent, so they are exploratory measurements rather than a controlled end-to-end startup comparison. Generated CUDA source sets matched between the two runs.
A later TP4 real-weight DSV4.1 startup and greedy completion succeeded with this change. Its registry mHC phase had five variants already compiled by profiling and compiled the remaining four in parallel in approximately 14 seconds. No model-quality benchmark was run; this changes compilation scheduling, not kernel math. Full-engine startup speedup is not claimed.
AI assistance was used for diagnosis, implementation, and validation.