Add NVFP4 KV 4-over-6 scale search (#45187)
Signed-off-by: weimingc <17592131+meenchen@users.noreply.github.com>
This commit is contained in:
+4
-1
@@ -2428,7 +2428,10 @@ class VllmConfig:
|
||||
def validate_nvfp4_kv_cache_with_mla(self) -> "VllmConfig":
|
||||
if self.model_config is None:
|
||||
return self
|
||||
if self.cache_config.cache_dtype == "nvfp4" and self.model_config.use_mla:
|
||||
if (
|
||||
self.cache_config.cache_dtype.startswith("nvfp4")
|
||||
and self.model_config.use_mla
|
||||
):
|
||||
raise ValueError(
|
||||
"nvfp4 KV cache is not supported with MLA (Multi-head Latent "
|
||||
"Attention) backends. Please use a different --kv-cache-dtype "
|
||||
|
||||
Reference in New Issue
Block a user