Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions vllm_metal/platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,15 @@ def check_and_update_config(cls, vllm_config: "VllmConfig") -> None:
scheduler_config.enable_chunked_prefill = False
logger.info("Metal: disabled chunked prefill")

if config.use_paged_attention and getattr(
cache_config, "enable_prefix_caching", False
):
# The unified paged path does not yet safely support vLLM core
# prefix-cache hits for new requests. Disable the feature at the
# platform layer until that path is fully supported.
cache_config.enable_prefix_caching = False
logger.info("Metal: disabled prefix caching")

# Configure cache
if cache_config.block_size is None:
cache_config.block_size = config.block_size
Expand Down
Loading