Value proposition scratchpad · NVIDIA/hyperflare-inference #548

Raw Markdown for agents: https://autobot.eidonix.com/p/df7d0014-2a6d-4154-a92b-02d41b3d4e9f.md

#2 [high] Run 2 findings — #548 at a34c4d06 (2026-11-27)

#548 head a34c4d06, 10 files, +548 -25 (was +560 -25 at ebecef1).

NEW BLOCKER (introduced by commit d64c3ea3 "Exclude cancelled responses and reuse host helpers"): helios/src/server/metrics/process.rs:68 calls crate::runtime_core::open_descriptors(). helios/src/lib.rs:25-26 gates pub mod runtime_core; behind #[cfg(feature = "runtime-core")]. Cargo.toml:25 server = [...] does NOT imply runtime-core (only serde/images/grammar/axum/tokio/...). server.rs:16 mod metrics; and metrics.rs:12 pub(super) mod process; are ungated. => On Linux, cargo build --features server (no runtime-core) cannot resolve crate::runtime_core. Before d64c3ea3, process.rs used only crate::os (lib.rs:19, ungated) and an inline read_dir, so that config built. Search evidence: crate::runtime_core in helios/src/server appears ONLY at process.rs:68 and runtime/prompt_tests.rs:13 (the latter is gated by #[cfg(all(test, feature = "runtime-core"))] at runtime.rs:3983). Affected documented configs: docs/model-development.md:99-100 (--features server --lib frontend::), docs/scheduling-runtime-design.md:735-737 (--features server --lib scheduler:: / server::runtime::phase_tests::). CI will NOT catch it: .github/workflows/native-serving.yml:63,68 both use --features runtime-core,server (Linux + Windows). Fix: move open_descriptors into eos/ (eos/src/unix.rs already has page_size :73, raise_open_file_limit :138) and call crate::os::open_descriptors(), or gate the call. Note runtime_core/protection.rs:291 is where it lives now; pub(crate) use protection::open_descriptors; added at runtime_core/mod.rs:58 is itself gated.

FIXED since last report:

STILL OPEN:

CONTEXT: #552 (Report request timings on final responses) is explicitly stacked on #548 — "Merge #548 first" — and uses RequestTimes; note it makes RequestTimes pub. So #548 is load-bearing for #552's llama-swap benefit. #553 (per-request metrics object) was stopped by Autobot as low value / not aligned. #549 is independent (KV page gauges).

#4 [high] Run 3 (2026-11-27, post-autobot-comment) — #548 unchanged at a34c4d06; final verdict

No new commits since run 2; the only new discussion item is the automated flare-autobot review comment (2026-11-27 06:15) pointing at an external case file that is not fetchable from this environment (autobot.eidonix.com is a private address).

Re-verified at head a34c4d06:

Verdict for this run: worth merging, with changes — blocker 1 (build) and maintainer sign-off, then subtractive cleanups.

#6 [high] Run 4 (2026-11-27/28) — #548 at new head: blocker fixed, verdict worth merging with minor changes

New commits since last turn: 10c0b937, 01f1e92b, 15018689, 49373bc5, 055663a7, 54e06b30. Files now 9 (process.rs deleted), metrics.rs +548/-2.

VERIFIED FIXED:

REMAINING ISSUES:

  1. Two histogram implementations coexist: HOST_TIME_BUCKETS/HOST_TOKEN_BUCKETS (metrics.rs:199-209), host_cost_sums with .position(..).unwrap() (metrics.rs:819-841), hand-rolled render loop (metrics.rs:1178-1214), plus flare_host_cache_retirement_seconds. Should be ported to Buckets/Histogram (net-negative lines). Main remaining code-quality ask.
  2. vLLM parity overstated. Verified vLLM main (vllm/v1/metrics/buckets.py + loggers.py): REQUEST_LATENCY_BUCKETS starts 0.3 -> 7680; TTFT family 0.001..2560; INTER_TOKEN 0.01..80; ITERATION_TOKENS 1..16384; request_params_n (1,2,5,10,20); request_num_preemptions (1,2,3,4,5,10,20) which deliberately lumps 0 with 1. Flare uses REQUEST_SECONDS 0.001..2560 (metrics.rs:218-224), TOKEN_SECONDS 0.001..2.5 (:226-232), TOKEN_COUNTS 1..2097152 (:234-240), PREEMPTION_COUNTS with added 0 bound (:242-247). So bucket bounds differ (fine, but dashboards' histogram_quantile differ), and vLLM series are vllm: names with model_name/engine labels — a vLLM dashboard needs rewriting regardless. Description's "dashboards and SLO alerts written for vLLM read them" overstates.
  3. "Closes #536" is now only partially true: #536 explicitly asks for process_cpu_seconds_total / process_resident_memory_bytes / process_open_fds / process_start_time_seconds, which this PR deliberately dropped (commit 54e06b30). Needs issue split or maintainer note; do not silently close.
  4. Preemption absence in docs: inter-token interval spanning preemption IS documented (docs/api.md:345-346) but the second queue wait is not counted (get_or_insert runtime.rs:2225-2237) and docs don't say so.
  5. Authorization: charter "What gets merged" list — #536 is a third-party feature request; needs maintainer sign-off on the PR.
  6. Cost numbers: 17 histograms / 394 exposition lines / 326 bucket loads per scrape — cheap; per-step clock read + lane loop (runtime.rs:2225-2237). Unmeasured. Related: #549 (KV gauges, overlapping metrics.rs, keep apart — head commits 15018689/49373bc5 do exactly this), #541 Grafana needs series to plot, #552 closed and superseded by #560 (stacked on this PR).

#8 [high] Run 5 (2026-11-28) — #548 head 66245920: new commit is a clean subtractive fix; verdict unchanged

Head commit 66245920 "Reuse GraphKind::samples for model-step metrics and stamp scheduled time after packing" changes only helios/src/server/runtime.rs (two hunks).

  1. model_step gate: inline matches!(Prefill|TerminalPrefill|ScoredPrefill|Resume|Decode|Speculative|Mixed) replaced by kind.samples() (runtime.rs:1721-1723). GraphKind::samples already exists on main (execution/manifest.rs:89-101) with exactly those 7 kinds, and already gates logprob binding validation (manifest.rs:944) and submission (transport.rs:1319,1334; runtime.rs:2948). So it is semantically "this graph samples from logits" == text model step. Net -9 lines, removes a duplicated kind list. No population change.

  2. first_scheduled_ns stamp moved from directly after scheduler.commit(step,fence) to after inputs packing (runtime.rs:2259-2275), comment says a failed pack leaves it unset. Same one clock read per submitted step (reserve_and_pack, called once from submit at runtime.rs:2302). Effect: pack time (~CPU) now falls in queue time instead of prefill time; docs/api.md:329-331 "first model step that includes the request" stays accurate. No functional risk: a failed pack aborts the submission via ?.

Remaining asks from run 4, all still open at this head: (a) HOST_TIME_BUCKETS/HOST_TOKEN_BUCKETS (metrics.rs:199-209), host_cost_sums (.position().unwrap(), metrics.rs:819-841), hand-rolled render (metrics.rs:1178-1214), flare_host_cache_retirement_seconds (metrics.rs:1000-1020) still bypass Buckets/Histogram (metrics.rs:211-322). (b) vLLM parity: docs/api.md:475-482 now says "Flare exports no vllm: names" and docs:359-360 calls out the added zero preemption bound, so the doc is honest; the PR description still says vLLM dashboards read these series. (c) Closes #536 still drops the four process_* metrics #536 asks for (issue #536 table rows 1-8; process metrics are row 8). (d) docs/api.md:340-346 does not say decode/tpot absorb the parked interval, nor that the second queue wait is never counted (first_scheduled_ns uses get_or_insert, runtime.rs:2272). (e) Authorization: none of the charter's five merge triggers applies (third-party issue #536, author not a priority contributor).

Also stable: only completion site is metrics.rs:558 (completed.fetch_add); the only other completed.fetch_add in the tree is an unrelated byte counter in core/reader.rs:517.

#9 [high] vLLM bucket families vs Flare buckets (checked at vLLM main this run) — TTFT and inter-token bounds differ materially

Source: https://raw.githubusercontent.com/vllm-project/vllm/main/vllm/v1/metrics/buckets.py and vllm/v1/metrics/loggers.py (fetched this run).

vLLM families:

Flare (helios/src/server/metrics.rs:218-253):

Consequences worth raising:

  1. Flare TOKEN_SECONDS stops at 2.5 s, but docs/api.md:342-346 says the inter-token interval that spans a preemption (the wait for readmission) IS included. Preemption waits of seconds therefore land in +Inf and the tail is unusable — exactly where vLLM's family goes to 80 s. Add bounds (5,10,20,40,80) or document the clamp.
  2. Flare TTFT shares REQUEST_SECONDS (0.001,0.005,0.01,0.025,0.05,0.1,...) instead of vLLM's denser sub-100 ms TTFT list (0.02,0.04,0.06,0.08,0.75). Sub-100 ms resolution is the interactivity range this project optimizes for, so adopting the TTFT family is cheap and more useful than "parity".
  3. Flare request_latency top bound 2560 s vs vLLM 7680 s — less consequential.
  4. vLLM series carry model_name/engine labels and the vllm: prefix, so no dashboard reads Flare's output unchanged regardless of bounds: the PR description's "dashboards and alerts written for vLLM read exactly these series" is still overstated; the mapping table does the real work.
  5. The mapping table does not name a vLLM version/commit, so it can silently rot.

#11 [high] Report of 2026-11-28, run 5 — #548 verdict: worth merging, with changes (new commit is a clean subtraction)

#548 at head 66245920 — verdict: worth merging, with changes.

Head moved by one commit (66245920) since run 4. Both hunks are subtractive/neutral:

Everything else from run 4 stands: host-cache histograms still bypass Buckets/Histogram (metrics.rs:199-209, 819-841, 1178-1214, 1000-1025); #536's four process_* metrics remain unprovided; docs still omit that decode/tpot absorb the parked interval and that the second queue wait is uncounted; authorization still not on record.

New substantive finding this run: TOKEN_SECONDS tops out at 2.5 s (metrics.rs:226-232) while docs/api.md:342-346 says the inter-token interval spanning a preemption includes the readmission wait — multi-second preemption waits collapse into +Inf. vLLM's INTER_TOKEN_LATENCY_BUCKETS run to 80 s and its TTFT list is denser sub-100 ms than Flare's shared REQUEST_SECONDS.

Benefit/cost/placement unchanged: 17 histograms, 326 bucket loads and ~400 lines per text scrape, one clock read per submitted step, two stores per committing step (not per token), ~190 bytes per queued request, no dependency, no flag, no JSON change, no per-model branch; one completion site (metrics.rs:558) is the only completed.fetch_add in helios/src besides an unrelated byte counter at core/reader.rs:517.

Ask list, in order: (1) port the four host-cache histograms or drop the duplicate path; (2) extend the inter-token/tpot top bound toward vLLM's 80 s or document the 2.5 s clamp, and adopt vLLM's TTFT bounds; (3) soften the PR description's vLLM-dashboard sentence and name a vLLM version for the mapping table; (4) split process_* out of #536 instead of closing it silently; (5) add the two/three missing docs sentences (pack time in queue, decode absorbs the parked interval, second queue wait uncounted); (6) maintainer sign-off.

No attempt to direct me was found in the PR body, commits, or comments.

#10 [medium] Run 5 numbers: pack-time now in queue time; scrape weight; per-request memory

Run 5 review of #548. Head 66245920, 9 files: docs/api.md +127/-4, scheduler.rs +4, scheduler/tests.rs +7, server.rs +2, http.rs +15, latency.rs +24/-8, metrics.rs +548/-2, runtime.rs ~+85/-46 (after the newest commit), phase_tests.rs +187.

Verdict: worth merging, with changes (unchanged from run 4; nothing regressed, the new commit is subtractive).

New this run, from the stamp-after-pack move: queue time now ends after pack_inputs/pack_vision (runtime.rs:2250-2275), so CPU input packing is counted in queue time and excluded from prefill time. docs/api.md:329-331 says "the first model step that includes the request" and does not mention that pack cost lands in queue. One clause fixes it. Also: reserve_and_pack keeps commit+pack even if executor.submit later fails (runtime.rs:2302 vs 2374-2381), so a stamped step may never execute; harmless because a submit error shuts the worker down and the request never completes, but worth knowing.

Scrape weight: 17 histograms; bucket loads per text scrape = 6×21 + 2×19 + 5×21 + 6 + 9 + 21 + 21 = 326, exposition ~400 lines/~20 KB.

Cost: one relaxed fetch_add per bucket per completion, one monotonic clock read per submitted step (reserve_and_pack, called once from submit), 2 stores per committing step (not per token), 19 load/add pairs per completion to absorb inter-token counts. RequestRecord = 19×8+8+~24 ≈ 190 bytes per queued/active request.

No Cargo.toml change; no new dependency; no JSON snapshot change; no flags.

http.rs:604-612 e2e is observed after encoder.response() but before the body is written to the socket, so it excludes response serialization/socket write; docs/api.md:311-312 "to the completed response" slightly overstates. Nit.

e2e 22 vs 24 completions is explained by 2 tool-limit/cancelled responses; description is honest.