Skip to content
Merged
Show file tree
Hide file tree
Changes from 26 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
1cbaa2c
fix: retain aligned Mamba prefixes across long prefills
Leonccaa Sep 13, 2026
5cd53e1
docs: describe sparse retention for 1Cat
Leonccaa Sep 13, 2026
f0be84a
Configure Mamba checkpoint retention in blocks
Leonccaa Sep 13, 2026
820516b
Backport upstream Mamba retention configuration and recovery boundaries
Leonccaa Sep 13, 2026
6c24974
Fix sparse cache events and non-EAGLE decode retention
Leonccaa Sep 13, 2026
5d4c0e4
Merge remote-tracking branch 'upstream/main' into fix/mamba-sparse-pr…
Leonccaa Sep 13, 2026
fdc0ffc
Fix upstream README blank line for CI
Leonccaa Sep 13, 2026
a9ab97a
Move unrelated baseline CI fixes to a separate PR
Leonccaa Sep 13, 2026
18dc5cb
fix: exclude scratch KV groups from native offload scheduling
Leonccaa Sep 11, 2026
ae3d484
fix: budget hybrid CPU offload pools by cache group
Leonccaa Sep 11, 2026
70ed46b
test: verify grouped CPU eviction reuses the retired slot
Leonccaa Sep 11, 2026
3a9d26e
Validate grouped offload composition with existing filesystem tiers
Leonccaa Sep 11, 2026
db8e258
Support group-local shared memory views in offload workers
Leonccaa Sep 11, 2026
1c0c328
Wire grouped shared regions through native tiering spec
Leonccaa Sep 11, 2026
e557cb6
Let scheduler unlink shared offload files after worker shutdown
Leonccaa Sep 11, 2026
ac54716
Document stable prefix hash seed for filesystem restart reuse
Leonccaa Sep 11, 2026
d8e7e2d
Record V100 grouped filesystem restart and shutdown validation
Leonccaa Sep 11, 2026
57c3fc4
Fail early when shared offload memory cannot be pinned
Leonccaa Sep 11, 2026
6847e06
Record complete-image V100 and single-group offload validation
Leonccaa Sep 11, 2026
5e12852
Fix grouped offload retries when a pool defers storage
Leonccaa Sep 11, 2026
70eb7cb
Test external LMCache group metadata compatibility
Leonccaa Sep 11, 2026
52ce76c
Document LMCache PR compatibility results and registration blocker
Leonccaa Sep 11, 2026
eef147c
Size grouped Mamba pools from the retention mask and propagate extern…
Leonccaa Sep 13, 2026
0d497ca
Document V100 offload validation on PR617 core
Leonccaa Sep 13, 2026
33b534e
fix: serialize shared offload mmap registration across workers
Leonccaa Sep 13, 2026
fb808b7
docs: record concurrent pinning fix and V100 restart acceptance
Leonccaa Sep 13, 2026
0b2d937
Retry Mamba boundary hand-offs and reject sparse retention with a blo…
Leonccaa Sep 13, 2026
7f9c0ae
Fix CPU cache restore ordering against GPU destination zeroing
Leonccaa Sep 14, 2026
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
387 changes: 387 additions & 0 deletions docs/design/grouped_cpu_offload.md

Large diffs are not rendered by default.

48 changes: 48 additions & 0 deletions docs/features/automatic_prefix_caching.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,52 @@ We describe two example workloads, where APC can provide huge performance benefi

## Limits

### Sparse checkpoints for aligned Mamba caches

`--prefix-cache-retention-interval` (the `CacheConfig.prefix_cache_retention_interval`
field) controls Mamba checkpoint retention. Its name, token unit, and value
semantics follow upstream vLLM:

| Value | Retained checkpoints |
| --- | --- |
| `None` | Every eligible state, preserving dense admission |
| `0` (default) | Necessary replay boundaries and detected shared-prefix junctions |
| Positive integer | Those boundaries plus periodic checkpoints at this token interval |

A positive interval must be a multiple of the resolved cache-hit alignment, not
necessarily a power of two. For 800-token alignment, `16000` selects a checkpoint
every 20 blocks. The former draft environment variables
`VLLM_MAMBA_SPARSE_CACHE_INTERVAL` and
`VLLM_MAMBA_SPARSE_CACHE_INTERVAL_BLOCKS` are replaced by this configuration field;
the old value `0` maps to `None`, not to the new default `0`.

This is a Mamba-focused adaptation of upstream
[#43447](https://github.com/vllm-project/vllm/pull/43447),
[#45845](https://github.com/vllm-project/vllm/pull/45845),
[#47782](https://github.com/vllm-project/vllm/pull/47782), and the replay-boundary
fixes [#53945](https://github.com/vllm-project/vllm/pull/53945) /
[#54713](https://github.com/vllm-project/vllm/pull/54713).
Other cache types retain their existing 1Cat admission policy. Sparse Mamba
admission applies in `align` mode when the manager block size matches the
coordinator alignment; other geometries keep dense admission.

Free uncached blocks are reused before cached blocks. The retention mask keeps
both model-level MTP/EAGLE replay positions when required, without removing the
existing speculative safety backoff. When a group has a longer cached prefix than
the combined hit, the request records that shared junction; scheduling
materializes its aligned state and admission keeps it for later sibling requests.
The first newly observed fork can still require replay. This does not predict
future forks or pin caches against eventual capacity eviction.

The parameter changes retention, not state computation, block size, or allocated
VRAM. Smaller positive intervals retain more recovery points; larger intervals
reduce checkpoint pressure but may require more replay. Cold-prefill contention
with active decoders remains possible.

The earlier custom-policy GPU experiments used Flash-Next AWQ on four V100 GPUs
with native FP8 MTP3. They do not constitute GPU acceptance of this revised
upstream-aligned implementation or of other models such as 27B variants.

### Workloads without reusable prefixes

APC in general does not reduce the performance of vLLM. With that being said, APC only reduces the time of processing the queries (the prefilling phase) and does not reduce the time of generating new tokens (the decoding phase). So APC does not bring performance gain when vLLM spends most of the time generating answers to the queries (e.g. when the length of the answer is long), or new queries do not share the same prefix with any of existing queries (so that the computation cannot be reused).
Loading
Loading