mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-05-28 01:27:04 +08:00
Squelch MLA warning for Compressed-Tensors Models (#12704)
Signed-off-by: Kyle Sayers <kylesayrs@gmail.com>
This commit is contained in:
parent
c11de33dad
commit
6dd5e52823
@ -986,6 +986,9 @@ class ModelConfig:
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def use_mla(self) -> bool:
|
def use_mla(self) -> bool:
|
||||||
|
if not self.is_deepseek_mla or envs.VLLM_MLA_DISABLE:
|
||||||
|
return False
|
||||||
|
|
||||||
if self.quantization is not None and self.quantization not in [\
|
if self.quantization is not None and self.quantization not in [\
|
||||||
"fp8", "compressed-tensors"]:
|
"fp8", "compressed-tensors"]:
|
||||||
logger.warning(
|
logger.warning(
|
||||||
@ -1012,8 +1015,7 @@ class ModelConfig:
|
|||||||
quant_config)
|
quant_config)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
use_mla = (self.is_deepseek_mla and not envs.VLLM_MLA_DISABLE)
|
return True
|
||||||
return use_mla
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def supported_runner_types(self) -> Set[RunnerType]:
|
def supported_runner_types(self) -> Set[RunnerType]:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user