[CPU] Add AMX-only high-performance MLA backend for DeepSeek V2/V3/R1 (#52616)

Signed-off-by: jiang1.li <jiang1.li@intel.com>
This commit is contained in:
Li, Jiang
2026-08-19 10:28:52 +08:00
committed by GitHub
parent f485081e8b
commit e4d61d0d22
20 changed files with 4156 additions and 6 deletions
+2
View File
@@ -172,9 +172,11 @@ def test_mla_post_load_preserves_runtime_weight_addresses(monkeypatch):
layer.kv_b_proj.quant_method = None
layer.is_aiter_triton_fp4_bmm_enabled = False
layer.is_aiter_triton_fp8_bmm_enabled = False
layer.is_amx_bmm_enabled = False
layer.dcp_q_replicate = False
layer.quant_config = None
layer.layer_name = "test"
layer.impl = SimpleNamespace(process_weights_after_loading=lambda act_dtype: None)
monkeypatch.setattr(
mla_attention_module, "set_default_quant_scales", lambda *_, **__: None
@@ -63,6 +63,7 @@ class TestGetMLAPrefillBackend:
with patch("vllm.platforms.current_platform") as mock_platform:
mock_platform.get_device_capability.return_value = None
mock_platform.is_cpu.return_value = False
backend = get_mla_prefill_backend(vllm_config)
assert backend.get_name() == "FLASH_ATTN"