[CPU] Enable chunked prefill and prefix caching for qwen3.5 (#46202)

Signed-off-by: Li, Tianmu <tianmu.li@intel.com>
Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Li, Jiang <jiang1.li@intel.com>
This commit is contained in:
Tianmu Li
2026-06-25 03:49:21 +00:00
committed by GitHub
co-authored by Claude Sonnet 4.6 Li, Jiang <jiang1.li@intel.com>
parent dc55936f64
commit 1aad125815
7 changed files with 388 additions and 32 deletions
-14
View File
@@ -157,20 +157,6 @@ class CpuPlatform(Platform):
logger.warning_once("Dual-Batch Overlap is not supported on CPU, disabled.")
parallel_config.enable_dbo = False
if torch.cpu._is_amx_tile_supported() and (
model_config is not None
and model_config.get_num_layers_by_block_type(
parallel_config, "linear_attention"
)
> 0
):
cache_config.enable_prefix_caching = False
scheduler_config.enable_chunked_prefill = False
logger.warning_once(
"Disabled unsupported prefix caching and chunked prefill "
"for linear attention on AMX CPU platforms."
)
# Note: workaround for v1 gpu_model_runner
from vllm.config import CompilationMode