Repository navigation
Commit 07fb739
authored
[Feature][HiSparse] Enable bulk AscendStore pooling in colocated serving (#21924)
### What this PR does / why we need it?
Enable whole-block AscendStore prefix reuse alongside HiSparse on one
Ascend 950 node. HiSparse offloads historical main KV to local DDR and
manages Resident and Hot pages. AscendStore saves and restores Host
Source and NPU Indexer pages. This builds on #20926. The design and
acceptance criteria are in #22762.
- **Registration and layout.** Host and device block counts are
separate. Runner V2 reserves alignment headroom before allocation so the
backend can bind Indexer, Resident, and Hot views to the shared 2
MiB-aligned slab. AscendStore uses the logical BF16 Indexer stride and
transfers the C8 key and scale without padding.
- **Replay and buffer lifetime.** MemCache batches Host GETs up to 256
MiB. Core publishes imported pages after all ranks complete. Unsent
cancellations release their destination pages through the same
completion path. Startup sizing and partial-hit admission share the same
Resident limit.
- **MTP writes.** The save hook flushes pending draft Host rows before
recording the PUT event. The sender waits before writing and the queue
drains before source slots can be reused. The hook adapts Core's draft
DMA/event state until Core exposes a public flush hook.
### Does this PR introduce _any_ user-facing change?
Yes. Use Runner V2, a Core build with Ascend HiSparse support, and a
`MultiConnector` containing exactly one `HiSparseConnector` and one
`AscendStoreConnector`. Use `kv_role=kv_both`,
`prefill_context_parallel_size=1`, `backend=memcache` with `host_tcp`,
`load_async=true`, `discard_partial_chunks=true`, and
`eager_host_mirror=true`. The supported deployment is single-node
colocated Prefill and Decode. Stock Core v0.33.0 rejects HiSparse on
Ascend. [Setup and replay
verification](https://github.com/vllm-project/vllm-ascend/blob/3478a0edaa38d85f1f8a054c3eb985cceb286154/docs/source/user_guide/feature_guide/hisparse.md#combining-hisparse-with-ascendstore)
The `hisparse-ascendstore-v1` namespace separates pool entries by
target/draft checkpoint identity, shard selection, effective model
configuration, and page geometry. Use a versioned path for new local
weights. Mooncake support is deferred because a timed-out PUT can
corrupt a different object. [Mooncake
#4491](kvcache-ai/Mooncake#4491)
### How was this patch tested?
- **Current CPU regression (`3478a0edaa`).** On both the pinned Core and
v0.34.0, 606 passed and 12 skipped per version across separate KV-pool
and request-lifecycle runs. Online replay is documented for manual
verification.
- **Earlier CI.** Pre-commit and CPU suites passed on the pinned Core
and v0.33.0. The A3 four-card shard passed on retry after an HCCL port
conflict. [CI for
`7ad28087`](https://github.com/vllm-project/vllm-ascend/actions/runs/45325358239/attempts/2)
- **Earlier manual A5 C8 replay.** GLM-5.3 W4A4C8 MXFP4, TP8, eager,
MTP=3, MemCache 1.3.0 `host_tcp`, CANN 9.2.1, Core `ba15685ab`. At 2K
and 16K, the HiSparse-only local hit, the combined local hit, and the
forced external hit matched on 32 token IDs, selected logprobs, and
top-5 logprobs. Both external replays had zero local hits and computed
only the final 128 tokens. A 1+128-token Prefill split also passed
byte-for-byte verification across all eight ranks.
- **Other A5 checks.** BF16 128K cold, half-hit, and full-hit completed
with matching outputs on `9d25dd270`. Earlier lab runs covered receive
failure and cancellation, local recompute after a failed GET, and
MemCache registration rollback.
- **Earlier performance (`085a2e0b0`).** GLM-5.3 W4A4 MXFP4, A5 TP8,
eager, MTP off, concurrency 4, 256 output tokens per request. The two
workloads used 8 and 16 requests per arm, respectively. With AscendStore
enabled, 16K cold TPOT P99 changed from 512.17 to 520.88 ms/token
(+1.70%), and throughput from 6.415 to 6.399 tokens/s (−0.25%). With a
120K local hit on 128K input, P99 changed from 384.73 to 386.38 ms/token
(+0.43%), and throughput from 8.864 to 8.861 tokens/s (−0.04%). The
maximum rank-local PUT queue wait in the 128K case was 310.08 ms.
### Checklist
- [x] Boundary, failure, and regression coverage
- [x] A5 MTP=3 external replay
- [x] A5 PUT queue and TPOT measurements for the configurations above
- vLLM main:
vllm-project/vllm@c410543
---------
Signed-off-by: Lin Haohong <1605058857@qq.com>
Co-authored-by: Lin Haohong <esir98@users.noreply.github.com>1 parent 4f49ae3 commit 07fb739
43 files changed
Lines changed: 3795 additions & 243 deletions
File tree
- docs/source/user_guide/feature_guide
- release_notes/fragments
- tests/ut
- core
- distributed
- ascend_store
- kv_offload
- worker
- vllm_ascend
- core
- distributed
- ec_transfer
- kv_transfer
- kv_pool
- ascend_store
- backend
- hisparse
- kv_offload/native
- hisparse
- worker
- v2
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
30 | 35 | | |
31 | 36 | | |
32 | 37 | | |
| |||
84 | 89 | | |
85 | 90 | | |
86 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
87 | 138 | | |
88 | 139 | | |
89 | 140 | | |
| |||
93 | 144 | | |
94 | 145 | | |
95 | 146 | | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
96 | 154 | | |
97 | 155 | | |
98 | | - | |
| 156 | + | |
99 | 157 | | |
100 | 158 | | |
101 | 159 | | |
102 | 160 | | |
103 | 161 | | |
104 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
0 commit comments