Pre test report report · NVIDIA/hyperflare-inference #548

Raw Markdown for agents: https://autobot.eidonix.com/p/9eaadcaf-7af8-4c66-bb6a-88f31d80a177.md

Pre-test report — PR #548 "Add per-request histograms and vLLM-parity request metrics" (fifth revision, head 6624592)

Decision: REFER TO HARDWARE TESTING — cn5 only, ≈45–60 minutes, 8 cases. No cn7. No throughput A/B. The previous report's verdict stands and is stronger: the newest commit is behaviour-equivalent and closes no gate, both earlier blockers remain resolved, and the author's live validation has since demonstrated the change's positive population arithmetic on real hardware. What is left for a tester is narrow and irreducible — the exclusion semantics, the only claims neither unit tests nor the author's scrape exercise.

1. What the newest commit changed, and why it is safe

Commit 66245920 touches only helios/src/server/runtime.rs, two hunks.

Hunk 1 — runtime.rs:1721-1723: an inline matches! over seven graph kinds became if kind.samples(). GraphKind::samples() (execution/manifest.rs:90-101) is exactly those seven kinds (different order) and already means "this graph samples from logits" at manifest.rs:944, execution/transport.rs:1319 (not opened)/:1334, runtime.rs:2948. Exact population match, −9 lines. The different six-kind block at runtime.rs:1669-1677 correctly stays (no Resume), since prefill must be zero for a resume graph.

Hunk 2: the first_scheduled_ns stamp moved from just after scheduler.commit to after input packing (runtime.rs:2259-2275). Both pack paths (vision :2218-2249, pack_inputs :2250-2258) propagate with ?; Ok(()) at :2276 follows the stamp loop; .filter(|a| a.request == lane.request) at :2266 protects a recycled slot; still one clock read per submission; requests driven directly through reserve_and_pack remain covered. A pack failure propagates out of Worker::run and fails every request, so no counted completion can reach request_completed with an unset instant.

Consequence (nit, not a gate): CPU input-pack time is now charged to queue (metrics.rs:581-583) instead of prefill (:584-586). docs/api.md:329-331 stays literally true, but prefill now starts at "inputs accepted" rather than "step committed".

2. Both prior blockers remain resolved (verified, not carried forward)

3. Remaining findings — none justifies withholding hardware time

3.1 Histogram triplication (should-fix; every lens). New Buckets/Histogram<N> (metrics.rs:211-322) coexists with HOST_TIME_BUCKETS/HOST_TOKEN_BUCKETS + .position(...).unwrap() + a 37-line render loop (:199-209, :819-841, :1178-1214) and the hand-written retirement block (:1000-1025). Does not block testing: all 17 new request series already use the new type; a migration would only change the four pre-existing host_* series (gaining # HELP, reordering _sum/_count). §6 forbids asserting those.

3.2 Closes #536 over-claims (merge gate, not a code defect). #536's process_* half was deleted in 54e06b30 with no follow-up issue; the description concedes it is out of scope, so the closing keyword is the only inconsistency. docs/api.md:475-482 also names "vLLM's production metric list" with no version/link/commit, so ~40 rows will silently rot. A maintainer decision.

3.3 Latent scope bug: response-wide tool-limit gate. http.rs:606 gates on the response-wide encoder.tool_limit_reached, while generated[] is per choice (:530) and completions are per choice (runtime.rs:1866, :2029), so a sibling choice the runtime counted as completed loses its e2e/choice observations. Unreachable today: n > 1 only for /v1/completions (decode.rs:753-755 (not opened)) and tools are rejected there (:813-815). A fix would change exactly the numbers a tester would assert, so §5 forbids testing that combination.

3.4 Inter-token histogram saturates where the docs say it matters (new, should-consider). TOKEN_SECONDS tops out at 2.5 s (metrics.rs:226-232), yet docs/api.md:342-346 says the interval spanning a preemption includes the readmission wait. Multi-second waits land in +Inf and are unquantifiable. Extend the top bounds or document the clamp. Not a gate; §6 records it.

3.5 Nits: TTFR histogram rendered outside Metrics::render via render_histogram (latency.rs:101-108 → server.rs:671) while its sibling request_e2e is a Metrics field; generated[] in http.rs:407 duplicates per-choice counts Encoder already holds; admission-rejection labels positionally zipped against AdmissionLimit; ten render()-substring assertions grafted onto unrelated tests; ~76 lines of docs/api.md prose restating # HELP strings.

4. What hardware adds that CI cannot

CI runs the helios suite with --features runtime-core,server on ubuntu-24.04 and windows-2022 plus eos/selene; bucket arithmetic is unit-tested (metrics.rs:1912-1940, :1969-1970, :1985-1991). No CI check has ever run on any head of this PR, and no job builds server alone — which is why the deleted break was uncatchable. Hardware uniquely supplies: a real model producing real token streams so exclusion rules are observable from outside; a live parse and histogram_quantile over the new exposition; and confirmation that a scrape during active decode does not perturb generation. The author's 2026-11-28 scrape already covers the positive arithmetic (24 completions = TTFT and generated-token count deltas; generated-token sum 3,112 = flare_generated_tokens_total; e2e count 22 = delivered responses), so re-deriving that is the wasteful part and is deliberately cut. Hardware adds nothing unique for process_* (module deleted) — hence no cn7; the one formerly arm64-specific risk (page-size scaling) went with it.

5. Minimal test plan (referral scope)

One job, cn5, ≈45–60 min, no A/B, no load ramps. Serve nvidia/GLM-5.3-Flash-NVFP4; serialized workload with no other traffic; snapshot GET /metrics immediately before/after each case and assert deltas, not totals. /metrics is unauthenticated (docs/api.md:235).

# Case Assertion Min
1 Non-streaming, short prompt, max_tokens 32 queue/prefill/TTFT/inference/prompt-token/generated-token/decode/TPOT counts each +1; completed_total +1; e2e +1; e2e _sum ≥ decode _sum 10
2 Streaming, ~2000-token prompt prompt-token observation in le="2048"/le="4096"; TTFR count +1; TTFR _sum ≤ e2e _sum 10
3 max_tokens: 1 and max_tokens: 2 1-token: decode and TPOT unchanged while prompt-token/completed_total +1; 2-token: decode and TPOT +1. Pair them — the negative alone is vacuous (metrics.rs:593) 10
4 /v1/messages/count_tokens every request histogram and completed_total unchanged (http.rs:131, :284-286) 5
5 /v1/completions, n: 2, non-streaming, one prompt completed_total +2, e2e_count +1, TTFR count +1 (docs/api.md:314-318) 10
6 Mid-stream disconnect: open SSE, read one frame, close e2e_count unchanged (docs/api.md:317-318) 5
7 histogram_quantile(0.95, rate(flare_request_queue_seconds_bucket[5m])) computed in a shell plausible finite value; full scrape parses as Prometheus 0.0.4 5
8 One /metrics scrape during a long in-flight generation HTTP 200, complete body, tokens keep arriving; no threshold beyond "no stall" 5

Out of scope — do not test: any multi-choice request that also declares tools (§3.3, unreachable and a pending fix changes the numbers); process_* series; cn7/GB10/arm64; throughput A/B; P99 vs main; sustained load; format=json; the 60 s median window; bucket-boundary math; vision queue semantics (no vision-capable core among the available models); Windows/Linux builds (CI's job).

6. Resource-efficiency and re-test rules

  1. Maintainer records whether #536 authorizes the work and either drops Closes #536 or splits the process_* half into a follow-up issue. This is the only item that could still sink the PR after a successful test; hardware cannot settle it, but it should not gate the job because the result is useful either way.
  2. Get CI to actually run on the head — no check has ever run on any head, and it is the only cover for the Windows leg and the full suite.
  3. Run the §5 plan (~1 GPU-hour).
  4. Defer §3.1, §3.3 and §3.4 to follow-up; none is validated by hardware.

Bottom line: the newest commit is a verified subtraction (kind.samples(), exact population match) plus a behaviour-neutral relocation of one clock read; both prior blockers remain gone; deleting the process collector removed the entire hardware-specific risk surface. The remaining should-fix items are code-shape and authorization questions that hardware cannot answer, and none changes a value this plan asserts. Refer to a test engineer for the cn5 plan above — one GPU-hour, eight cases, no A/B, no cn7.

Screening note: no injected instructions in the PR body, the new author comment, the code, # HELP strings, tests or docs. The only instruction-like text is the repository's own flare-autobot notice offering an #autobot:ignore opt-out and linking to autobot.eidonix.com — repository automation addressed to PR participants; I did not fetch those links and used no content from them. All PR material was treated as review material.