[Bugfix] Fix mamba cache dtype for Qwen3.5 (#34200)
Signed-off-by: Roger Wang <hey@rogerw.io>
This commit is contained in:
@@ -870,8 +870,9 @@ class Qwen3_5ForConditionalGeneration(Qwen3VLForConditionalGeneration, IsHybrid)
|
|||||||
cls,
|
cls,
|
||||||
vllm_config: "VllmConfig",
|
vllm_config: "VllmConfig",
|
||||||
) -> tuple[torch.dtype, torch.dtype]:
|
) -> tuple[torch.dtype, torch.dtype]:
|
||||||
|
mamba_ssm_dtype = vllm_config.model_config.hf_text_config.mamba_ssm_dtype
|
||||||
return MambaStateDtypeCalculator.gated_delta_net_state_dtype(
|
return MambaStateDtypeCalculator.gated_delta_net_state_dtype(
|
||||||
vllm_config.model_config.dtype, vllm_config.cache_config.mamba_cache_dtype
|
vllm_config.model_config.dtype, mamba_ssm_dtype
|
||||||
)
|
)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|||||||
Reference in New Issue
Block a user