Promote prefix_cache_retention_interval to an argument and change the default to 0 (#52216)
Signed-off-by: Tyler Michael Smith <tlrmchlsmth@gmail.com> Co-authored-by: OpenAI Codex <codex@openai.com>
This commit is contained in:
co-authored by
OpenAI Codex
parent
1d3a8b9e22
commit
017e9f4448
@@ -1148,12 +1148,6 @@ environment_variables: dict[str, Callable[[], Any]] = {
|
||||
if "VLLM_PLUGINS" not in os.environ
|
||||
else os.environ["VLLM_PLUGINS"].split(",")
|
||||
),
|
||||
# Retain local sliding-window KV checkpoints for prefix caching.
|
||||
# Unset (default) preserves the dense local checkpointing behavior. `0`
|
||||
# retains only the latest completed prompt boundary. Positive values retain
|
||||
# checkpoints at the specified interval boundaries (rounded up to the
|
||||
# prefix-cache alignment).
|
||||
# Applies to sliding-window attention for now but not yet Mamba/linear attention.
|
||||
"VLLM_PREFIX_CACHE_RETENTION_INTERVAL": lambda: (
|
||||
int(os.environ["VLLM_PREFIX_CACHE_RETENTION_INTERVAL"])
|
||||
if "VLLM_PREFIX_CACHE_RETENTION_INTERVAL" in os.environ
|
||||
|
||||
Reference in New Issue
Block a user