[Model Runner V2] support mamba hybrid models align prefix cache (#42406)
Signed-off-by: zhuhaoran <zhuhaoran.zhr@alibaba-inc.com>
This commit is contained in:
@@ -1997,13 +1997,6 @@ class VllmConfig:
|
||||
model_config = self.model_config
|
||||
speculative_config = self.speculative_config
|
||||
|
||||
if (
|
||||
model_config is not None
|
||||
and model_config.has_inner_state
|
||||
and self.cache_config.mamba_cache_mode == "align"
|
||||
):
|
||||
unsupported.append("hybrid/mamba models with align cache mode")
|
||||
|
||||
if self.parallel_config.prefill_context_parallel_size > 1:
|
||||
unsupported.append("prefill context parallelism")
|
||||
|
||||
@@ -2152,10 +2145,6 @@ 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":
|
||||
|
||||
Reference in New Issue
Block a user