Repository navigation
Promote prefix_cache_retention_interval to an argument and change the default to 0 - #52216
Merged
Merged
Conversation
Signed-off-by: Tyler Michael Smith <tlrmchlsmth@gmail.com>
Signed-off-by: Tyler Michael Smith <tlrmchlsmth@gmail.com>
Co-authored-by: OpenAI Codex <codex@openai.com> Signed-off-by: Tyler Michael Smith <tlrmchlsmth@gmail.com>
tlrmchlsmth
requested review from
ApostaC,
NickLucche,
WoosukKwon,
alexm-redhat,
heheda12345,
hmellor,
ivanium,
njhill,
orozery,
robertgshaw2-redhat,
xuechendi and
ywang96
as code owners
August 13, 2026 20:57
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.
Tip: disable this comment in your organization's Code Review settings.
ivanium
approved these changes
Aug 13, 2026
ivanium
left a comment
Contributor
There was a problem hiding this comment.
Briefly skimmed through and LGTM
Member
Author
|
/ci run |
|
β
Triggered Buildkite CI #83809 for commit |
1 task done
1 task done
hmellor
approved these changes
Aug 14, 2026
Member
|
/ci retry |
|
β Queued 5 failed job(s) for retry in Buildkite CI #83809. |
Co-authored-by: OpenAI Codex <codex@openai.com> Signed-off-by: Tyler Michael Smith <tlrmchlsmth@gmail.com>
Member
Author
|
/ci run |
|
β
Triggered Buildkite CI #83959 for commit |
6 tasks done
zufangzhu
pushed a commit
to zufangzhu/vllm
that referenced
this pull request
Aug 24, 2026
β¦he default to 0 (vllm-project#52216) Signed-off-by: Tyler Michael Smith <tlrmchlsmth@gmail.com> Co-authored-by: OpenAI Codex <codex@openai.com> Signed-off-by: Zhu, Zufang <zufang.zhu@intel.com>
kamb-code
added a commit
to kamb-code/vllm
that referenced
this pull request
Aug 24, 2026
β¦GLE-reachable state `prefix_cache_retention_interval` defaults to 0 since vllm-project#52216: sparse Mamba retention hashes only the replay boundary and shared-prefix junctions (`MambaManager.reachable_block_mask`). Two consequences for the dense boundary stops introduced earlier in this PR, both found while @jschmied validated on a default install: 1. Stopping at every boundary splits the prefill for states the mask then discards. The split now stops only where a state will be hashed: every boundary under dense retention (`None`, or an interval at/below the block size), the next segment boundary under a positive interval, and only the kept boundaries under 0. 2. The retained replay boundary is `num_prompt_tokens - 1`, but under EAGLE/MTP the attention lookup drops its last matched block, so the kept state sat one block beyond what any speculative lookup can reach and an identical prompt only hit once a junction formed (third send). The hybrid coordinator now exposes that margin (`eagle_reach_margin`, the same rule its lookup applies: one hash block under fine-grained partial hits, otherwise one group block); `MambaManager` keeps the state at the eagle-reachable boundary too, and the split ends a chunk there so it exists. Measured on the scheduler+manager harness at retention 0 (main @ 8d6b183, 3-send identical protocol, 1,600-token align blocks): 7,292-token prompt carved [4800, 6400, 7292] instead of [1600, 3200, 4800, 6400, 7292], first hit on send 2 (4,800) instead of 3; 6,400-token prompt carved [3200, 4800, 6400], first hit on send 2 (3,200) instead of 3. Every dense-retention cell unchanged. Signed-off-by: Kam Basra <kameldipbasra@gmail.com> Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Jm6Q54FRX5t8uDLx2Jbrh5 Signed-off-by: Kam Basra <kameldipbasra@gmail.com>
This was referenced Aug 26, 2026
Closed
1 task done
Member
|
This let mamba prefix cache hit to 0 when using eagle |
ZJY0516
added a commit
to ZJY0516/vllm
that referenced
this pull request
Sep 7, 2026
β¦AGLE PR vllm-project#52216 changed the default of prefix_cache_retention_interval from None to 0. With sparse retention (0), only the latest replay boundary keeps a Mamba state checkpoint, and EAGLE additionally drops the tail block from prefix-cache hits, leaving Mamba checkpoints largely unreachable so prefix caching never hits for Mamba models with EAGLE-style speculative decoding. Keep the public argument unchanged (int | None, default 0) and only change how an unset value is resolved: EngineArgs now defaults the field to a private sentinel (or the deprecated VLLM_PREFIX_CACHE_RETENTION_INTERVAL env var when set) so that create_engine_config can tell an unset value apart from an explicit one and resolve it once the model and speculative-decoding configuration are known: dense (None) for Mamba models with EAGLE-style speculative decoding, 0 otherwise. Explicitly configured values (0 / N / None / env var) are always respected. Co-authored-by: Kimi Code Signed-off-by: zjy0516 <riverclouds.zhu@qq.com>
yiz-liu
pushed a commit
to vllm-project/vllm-ascend
that referenced
this pull request
Sep 29, 2026
### What this PR does / why we need it? vLLM PR [#52216](vllm-project/vllm#52216) promoted `prefix_cache_retention_interval` from an environment variable to a `CacheConfig` / `KVCacheConfig` field, and [#55353](vllm-project/vllm#55353) then removed `VLLM_PREFIX_CACHE_RETENTION_INTERVAL` from `vllm.envs` as part of the 0.29 deprecation cleanup. Both are on `main`. On the main line the resolved value is therefore simply whatever `CacheConfig` holds: `0` when the option is not passed, otherwise exactly the value given -- `None` (dense checkpoints), `0` (semantic checkpoints only), or a positive periodic interval. It is not adjusted by model or by EAGLE. The defect that the `releases/v0.29.0` dense default ([#55760](vllm-project/vllm#55760), [#55861](vllm-project/vllm#55861)) works around -- a Mamba `align` checkpoint at the EAGLE resume position being unreachable, so sparse retention never hits -- is addressed on `main` on the mechanism side by [#54713](vllm-project/vllm#54713) (retain both replay boundaries) and [#53945](vllm-project/vllm#53945) (opt-in `--enable-mamba-fine-grained-prefix-cache`, off by default). Both are ancestors of the commit cited below, which is why `main` neither needs nor performs a dense-by-default substitution. Sparse retention does hit there: see the field results, where the opt-in flag is left off. Several vLLM Ascend-owned paths still read `VLLM_PREFIX_CACHE_RETENTION_INTERVAL` directly: - `AscendHybridKVCacheCoordinator` - AscendStore scheduler and worker coordinators - the GLM-Next custom `KVCacheConfig` planner Since that variable no longer exists, `getattr(envs, "VLLM_PREFIX_CACHE_RETENTION_INTERVAL", None)` silently evaluates to `None` on every call. The effect is that these paths always behaved as if dense checkpoints (`None`) had been requested, and the configured value -- including an explicit `0` -- was ignored. They could therefore disagree with the upstream coordinator even though both were nominally reading "the retention config". This PR makes those paths consume the already-resolved `CacheConfig` / `KVCacheConfig` field and preserves it in the GLM-Next plan. It adds no default-selection or policy logic of its own: it reports whatever upstream resolved. Regression coverage verifies propagation of all three policy forms: dense (`None`), semantic-only sparse retention (`0`), and a positive periodic interval. Refs vllm-project/vllm#52216, vllm-project/vllm#55353, and #16449. ### Does this PR introduce _any_ user-facing change? Yes. `--prefix-cache-retention-interval` and Python `CacheConfig` values are now honored consistently by the Ascend hybrid coordinator, AscendStore, and the GLM-Next custom cache planning paths. Previously those paths always used dense checkpoints (`None`) regardless of the configured value. No new option or launch-command change is introduced. ### How was this patch tested? Added CPU regression coverage for: - `AscendHybridKVCacheCoordinator` consuming the resolved `KVCacheConfig` value; - AscendStore scheduler and worker propagation; - GLM-Next custom cache-plan propagation; - `None`, `0`, and positive interval values. Local checks completed: - `python -m compileall -q` on all modified Python files - `uvx ruff check` on all modified Python files - `uvx ruff format --check` on all modified Python files - `git diff --check upstream/main...HEAD` Targeted pytest execution was not available in the local Windows environment because `torch` is not installed; test collection stops in `tests/ut/conftest.py`. The added unit tests were therefore executed on an NPU host instead (below). #### Unit tests on an NPU host A5 / Ascend950PR, CANN 9.1.0, torch_npu 2.10.0.post4. vLLM-Ascend was compiled from this branch (custom ops package + extension) and installed over the image environment, against the pairing declared in `.github/vllm-main-verified.commit` (`vLLM v0.30.0`). ``` tests/ut/patch/platform/test_patch_kv_cache_coordinator.py tests/ut/distributed/ascend_store/test_pool_scheduler.py tests/ut/models/test_glm5next_cache_config.py -> 86 passed ``` The rebuilt extension also loads and runs: `torch.ops._C_ascend.get_physical_device_id(0)` returns `0`, so it is functional rather than merely importable. #### Retention propagation, measured against the installed wheel Constructing the real `AscendHybridKVCacheCoordinator` from the installed package with a synthetic `KVCacheConfig` (no monkeypatching), alongside a live evaluation of the pre-patch expression: ``` pre-patch : getattr(vllm.envs, "VLLM_PREFIX_CACHE_RETENTION_INTERVAL", None) -> None (the env var no longer exists, so every user setting was silently ignored) post-patch: config=None -> retention=None OK config=0 -> retention=0 OK config=4096 -> retention=4096 OK ``` #### End-to-end serving on NPU `Qwen3.5-27B` (hybrid GDN + full attention: 48 `linear_attention` + 16 `full_attention`, `mtp_num_hidden_layers=1`), TP2, MTP (`qwen3_5_mtp`, 3 tokens), prefix caching on, `--prefix-match-unit 16 --mamba-cache-mode align`, ACLGraph (`cudagraph_mode=FULL_DECODE_ONLY`), ModelRunner V1. | Check | Result | | --- | --- | | Resolved config (replayed through `EngineArgs`) | `is_hybrid=True`, `speculative_config.use_eagle()=True`, `prefix_cache_retention_interval=0`, `prefix_match_unit=16`, `mamba_cache_mode=align` | | Explicit `--prefix-cache-retention-interval 0` | resolves to `0`; not rewritten to `None` | | Prefix reuse (`prefix_repetition`, prefix 3200 / suffix 128, 32 prompts) | 32/32 succeeded, **hit rate 86.5%**, **2880 hit tokens per request** (90% of the shared prefix) | | GSM8K (full 1319, 4-shot CoT) | **97.04%** | | GPQA Diamond (198, 0-shot CoT) | **65.66%** | | Output consistency (identical long-prefix prompt Γ5, `temperature=0`) | byte-identical across repeats, 0 anomalous tokens | | Latency / throughput (`random` 3200-in / 256-out, 64 prompts) | conc 1: TTFT 628 ms, TPOT 9.6 ms, 83.5 tok/s; conc 8: TTFT 1184 ms, TPOT 26.9 ms, 248.7 tok/s | | MTP health | acceptance rate 69-81%, acceptance length 3.08-3.43 | No cache-hit, accuracy, or output-corruption regression was observed, and the patch was not required to change any launch parameter. #### Notes - With the option unset, the resolved value was `0` (semantic checkpoints only), confirmed by replaying the service's own argv through `EngineArgs`; no `defaulting ... to dense checkpointing` log line appears. This matches the main-line resolution described above. - Two further arms did not complete because of an intermittent NPU startup hang unrelated to this patch: the engine dies inside vLLM's `profile_run` with `AI Core Error / vector core timeout` before the Ascend coordinator is ever constructed, so the changed code does not execute. Affected: a control arm forcing `retention=None`, and a ModelRunner V2 smoke. All figures above come from ModelRunner V1. - This patch only changes the source of an already-resolved scalar configuration value and adds missing field propagation; it does not change cache lookup/retention algorithms, transfer addressing or protocol, scheduler behavior, NPU kernels, or model numerics. - vLLM main: vllm-project/vllm@ced6857 --------- Signed-off-by: bofukun <bofukun@huawei.com> Co-authored-by: bofukun <bofukun@huawei.com>
HackClawMxw
pushed a commit
to HackClawMxw/vllm-ascend-fork
that referenced
this pull request
Sep 30, 2026
β¦roject#17480) ### What this PR does / why we need it? vLLM PR [#52216](vllm-project/vllm#52216) promoted `prefix_cache_retention_interval` from an environment variable to a `CacheConfig` / `KVCacheConfig` field, and [#55353](vllm-project/vllm#55353) then removed `VLLM_PREFIX_CACHE_RETENTION_INTERVAL` from `vllm.envs` as part of the 0.29 deprecation cleanup. Both are on `main`. On the main line the resolved value is therefore simply whatever `CacheConfig` holds: `0` when the option is not passed, otherwise exactly the value given -- `None` (dense checkpoints), `0` (semantic checkpoints only), or a positive periodic interval. It is not adjusted by model or by EAGLE. The defect that the `releases/v0.29.0` dense default ([#55760](vllm-project/vllm#55760), [#55861](vllm-project/vllm#55861)) works around -- a Mamba `align` checkpoint at the EAGLE resume position being unreachable, so sparse retention never hits -- is addressed on `main` on the mechanism side by [#54713](vllm-project/vllm#54713) (retain both replay boundaries) and [#53945](vllm-project/vllm#53945) (opt-in `--enable-mamba-fine-grained-prefix-cache`, off by default). Both are ancestors of the commit cited below, which is why `main` neither needs nor performs a dense-by-default substitution. Sparse retention does hit there: see the field results, where the opt-in flag is left off. Several vLLM Ascend-owned paths still read `VLLM_PREFIX_CACHE_RETENTION_INTERVAL` directly: - `AscendHybridKVCacheCoordinator` - AscendStore scheduler and worker coordinators - the GLM-Next custom `KVCacheConfig` planner Since that variable no longer exists, `getattr(envs, "VLLM_PREFIX_CACHE_RETENTION_INTERVAL", None)` silently evaluates to `None` on every call. The effect is that these paths always behaved as if dense checkpoints (`None`) had been requested, and the configured value -- including an explicit `0` -- was ignored. They could therefore disagree with the upstream coordinator even though both were nominally reading "the retention config". This PR makes those paths consume the already-resolved `CacheConfig` / `KVCacheConfig` field and preserves it in the GLM-Next plan. It adds no default-selection or policy logic of its own: it reports whatever upstream resolved. Regression coverage verifies propagation of all three policy forms: dense (`None`), semantic-only sparse retention (`0`), and a positive periodic interval. Refs vllm-project/vllm#52216, vllm-project/vllm#55353, and vllm-project#16449. ### Does this PR introduce _any_ user-facing change? Yes. `--prefix-cache-retention-interval` and Python `CacheConfig` values are now honored consistently by the Ascend hybrid coordinator, AscendStore, and the GLM-Next custom cache planning paths. Previously those paths always used dense checkpoints (`None`) regardless of the configured value. No new option or launch-command change is introduced. ### How was this patch tested? Added CPU regression coverage for: - `AscendHybridKVCacheCoordinator` consuming the resolved `KVCacheConfig` value; - AscendStore scheduler and worker propagation; - GLM-Next custom cache-plan propagation; - `None`, `0`, and positive interval values. Local checks completed: - `python -m compileall -q` on all modified Python files - `uvx ruff check` on all modified Python files - `uvx ruff format --check` on all modified Python files - `git diff --check upstream/main...HEAD` Targeted pytest execution was not available in the local Windows environment because `torch` is not installed; test collection stops in `tests/ut/conftest.py`. The added unit tests were therefore executed on an NPU host instead (below). #### Unit tests on an NPU host A5 / Ascend950PR, CANN 9.1.0, torch_npu 2.10.0.post4. vLLM-Ascend was compiled from this branch (custom ops package + extension) and installed over the image environment, against the pairing declared in `.github/vllm-main-verified.commit` (`vLLM v0.30.0`). ``` tests/ut/patch/platform/test_patch_kv_cache_coordinator.py tests/ut/distributed/ascend_store/test_pool_scheduler.py tests/ut/models/test_glm5next_cache_config.py -> 86 passed ``` The rebuilt extension also loads and runs: `torch.ops._C_ascend.get_physical_device_id(0)` returns `0`, so it is functional rather than merely importable. #### Retention propagation, measured against the installed wheel Constructing the real `AscendHybridKVCacheCoordinator` from the installed package with a synthetic `KVCacheConfig` (no monkeypatching), alongside a live evaluation of the pre-patch expression: ``` pre-patch : getattr(vllm.envs, "VLLM_PREFIX_CACHE_RETENTION_INTERVAL", None) -> None (the env var no longer exists, so every user setting was silently ignored) post-patch: config=None -> retention=None OK config=0 -> retention=0 OK config=4096 -> retention=4096 OK ``` #### End-to-end serving on NPU `Qwen3.5-27B` (hybrid GDN + full attention: 48 `linear_attention` + 16 `full_attention`, `mtp_num_hidden_layers=1`), TP2, MTP (`qwen3_5_mtp`, 3 tokens), prefix caching on, `--prefix-match-unit 16 --mamba-cache-mode align`, ACLGraph (`cudagraph_mode=FULL_DECODE_ONLY`), ModelRunner V1. | Check | Result | | --- | --- | | Resolved config (replayed through `EngineArgs`) | `is_hybrid=True`, `speculative_config.use_eagle()=True`, `prefix_cache_retention_interval=0`, `prefix_match_unit=16`, `mamba_cache_mode=align` | | Explicit `--prefix-cache-retention-interval 0` | resolves to `0`; not rewritten to `None` | | Prefix reuse (`prefix_repetition`, prefix 3200 / suffix 128, 32 prompts) | 32/32 succeeded, **hit rate 86.5%**, **2880 hit tokens per request** (90% of the shared prefix) | | GSM8K (full 1319, 4-shot CoT) | **97.04%** | | GPQA Diamond (198, 0-shot CoT) | **65.66%** | | Output consistency (identical long-prefix prompt Γ5, `temperature=0`) | byte-identical across repeats, 0 anomalous tokens | | Latency / throughput (`random` 3200-in / 256-out, 64 prompts) | conc 1: TTFT 628 ms, TPOT 9.6 ms, 83.5 tok/s; conc 8: TTFT 1184 ms, TPOT 26.9 ms, 248.7 tok/s | | MTP health | acceptance rate 69-81%, acceptance length 3.08-3.43 | No cache-hit, accuracy, or output-corruption regression was observed, and the patch was not required to change any launch parameter. #### Notes - With the option unset, the resolved value was `0` (semantic checkpoints only), confirmed by replaying the service's own argv through `EngineArgs`; no `defaulting ... to dense checkpointing` log line appears. This matches the main-line resolution described above. - Two further arms did not complete because of an intermittent NPU startup hang unrelated to this patch: the engine dies inside vLLM's `profile_run` with `AI Core Error / vector core timeout` before the Ascend coordinator is ever constructed, so the changed code does not execute. Affected: a control arm forcing `retention=None`, and a ModelRunner V2 smoke. All figures above come from ModelRunner V1. - This patch only changes the source of an already-resolved scalar configuration value and adds missing field propagation; it does not change cache lookup/retention algorithms, transfer addressing or protocol, scheduler behavior, NPU kernels, or model numerics. - vLLM main: vllm-project/vllm@ced6857 --------- Signed-off-by: bofukun <bofukun@huawei.com> Co-authored-by: bofukun <bofukun@huawei.com>
wwwjn
added a commit
to pytorch/torchtitan
that referenced
this pull request
Oct 7, 2026
β¦se prefix hit rate (#5097) ## Summary vLLM's `prefix_cache_retention_interval` controls which sliding-window and Mamba (GDN) state blocks are hashed into the prefix cache. Full-attention groups hash every block regardless. - `0`, the default since v0.29.0 (vllm-project/vllm#52216): only the replay boundary (the last block boundary before the prompt's final token) and shared-prefix junctions are hashed. Other prompt blocks and every block crossed during decode are freed unhashed. A multi-turn rollout's next prompt contains the previous completion verbatim, so with `0` it can never hit past the previous prompt. - `None`: every full block boundary is hashed, as vLLM did before v0.29.0. This PR sets it to `None` in `VLLMGenerator`'s `EngineArgs`. - It only changes which blocks are registered in the prefix cache. A running request frees its blocks as before, and the extra hashed blocks join the evictable pool (LRU), so it does not reduce KV capacity for running requests. - `EngineArgs` passes the value straight to `CacheConfig`, and vLLM's validation returns early for `None`. Models without sliding-window or Mamba layers (e.g. Qwen3 dense, Llama) are unaffected. ### Example A hybrid GDN model with 1,024-token blocks. A prefix-cache hit has to stop at a block boundary where every cache group has a hashed block, so the GDN group caps the hit even though full-attention KV is cached further. - Turn 1: the prompt is 5,500 tokens and the model generates 1,800 (a tool call). The tool returns 700. - Turn 2: the prompt is 5,500 + 1,800 + 700 = 8,000 tokens. Its first 7,300 tokens are exactly turn 1's prompt plus completion. | | GDN states hashed after turn 1 | Turn-2 hit | Recomputed | |---|---|---|---| | Before (vLLM default `0`) | only 5,120, the replay boundary. 1,024-4,096 and the 6,144 and 7,168 boundaries crossed during decode are freed unhashed. | 5,120 | 2,880 = 380 + 1,800 completion + 700 tool output | | After (`None`) | every boundary, 1,024-7,168 (prompts + model generated rollouts) | 7,168 | 832 = 132 + 700 tool output | With `0`, every turn re-prefills the whole previous completion. With `None`, only the new tool output and the partial block before it are recomputed. ## Test plan - `pre-commit run --files torchtitan/rl/generator.py` (all hooks except pyrefly, which reports pre-existing environment errors repo-wide). - Multi-turn Terminal-Bench RL on Qwen3.6-35B-A3B (hybrid GDN), with the same field set to `None`: <fill in prefix-cache hit rate / step time vs default>
vrdn-23
added a commit
to vrdn-23/vllm
that referenced
this pull request
Oct 8, 2026
β¦nflicts Took the branch's vllm/envs.py wholesale: main's legacy TYPE_CHECKING block and environment_variables dict are already superseded by the pydantic *Settings models here. Then ported main's semantic delta from the 57 main-side commits that touched vllm/envs.py since 03a8d0b: vllm-project#52431 VLLM_USE_MODELSCOPE: description (bool already accepts "1") vllm-project#52216 prefix_cache_retention_interval promoted to an arg (see vllm-project#55353) vllm-project#48484 + VLLM_REPLICATE_EMBED vllm-project#52633 + VLLM_CPU_CI_ENV vllm-project#52182 - VLLM_TEST_FORCE_FP8_MARLIN vllm-project#52523 VLLM_API_KEY not a compile factor (branch already marked it) vllm-project#52998 VLLM_ALLREDUCE_USE_FLASHINFER default -> True vllm-project#53040 + VLLM_DISABLE_DSV4_MEGAMOE_SHARED_EXPERT_FUSION vllm-project#53053 + VLLM_KIMI_K3_GEMM_AR vllm-project#50501 + VLLM_XPU_INC_WNA16_BACKEND (case-sensitive Literal) vllm-project#52018 + VLLM_B12X_MOE_FP4_FORCE_A16 vllm-project#43018 + VLLM_KV_OFFLOAD_MAX_BATCH_DESCRIPTORS vllm-project#51718 VLLM_KV_CACHE_LAYOUT Literal widened to 8 layouts + description vllm-project#51896 + VLLM_MAX_MEDIA_DOWNLOAD_SIZE_MB vllm-project#53219 VLLM_ENABLE_COHERE_API: description vllm-project#53559 - VLLM_TRITON_ATTN_USE_TD shim (already absent on the branch) vllm-project#53561 VLLM_MAX_AUDIO_CLIP_FILESIZE_MB: description vllm-project#53378 VLLM_ELASTIC_EP_SCALE_UP_LAUNCH not a compile factor vllm-project#53141 VLLM_ROCM_USE_AITER_FP4_ASM_GEMM removed; restored by vllm-project#57055 vllm-project#54160 + VLLM_ENABLE_HPC_OPS vllm-project#53536 + VLLM_XPU_FORCE_N_CONTIG_WEIGHT vllm-project#53576 + VLLM_ALLREDUCE_USE_FLASHINFER_PCIE_IPC vllm-project#54632 + VLLM_MAX_EMBED_DECODE_BYTES (not a compile factor) vllm-project#54579 + VLLM_ENABLE_SCALE_OUT_ENDPOINTS; removed by vllm-project#55176 (net zero) vllm-project#53491 VLLM_GPU_SYNC_CHECK: description vllm-project#54371 + VLLM_PLE_CPU_OFFLOAD; reworked vllm-project#56512, dropped vllm-project#57937 (net zero) vllm-project#48247 VLLM_ROCM_USE_AITER_CUSTOM_AR: description vllm-project#55353 - VLLM_MM_HASHER_ALGORITHM (+ _lower_mm_hasher), - VLLM_PREFIX_CACHE_RETENTION_INTERVAL vllm-project#54985 - VLLM_NIXL_EP_MAX_NUM_RANKS vllm-project#56512 VLLM_PLE_CPU_OFFLOAD rework (net zero, see vllm-project#54371) vllm-project#55176 - VLLM_ENABLE_SCALE_OUT_ENDPOINTS (net zero, see vllm-project#54579) vllm-project#53940 + VLLM_ROCM_USE_AITER_MOE_SITUV2 (case-insensitive Literal) vllm-project#41074 + VLLM_SKIP_VERSION_SUFFIX (not a compile factor) vllm-project#48599 - envs.validate_environ (moved to Platform.validate_environ, which reads the branch's environment_variables shim) vllm-project#52136 pydocstyle docstring restyle of legacy helpers (no-op here) vllm-project#57212 docstring rejoin of legacy helpers (no-op here) vllm-project#56913 + FORCE_COLOR (alias, non-"0" is True, not a compile factor) vllm-project#57055 VLLM_ROCM_USE_AITER_FP4_ASM_GEMM restored (net zero, see vllm-project#53141) vllm-project#57142 shm buffer name autogen -> new _generate_shm_name() (<=30 chars) vllm-project#56685 VLLM_HUMMING_INPUT_QUANT_CONFIG: description vllm-project#57937 - VLLM_PLE_CPU_OFFLOAD (net zero, see vllm-project#54371) vllm-project#50814 + VLLM_MXFP4_EMULATION_DEQUANT_AT_LOAD vllm-project#57428 + VLLM_ENABLE_GEMM_RS, - VLLM_KIMI_K3_GEMM_RS vllm-project#51600 - VLLM_XPU_ENABLE_XPU_GRAPH vllm-project#58582 + VLLM_TRITON_JIT_WARMUP_NUM_THREADS (not a compile factor) vllm-project#55145 + VLLM_XPU_PP_MICROBATCH vllm-project#58201 VLLM_ROCM_USE_AITER_MOE_SITUV2 6-way choice, - VLLM_ROCM_USE_AITER_MOE_SITUV2_A8W4 vllm-project#58919 + VLLM_MOONCAKE_CONNECTOR_TIMEOUT vllm-project#56861 + VLLM_ROCM_AITER_MLA_DCP_VERIFY (case-insensitive Literal) vllm-project#53492 + VLLM_ROCM_USE_AITER_TRITON_SPARSE_MLA vllm-project#57991 VLLM_DEEPEP_V2_ALLOW_HYBRID_MODE default True (branch already True) + description vllm-project#58819 + VLLM_ROCM_USE_AITER_MOE_A4W4_DSV4 (tri-state, bool(int(v))) vllm-project#50300 + VLLM_CHAT_TEMPLATE_RENDER_TIMEOUT vllm-project#54024 VLLM_CPU_INT4_W4A8: description vllm-project#59781 - VLLM_ENGINE_ITERATION_TIMEOUT_S vllm-project#57995 + VLLM_FLASHINFER_MOE_A2A_LOW_PRECISION_COMBINE vllm-project#59965 VLLM_ROCM_AITER_MLA_DCP_VERIFY default route (final "auto") Also VLLM_SSM_CONV_STATE_LAYOUT's description follows vllm-project#51718's layout rename. Parity: 311 branch fields vs 311 main runtime entries, no difference in either direction. Every var's value matches main's lambdas in an empty environment and under 15 override scenarios, except case normalization of the two lowercased ROCm choices (both callers already call .lower()). Intentionally not ported: main's new consumer tests that match env_with_choices' error text (test_invalid_backend_value_raises, test_dcp_verify_env_rejects_unknown_route, and the ROCm-gated test_aiter_moe_situv2_rejects_unknown_activation) fail on this branch: pydantic's ValidationError names the field, not the env var. Invalid values are still rejected. Tracked as a branch-wide follow-up. Other conflicts and merge fallout: - requirements/docs.txt, requirements/test/{cpu,cuda,rocm,xpu}.txt: took main's lockfiles and regenerated them with the pip-compile pre-commit hooks; they differ from main only by the branch's pydantic-settings lines. - tests/test_envs_pydantic.py: dropped the mm-hasher test, pointed the validate_environ tests at Platform.validate_environ, updated the shm-name prefix assertion. - check-test-tethering (new on main): wired test_envs_pydantic.py into the CPU params/env job; allowlisted tests/docs/test_env_vars_gen.py, which cannot run from a CI job's tests/ cwd (tests/docs shadows docs/). Tests: pytest tests/test_envs.py tests/test_envs_pydantic.py tests/docs/test_env_vars_gen.py -> 55 passed; pre-commit run --files on all changed files -> clean. AI assistance (Claude) was used for this merge resolution. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Vinay Damodaran <vrdn@hey.com>
michael-gpu
pushed a commit
to practical-inference/vllm-ampere-extended
that referenced
this pull request
Oct 20, 2026
β¦he default to 0 (vllm-project#52216) Signed-off-by: Tyler Michael Smith <tlrmchlsmth@gmail.com> Co-authored-by: OpenAI Codex <codex@openai.com>
1 task done
1 task done
6 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
VLLM_PREFIX_CACHE_RETENTION_INTERVALwas added in #43447, and allows control over the frequency of caching blocks for SWA and SSM models.When setting this value to zero, vLLM retains only the latest replayable prompt boundary, and when setting it to a positive integer N, vLLM retains every N tokens.
This has become an extremely important setting especially for agentic workloads, so this PR upgrades it to an argument rather than an environment variable.
In addition, it now defaults to
0rather thanNone, so that we avoid caching useless blocks. Marconi-style cache retention guarantees that we still retain the system prompt.