[Qwen4Exp] Restore torch.compile on the NVIDIA path; exact breakable pin; runtime graph-mode assertion
- torch.compile restored on the NVIDIA Qwen4Exp target and MTP so the production profile (VLLM_COMPILE + FULL_AND_PIECEWISE, breakable off) runs. - The production pin requires VLLM_USE_BREAKABLE_CUDAGRAPH to be exactly "0". - assert_resolved_cudagraph_modes() runs at the top of capture_model. - CPU tests for the combined profile, the exact pin and the resolved modes. Co-Authored-By: Hinata <hinata@idihore.id> Signed-off-by: MOVZX <movzx@yahoo.com>
This commit is contained in:
@@ -767,7 +767,12 @@ class CompilationConfig:
|
||||
"vllm::mamba_mixer2",
|
||||
"vllm::mamba_mixer",
|
||||
"vllm::short_conv",
|
||||
# Qwen4Exp's AMD backend still uses these splitting ops.
|
||||
# Qwen4Exp: the AMD backend and (fork, compile-profile guard) the compile-restored
|
||||
# NVIDIA backend. #55272 dropped the NVIDIA-only ngram-ids split; the
|
||||
# prefetch pair is the UVA PLE side-stream fork/join (#54371).
|
||||
"vllm::qwen4_exp_compute_ple_ngram_ids",
|
||||
"vllm::qwen4_exp_ple_start_prefetch",
|
||||
"vllm::qwen4_exp_ple_finalize_prefetch",
|
||||
"vllm::qwen4_exp_ple_short_conv",
|
||||
"vllm::qwen4_exp_qsa_with_output",
|
||||
"vllm::linear_attention",
|
||||
|
||||
+6
-3
@@ -106,9 +106,12 @@ DEFAULT_BREAKABLE_CUDAGRAPH_ARCHITECTURES = frozenset(
|
||||
"KimiLinearForCausalLM",
|
||||
"MiniMaxM3SparseForCausalLM",
|
||||
"MiniMaxM3SparseForConditionalGeneration",
|
||||
"Qwen4ExpForCausalLM",
|
||||
"Qwen4ExpForConditionalGeneration",
|
||||
"Qwen4ExpMTP",
|
||||
# Fork (compile-profile guard): Qwen4ExpForCausalLM,
|
||||
# Qwen4ExpForConditionalGeneration and Qwen4ExpMTP are deliberately
|
||||
# NOT here. #55272 added them when it removed torch.compile from the
|
||||
# NVIDIA path; this tree restores compile, so the resolved profile for
|
||||
# them is VLLM_COMPILE + FULL_AND_PIECEWISE with breakable capture off
|
||||
# (vllm/v1/e2_guards.py asserts it at model construction).
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user