[Model Runner V2] support qwen35 / mamba hybrid model (#35520)

Signed-off-by: zhuhaoran <zhuhaoran.zhr@alibaba-inc.com>
This commit is contained in:
zhrrr
2026-05-07 09:31:05 -07:00
committed by GitHub
parent 06a60d3dd0
commit 7a08b34fbf
14 changed files with 439 additions and 106 deletions
+1 -1
View File
@@ -142,7 +142,7 @@ class KernelConfig:
"""Backend for MoE expert computation kernels. Available options:
- "auto": Automatically select the best backend based on model and hardware
- "triton": Use Triton-based fused MoE kernels
- "triton": Use Triton-based fused MoE kernels
- "deep_gemm": Use DeepGEMM kernels (FP8 block-quantized only)
- "deep_gemm_mega_moe": Use DeepGEMM mega MoE kernels
- "cutlass": Use vLLM CUTLASS kernels
+4
View File
@@ -1892,6 +1892,10 @@ class VllmConfig:
"to schedule a multiple of block_size tokens even if they are "
"in the middle of a mm input"
)
# TODO: support align mamba cache mode for model runner v2
assert not envs.VLLM_USE_V2_MODEL_RUNNER, (
"Model Runner V2 has not yet supported mamba_cache_mode='align'. "
)
@model_validator(mode="after")
def validate_nvfp4_kv_cache_with_mla(self) -> "VllmConfig":