Skip to content

Commit

Permalink
Squelch MLA warning for Compressed-Tensors Models (#12704)
Browse files Browse the repository at this point in the history
Signed-off-by: Kyle Sayers <kylesayrs@gmail.com>
  • Loading branch information
kylesayrs authored Feb 3, 2025
1 parent c11de33 commit 6dd5e52
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions vllm/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,9 @@ def is_cross_encoder(self) -> bool:

@property
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 [\
"fp8", "compressed-tensors"]:
logger.warning(
Expand All @@ -1012,8 +1015,7 @@ def use_mla(self) -> bool:
quant_config)
return False

use_mla = (self.is_deepseek_mla and not envs.VLLM_MLA_DISABLE)
return use_mla
return True

@property
def supported_runner_types(self) -> Set[RunnerType]:
Expand Down

0 comments on commit 6dd5e52

Please sign in to comment.