Skip to content

Report KV pages held by active requests - #549

Open
WynnD wants to merge 6 commits into
NVIDIA:mainfrom
WynnD:metrics/request-kv-pages
Open

WynnD wants to merge 6 commits into
NVIDIA:mainfrom
WynnD:metrics/request-kv-pages

Conversation

@WynnD

@WynnD WynnD commented Nov 26, 2026 •

Copy link
Copy Markdown

/metrics reports free and cached KV pages but not the pages live requests hold, so an operator cannot compute the KV share in use, and pages reserved for requests' growth are invisible (neither free, cached, nor written). #537 asks for this. Cache::stats deliberately avoids scanning the checkpoint graph, so the cache maintains a count as request pins change, and the scheduler adds its live slots' private and reserved pages.

What changed

  • helios/src/cache.rs. Request pins (pin_request/unpin_request) share one chain walk with plain pins and additionally count each pinned checkpoint's tail pages once while any request pins it (request_pinned_pages). Compaction moves the count into the surviving checkpoint. Plain pins for host copy-out and export are not counted.
  • helios/src/scheduler.rs. Every request-owned pin uses the request API, and retirement releases it before the slot is emptied. SchedulerStats gains request_pages (live slots' private pages plus the cache count) and reserved_pages.
  • helios/src/server/runtime.rs. The deferred host copy-out retry key zeroes both new fields, so page movement during decode does not re-trigger copy-outs.
  • metrics.rs, docs/api.md. Gauges flare_request_kv_pages and flare_reserved_kv_pages, published when a scheduler pass makes progress. Request-pinned checkpoint pages also appear in flare_cached_kv_pages. (flare_request_kv_pages + flare_reserved_kv_pages) / flare_total_kv_pages is the share comparable to vLLM's kv_cache_usage_perc.

Result

Pages held and reserved by active requests become scrapeable; allocation, eviction, and scheduling are unchanged. Cost: one counter update per page-count crossing on request pin and release, and one pass over live slots per stats call, in the loop that already counted them.

Evidence

  • cargo test --features runtime-core,server --lib -- server:: scheduler:: cache::: 809 passed; 1 failed, a template test that needs FLARE_TEST_TEMPLATE_DIR and is unrelated. A test-only assertion compares the maintained count with a full scan on every Cache::stats call. Scheduler and cache tests cover shared prefixes (three distinct pages count 3, not 4), plain pins, compaction, and cancellation back to zero.
  • Live, on one RTX PRO 6000 Blackwell serving the prepared local-inference-lab/Qwen3.8-Flash-Next-FLARE gb202 package (20,480 pages) with 16 concurrent streams, mid-run scrapes reported 54–80 request pages and 16–22 reserved pages. On a two-GPU DeepSeek-V4.1-Flash deployment with two concurrent chats, the gauges read 399–402 and 2–3 of 21,504 pages.
  • Not run: the Windows build.

This PR and #548 (request histograms) are independent and merge cleanly in either order.

Closes #537

Discord: oystersmiles

`/metrics` reports cached and free KV pages but not the pages live requests
hold, so an operator cannot compute the KV share in use by requests, and pages
reserved for their future growth are invisible: they are neither free, cached,
nor written. Issue NVIDIA#537 asks for the pages held by active requests. A per-scrape
scan of the checkpoint graph is not acceptable because `Cache::stats`
deliberately avoids scanning `nodes`, so the cache keeps a maintained page count
and the scheduler adds the counts of its live slots.

`PrefixCheckpointCache::pin_request` and `unpin_request` record direct request
pins and transitive request pins per checkpoint and keep `request_pinned_pages`
at the tail-page count of checkpoints whose transitive request pin count is
nonzero, so a page shared through a pinned ancestor counts once for every request
that references it. Compaction asserts that the removed ancestor and its heir
agree on request pins, and a checkpoint leaves `nodes` only at zero pins. The
scheduler now takes every request-owned pin, and the ticket-parent pins that
belong to host-store admission, through the request API, and reports
`request_pages` as live slots' private pages plus the cache count and
`reserved_pages` as live slots' reserved pages. `Metrics` stores both values and
renders `flare_request_kv_pages` and `flare_reserved_kv_pages` in the Prometheus
text only; the JSON snapshot is unchanged. `docs/api.md` defines both gauges and
states that dividing the first by `flare_total_kv_pages` excludes idle cached
prefixes and snapshot backing pages.

The claimed result is visibility only: the KV pages held by active requests and
the pages reserved for their growth become scrapeable, and the reserved gauge
explains the remainder of non-free pages. No allocation, eviction, or scheduling
decision changes.

Evidence: `cargo test --locked --release --manifest-path helios/Cargo.toml
--target-dir ~/.cache/hyperflare-target --features runtime-core,server --lib --
cache:: scheduler:: server::metrics` passed 508 tests. That run exercises the
extended `Cache::stats` drift assertion, which compares the maintained
request-pinned page count with a full scan of every checkpoint on every stats
read, so every cache and scheduler test checks the counter.
`request_pins_count_each_shared_page_once` asserts that two request pins on
branches sharing an ancestor count three pages, that plain pins leave the count
unchanged, that releasing a checkpoint without a request pin is an error, and
that the count returns to zero. `request_kv_pages_count_shared_prefix_pages_once`
asserts both gauges against the requests' own private and reserved pages after a
shared prefix, and that both reach zero after retirement while cached pages stay
nonzero. `counters_expose_fixed_names_without_request_payloads` covers the new
gauges' types and values. Windows builds and the rest of the helios suite are
left to CI.

Signed-off-by: Wynn Drahorad <[email protected]>
Design-Signed-Off-By: Claude Opus 5.5 (omp agent); design-review=eb2f
@WynnD
WynnD marked this pull request as draft November 26, 2026 20:27
@flare-autobot

Copy link
Copy Markdown
Collaborator

A case file has been opened for 549.
Case File Intake Report

Future reviews will auto-run 90 minutes after code updates are pushed.

  • Re-review sooner: Call @flare-autobot after push.
  • Opt-out: Include #autobot:ignore in the PR or any comment.

@flare-autobot

Copy link
Copy Markdown
Collaborator

Autobot Review

Full Review for Agents · Value Proposition · Case File

Recommendation: Changes Requested

Scope and approach are right — the count is maintained as pins change so Cache::stats keeps its no-scan-nodes property, and the gauges reuse the existing renderer, update table and test rows. One three-line blocker, five should-fix items (three of them prose accuracy), and about 90 removable lines. Nothing below asks for new code.

Blockers:

  • The new gauges leaked into the copy-out retry key. SchedulerStats derives PartialEq and is embedded whole in CopyoutResources (runtime.rs:1053-1059, compared at 2441-2449), so request_pages/reserved_pages now change when a decode crosses a page boundary (commit, scheduler.rs:2433-2438) and re-offers deferred host copy-outs with no cache-resource movement — contradicting "no scheduling decision changes". Fix: zero the two fields when building the key, or say so in the description.

Should fix:

  • docs/api.md:302-303: delete "Both are gauges read from scheduler state on each scrape" — the scrape only loads atomics (metrics.rs:1394-1396); the worker publishes them (runtime.rs:1148-1149).
  • docs/api.md:303-305: one rewrite of the ratio sentence — reserved pages are outside the numerator (so request + reserved is the vLLM-comparable figure); request-pinned tail pages are counted in both gauges (the checkpoint stays in nodes, cache.rs:551-561, 257-275); "live requests" excludes pages draining through self.retired (scheduler.rs:3143, 3170-3183) and an in-flight restore ticket (1704-1723). Cite the in-repo drift assertion (cache.rs:817-837) as evidence instead of request + reserved < total − free − cached, which is dominated by snapshot-backing pages.
  • scheduler.rs:1643-1649, 1657-1664, 1682-1690: the same if inbound.is_none() pin-kind conditional three times; carry the choice once in the pinned binding (1638-1642). The branch must stay (the ticket-parent pin has to precede ensure_resources); only the repetition goes.
  • scheduler.rs:3143 vs 3155-3159: retire can now fail after request.take(); release the pin first (or debug_assert!), so a future unpair bug is not a silent pin leak.
  • cache.rs:548-550: the doc comment claims request pins track "its private pages" — the cache never sees them (added in scheduler.rs:1216-1222). State the cache's half only.

Subtract / Simplify:

Could remove ~90 of +218 added lines (up to ~112 if flare_reserved_kv_pages goes):

  • ~55 — scheduler/tests.rs:970-1034 repeats branching_requests_own_distinct_tail_pages_and_terminal_snapshots (1036-1081) step for step. Append the ~10 stats/cancel assertions to that test and delete this one.
  • ~25 — fold pin_request/unpin_request into pin/unpin: they walk chain(id) twice per call (cache.rs:551-563, 565-580) on the admission, ticket-waiter, boundary-publication and retirement paths. One private pin_with(id, request) keeps the drift assertion intact.
  • ~10 — cache/tests.rs:322-328 copies the fixture below verbatim; fold the request-pin assertions in, and drop :335, which re-tests the plain-pin guard already at :358.
  • ~22-25 (conditional) — flare_reserved_kv_pages is a gauge Metrics: KV cache usage cannot be computed with vLLM semantics (pages held by active requests are not exposed) #537 did not ask for. Keep it if the ratio paragraph names request + reserved; otherwise delete scheduler.rs:132-133, 1223-1228, metrics.rs:266/518/1314-1318/1791/1836, docs/api.md:301-302.

Nits:

5

To opt out, include #autobot:ignore in your post or comment.

Review of the previous commit found four defects. `SchedulerStats` derives
`PartialEq` and is embedded whole in the deferred-copy-out retry key
(`CopyoutResources`), so the two new page gauges changed that key whenever a
decode crossed a page boundary, re-offering host copy-outs with no cache-resource
movement and contradicting the claim that no scheduling decision changes. The
scheduler repeated the request-versus-ticket pin choice at three admission sites.
`retire` emptied the request slot before releasing its request pin, so a failed
release would drop the request instead of leaving it inspectable. And the new
documentation described the gauges as read from scheduler state on each scrape,
described request-pinned pages as double counted, and omitted the pages that
retirement and admission tickets still hold.

The retry key now builds `SchedulerStats` with `request_pages` and
`reserved_pages` zeroed, since those move without any cache resource changing.
`pin_prefix` and `unpin_prefix` take the pin kind once from the admission path
and replace the three repeated branches, keeping the ticket-parent pin ahead of
`ensure_resources`. `retire` releases the request pin before taking the request
out of the slot. `docs/api.md` states that the worker publishes the gauges on
each scheduler pass, that request-pinned checkpoint pages also appear in
`flare_cached_kv_pages`, that neither gauge counts pages draining through
retirement or an in-flight restore, and that
`flare_request_kv_pages + flare_reserved_kv_pages` is the figure comparable to
another runtime's used KV cache; the `pin_request` comment now describes only the
cache's half of the count, since private pages live in the scheduler.

The claimed result is unchanged: visibility into request-held and reserved KV
pages, with no allocation, eviction, or scheduling decision affected. The retry
key fix restores that claim.

Evidence: `cargo test --locked --release --manifest-path helios/Cargo.toml
--target-dir ~/.cache/hyperflare-target --features runtime-core,server --lib --
cache:: scheduler:: server::metrics` passed 508 tests after these changes, which
includes the extended `Cache::stats` drift assertion over the request-pinned
count and the scheduler lifecycle models that exercise admission, compaction,
retirement, and the deferred-copy-out path. Windows builds and the rest of the
helios suite remain with CI.

Signed-off-by: Wynn Drahorad <[email protected]>
Design-Signed-Off-By: Claude Opus 5.5 (omp agent); design-review=eb2f
@WynnD

WynnD commented Nov 27, 2026

Copy link
Copy Markdown
Author

@flare-autobot review the pushed changes. The per-request metrics PR is new; the other two carry review fixes.

@flare-autobot

Copy link
Copy Markdown
Collaborator

Autobot Review

Full Review · Value Proposition · Case File

Recommendation: Changes Requested

The previous round's blocker is fixed at 9cca87a — the two gauges are now zeroed in the copy-out retry key — as are the retire pin ordering and the wrong cache.rs doc comment. What remains is one self-contradictory API paragraph, four mechanical description corrections, and about 75 of the 246 added lines that can simply be deleted; nothing asks for new code, tests, flags or docs.

  • Blockers: 0
  • Should fix: 2
  • Subtractive suggestions: 3
  • Nits: 5

Have your agent review the Full Review for complete findings, file:line citations, and suggested changes.

To opt out, include #autobot:ignore in your post or comment.

The KV-page paragraph in `docs/api.md` offered two incompatible ratios for one
measurement, blamed division for pages the numerators never contained, cited a
`#[cfg(test)]` assertion in operator documentation, and claimed publication on
every scheduler pass. Rewrite it around one ratio,
`(flare_request_kv_pages + flare_reserved_kv_pages) / flare_total_kv_pages`,
name the population as requests owning a model slot with restore-ticket pages
excluded, state that request-pinned checkpoint tail pages count in both the
request and cached gauges, and give the actual cadence: passing scheduler
passes, startup, and the post-shutdown drain.

`pin_request`/`unpin_request` walked the checkpoint chain twice, once through
`pin`/`unpin` and again for request accounting, allocating two chain vectors
per request pin and release. One private `pin_with`/`unpin_with` pair now walks
it once, keeps the readiness, refcount, and direct-pin guards, and adds a
`debug_assert!` at the request-pin 1->0 transition that moves
`request_pinned_pages`. Pin behavior is unchanged.

The scheduler test duplicating the branching-request fixture and the cache test
duplicating the branching-pin fixture are folded into those tests. They now
also assert the request/reserved gauges, the cancellation drain, the shared
page counted once, and that a plain copy-out pin does not move the request
gauge. `SchedulerStats` active, request, and reserved counts now come from one
pass over slots instead of three.

Validation: `cargo check --locked --manifest-path helios/Cargo.toml --features
server` passed. `cargo test --locked --manifest-path helios/Cargo.toml
--features runtime-core,server --lib -- server:: scheduler:: cache::` reported
814 passed, 1 failed (the known
`messages_image_hints_end_after_expansion_for_text_and_segmented_templates`,
which needs FLARE_TEST_TEMPLATE_DIR), 11 ignored, 852 filtered out; the two
merged tests pass. Limitation: no behavior change is claimed, and no live
scrape measured the ratio.

Signed-off-by: Wynn Drahorad <[email protected]>
Design-Signed-Off-By: Claude Opus 5.5 (omp agent); design-review=eb2f
@WynnD
WynnD marked this pull request as ready for review November 28, 2026 02:09
WynnD added a commit to WynnD/hyperflare-inference that referenced this pull request Nov 28, 2026
The request-histogram documentation and two expected rows of the counter
exposition test were inserted at the same lines as the KV-page gauge change
(NVIDIA#549) adds its paragraph and rows, so whichever of the two merged second
would stop on a textual conflict although the changes are independent.

The histogram paragraphs in docs/api.md now follow the paragraph about the
JSON format of the /metrics route instead of directly following the route's
introduction, and in counters_expose_fixed_names_without_request_payloads the
cache_lookup_tokens field and the parked_requests row move to the end of their
lists. The text and assertions are unchanged; the test checks each row with
`contains`, so row order does not matter.

The two changes now merge in either order without manual resolution.

cargo test --features runtime-core,server --lib -- server::metrics passed 19
tests, and `git merge-tree` of this branch with the KV-page branch reports no
conflict.

Signed-off-by: Wynn Drahorad <[email protected]>
Design-Signed-Off-By: Claude Opus 5.5 (omp agent); design-review=eb2f
@WynnD

WynnD commented Nov 28, 2026

Copy link
Copy Markdown
Author

Live validation summary. Hardware: one RTX PRO 6000 Blackwell serving the prepared local-inference-lab/Qwen3.8-Flash-Next-FLARE gb202 package (20,480 KV pages). The image was built from upstream main with this PR, #548, and #560 merged.

Check Result
Mid-run scrapes, 16 concurrent streams flare_request_kv_pages 54–80, flare_reserved_kv_pages 16–22
Two-GPU DeepSeek-V4.1-Flash, 2 concurrent chats 399–402 request pages, 2–3 reserved, of 21,504
Merge with #548 clean in either order
Unit tests (server:: scheduler:: cache::) 809 passed; 1 unrelated template test needs FLARE_TEST_TEMPLATE_DIR

@flare-autobot

Copy link
Copy Markdown
Collaborator

Autobot Review

Full Review · Value Proposition · Case File

Recommendation: Changes Requested

bca7358 fixes every item from the previous round and folds the duplicate tests; what remains is one API-doc sentence, one restored test assertion, and about 55 of the +202 added lines that can simply be deleted. Nothing here asks for new code, tests, flags, or docs.

  • Blockers: 0
  • Should fix: 2
  • Subtractive suggestions: 4
  • Nits: 7

Have your agent review the Full Review for complete findings, file:line citations, and suggested changes.

To opt out, include #autobot:ignore in your post or comment.

@flare-autobot

Copy link
Copy Markdown
Collaborator

Autobot Review

Full Review · Value Proposition · Case File

Recommendation: Changes Requested

No new commits: bca7358 still fixes every item from the previous round, and the description has since been corrected. What remains is deleting a redundant pin-dispatch layer, restoring one test assertion, and cutting about 50 of the +202 added lines. Nothing here asks for new code, flags, or docs.

  • Blockers: 0
  • Should fix: 2
  • Subtractive suggestions: 4
  • Nits: 6

Have your agent review the Full Review for complete findings, file:line citations, and suggested changes.

To opt out, include #autobot:ignore in your post or comment.

@lukealonso

Copy link
Copy Markdown
Collaborator

Overall the design looks solid — maintaining request_pinned_pages on pin/unpin keeps Cache::stats scan-free, the scheduler.rs request-pin sites are consistently paired, and zeroing request_pages and reserved_pages in CopyoutResources keeps decode page crossings out of deferred copy-out retries. A few things need to be fixed before merge:

Blocking

  1. Plain unpin() can corrupt request_pins and request_pinned_pages (helios/src/cache.rs, unpin_with)
    In unpin_with(id, false), the guard only checks direct_pins == 0, not direct_pins == direct_request_pins. If a caller invokes cache.unpin(id) on a checkpoint that holds only a request pin (direct_pins == 1, direct_request_pins == 1), unpin succeeds and decrements direct_pins and pins to 0 while leaving direct_request_pins == 1, request_pins == 1, and its tail pages counted in request_pinned_pages. That breaks the request_pins <= pins invariant: eviction_candidates() can then evict the checkpoint via retire_leaf (permanently leaking request_pinned_pages) or compact it via compact_ancestor (tripping debug_assert_eq!(node.request_pins, child.request_pins)), and a subsequent unpin_request(id) fails with "checkpoint has no direct pin to release".

    Guard the !request branch with node.direct_pins == node.direct_request_pins:

    let node = self.checkpoint(id)?;
    if request {
        if node.direct_request_pins == 0 {
            return Err("checkpoint has no request pin to release".into());
        }
    } else if node.direct_pins == node.direct_request_pins {
        return Err("checkpoint has no direct pin to release".into());
    }

    Adding debug_assert_eq!(node.request_pins, 0); in retire_leaf and cross-kind rejection tests in helios/src/cache/tests.rs (cache.unpin(left_id).is_err() while left_id holds only a request pin, cache.unpin_request(parent).is_err(), and cache.unpin_request on a plain-only pin) will pin this down.

  2. Run mandatory TLA+ lifecycle conformance (verification/helios-lifecycle/check.py)
    Because this PR modifies PrefixCheckpointCache pin/unpin/compaction (helios/src/cache.rs), helios/src/cache/lifecycle_tests.rs, and RequestScheduler admission, inbound restore, boundary publication, and retirement (helios/src/scheduler.rs), docs/design-review.md (Layer 3, current digest c3a9 on main) requires running python3 verification/helios-lifecycle/check.py rather than only cargo test --lib (which emits traces without running TLC). When reporting results, note that CacheOwnership in helios/src/cache/lifecycle_tests.rs exercises plain pin/unpin, while request-pin accounting is covered by the Rust unit tests and Cache::stats scan assertion.

Should fix

  1. Misleading pin-release ordering and comment in RequestScheduler::retire (helios/src/scheduler.rs)
    Moving self.cache.unpin_request(prefix)? above self.slots[handle.slot as usize].request.take() with the comment "so a failed release leaves the request inspectable instead of dropping it silently" is inaccurate: by that point in retire, self.cache.publish_with_retention(...) has already transferred proposal.tail_pages and request.terminal_snapshot into self.cache, and touch/reused/record_publication have already mutated state. Returning Err there would leave the live slot and the cache double-owning those resources. Either validate the request pin before publish_with_retention, or keep unpin_request after take() without claiming the slot remains validly inspectable on failure.

  2. Update PR description evidence

    • Refresh the unit-test command/count (the PR body reports 809 passed vs 814 passed in bca7358; please run --release as well).
    • State directly in the PR description that the RTX PRO 6000 Blackwell live scrape was run on a combined build with #548 and #560 merged, rather than only in a follow-up comment.
    • Re-review against current docs/design-review.md (c3a9) when updating the branch.

Minor

  • In docs/api.md, flare_reserved_kv_pages is described as pages reserved for requests' "growth", whereas admission_pages also reserves unprefilled prompt pages and draft pages — phrasing it as pages reserved for active requests' upcoming prefill, decode, and draft writes (not yet written) is more accurate.
  • Optional cleanup: RequestScheduler::pin_prefix / unpin_prefix are single-purpose wrappers over cache.pin_request/pin and unpin_request/unpin, which in turn wrap pin_with/unpin_with; exposing pin_with/unpin_with as pub(crate) removes the extra forwarding layer.

Admission chose between a request pin and a ticket-parent pin through a private
`pin_prefix`/`unpin_prefix` pair taking the kind as a bare `bool`, a third way to
name a pin kind beside the cache's `pin_request`/`pin` methods and the
`pin_checkpoint` pair. The three admission sites now call the named cache
methods directly, selected by `request_pin`, and the pair is deleted.

`SchedulerStats` construction walks the slot array once, counting active
requests, retiring slots, anchor guards, inbound-phase requests, and request and
reserved pages together. `retire` reuses the prefix and failure state it binds
before publication instead of re-reading the slot before the request-pin release.

Pin and release behavior and every reported statistic are unchanged.

Validation: `cargo check --locked --manifest-path helios/Cargo.toml --features server` passed. `cargo test --locked --manifest-path helios/Cargo.toml --features runtime-core,server --lib -- server:: scheduler:: cache::` reported 809 passed, 1 failed (`messages_image_hints_end_after_expansion_for_text_and_segmented_templates`, which needs FLARE_TEST_TEMPLATE_DIR), 11 ignored, 852 filtered out.

Signed-off-by: Wynn Drahorad <[email protected]>
Design-Signed-Off-By: enterprise/deepseek-v4.1-flash (omp agent); design-review=eb2f
`unpin_request` rejects a release on a checkpoint that holds no direct request
pin, which keeps a double release from corrupting `request_pins` and the
request-pinned page count. No test reached that guard. The branching-pin cache
test now asserts that releasing a request pin on the shared parent, which holds
only descendant request pins, is an error.

`pin_with` and `unpin_with` fetch the pinned node once for both direct counters,
and `unpin_with` reads the checkpoint once for both release guards. The
`debug_assert!` before the ancestor `request_pins` decrement is removed: debug
builds already panic on `u64` underflow, and the test-only drift assertion in
`Cache::stats` checks the request-pinned page count on every read.

Pin behavior is unchanged; the request-pin guard is covered by a test.

Validation: `cargo check --locked --manifest-path helios/Cargo.toml --features server` passed. `cargo test --locked --manifest-path helios/Cargo.toml --features runtime-core,server --lib -- server:: scheduler:: cache::` reported 809 passed, 1 failed (`messages_image_hints_end_after_expansion_for_text_and_segmented_templates`, which needs FLARE_TEST_TEMPLATE_DIR), 11 ignored, 852 filtered out.

Signed-off-by: Wynn Drahorad <[email protected]>
Design-Signed-Off-By: enterprise/deepseek-v4.1-flash (omp agent); design-review=eb2f
The `flare_request_kv_pages` and `flare_reserved_kv_pages` descriptions named
their population as "active requests" in code but "requests owning a model
slot" in `docs/api.md`, and described reserved pages as "not yet written",
although `commit` moves a reservation into a request's private pages before
the GPU writes it. The `docs/api.md` paragraph also documented draining pages
and publication cadence, which no other page gauge there describes.

The `SchedulerStats` doc comments, the metric HELP text, and `docs/api.md` use
"requests owning a model slot" and define reserved pages as pages set aside
for growth that no request holds yet and that `flare_cached_kv_pages` does not
count. The draining and cadence sentences are removed from `docs/api.md`. The
copy-out retry key comment in `runtime.rs` is one line. The branching-request
scheduler test inlines its page sums into the gauge assertions and drops a
comment that restated them.

Gauge values, assertions, and the documented usage ratio are unchanged.

Validation: `cargo check --locked --manifest-path helios/Cargo.toml --features server` passed. `cargo test --locked --manifest-path helios/Cargo.toml --features runtime-core,server --lib -- server:: scheduler:: cache::` reported 809 passed, 1 failed (`messages_image_hints_end_after_expansion_for_text_and_segmented_templates`, which needs FLARE_TEST_TEMPLATE_DIR), 11 ignored, 852 filtered out.

Signed-off-by: Wynn Drahorad <[email protected]>
Design-Signed-Off-By: enterprise/deepseek-v4.1-flash (omp agent); design-review=eb2f
@flare-autobot flare-autobot added area:api Serving API, protocol encoding, tool parsing, and client-visible behavior. area:caching Prefix/KV reuse, cache retention, and model or payload cache behavior. area:memory Memory budgets, allocation lifetimes, scratch sharing, and capacity. enhancement New feature or request triage:review Proposed change needs code review; this does not imply merge readiness. labels Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:api Serving API, protocol encoding, tool parsing, and client-visible behavior. area:caching Prefix/KV reuse, cache retention, and model or payload cache behavior. area:memory Memory budgets, allocation lifetimes, scratch sharing, and capacity. enhancement New feature or request triage:review Proposed change needs code review; this does not imply merge readiness.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Metrics: KV cache usage cannot be computed with vLLM semantics (pages held by active requests are not exposed)

3 participants