[V1] Allow sliding window + prefix caching (#13069)

Signed-off-by: Woosuk Kwon <woosuk.kwon@berkeley.edu>
This commit is contained in:
Woosuk Kwon 2025-03-12 11:21:19 -07:00 committed by GitHub
parent f5d3acd474
commit 53be4a8634
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1146,7 +1146,7 @@ class CacheConfig:
if not self.enable_prefix_caching:
return
if self.sliding_window is not None:
if self.sliding_window is not None and not envs.VLLM_USE_V1:
raise NotImplementedError(
"Prefix caching is not supported with sliding window. "
"Run with --disable-sliding-window to use prefix caching.")