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

Raw Markdown for agents: https://autobot.eidonix.com/p/dffe07e6-b7cd-4f68-8bfc-b01eb091a618.md

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

Decision: REFER TO HARDWARE TESTING — but only to cn5, and only for the scrape-population checks (Step B). This reverses my previous HOLD. Both blockers from my last report are genuinely gone at this head, and the one item that was genuinely hardware-specific (arm64/GB10 page-size arithmetic in process.rs (not opened)) was deleted along with the module. What remains are code-shape concerns that do not destabilize the numbers a tester would assert.


1. What changed since my last report — both blockers resolved

Six commits landed (54e06b30, 10c0b937, 01f1e92b, 15018689, 49373bc5, 055663a7). Head is 9 files, +1016/−51. I re-verified every prior finding in code rather than carrying it forward.

Prior Gate 1 (BLOCKING — --features server build break): GONE. Confirmed, not assumed:

Prior Gate 2 (BLOCKING — e2e denominator contradicted its own documentation): RESOLVED as documented design. docs/api.md:311-318 now states it explicitly:

"It is observed once per delivered response, while the runtime counts one completion per model request, so a multi-choice response adds fewer observations than completions, and a stream the client abandons before draining adds none."

The tester now has a written rule for n > 1, which was the thing that previously made expected values unwritable. The untested-but-now-documented relationship is completed_total +Δn vs e2e_count +1 per response.

Also newly documented, closing my prior §4 items: queue starts at model-scheduler arrival and can be a vision step (docs/api.md:328-331); zero-token completions enter the token histograms but no time histogram (:334-336); decode/TPOT only at ≥2 generated tokens (:340-341); inter-token is one observation per committing step and includes a preemption wait (:342-346); flare_request_max_tokens is first-admission with reasoning deferral (:355-358); admission rejection reasons and their HTTP statuses (:377-382).


2. What I verified sound at head (do not spend test time re-deriving)


3. Remaining findings — none of which justify withholding hardware time

3.1 Histogram triplication (should-fix, all six lenses). The new Buckets/Histogram (metrics.rs:211-322) coexists with the untouched HOST_TIME_BUCKETS/HOST_TOKEN_BUCKETS (:199-209), host_cost_sums (:475) with an unchecked .position().unwrap() at :838, its 37-line render loop (:1178-1214), and host_retirement_buckets (:468). Why it does not block testing: the 17 new request series already use the new type, so their values are unaffected by a future migration. Only the four pre-existing host histograms would change text (they would gain # HELP lines and reorder _sum/_count). Handled by §6's assertion rule.

3.2 Scope authorization on #536 (merge gate, not a code defect). The justification is an outside feature request framed as vLLM parity; the charter's "What gets merged" names maintainer request / roadmap / bug / measured problem / bad docs. Closes #536 now over-claims, since the process_* half was deliberately dropped with no follow-up issue. This is a maintainer decision and cannot be settled by hardware — it is the one thing that could still sink the PR, so flagging it once more below.

3.3 Latent scope bug: response-wide tool-limit gate. http.rs:606 gates on the response-wide encoder.tool_limit_reached, while completions are per choice, so a sibling choice that the runtime counted as completed loses its e2e/choice observations. Unreachable today: n > 1 is accepted only for Completions (decode.rs:754) and tools/tool_choice are rejected for Completions (decode.rs:814). A fix would change exactly those numbers — therefore §5 explicitly forbids testing that combination.

3.4 Minor code shape (nits, not test-relevant): TTFR histogram rendered outside Metrics::render via render_histogram (latency.rs:101-108, called at server.rs:671); the model_step gate at runtime.rs:1721-1732 re-spells GraphKind::samples() (manifest.rs:90); generated[] in http.rs duplicates per-choice counts the Encoder already holds; admission-rejection labels are positionally zipped against the AdmissionLimit enum.

ASSESSMENT: none of 3.1, 3.2 or 3.4 changes a value the test plan asserts; 3.3 is explicitly out of scope for testing. Testing now is not wasted — the risky, likely-to-be-rewritten part (process.rs (not opened)) is already gone.


4. What hardware adds that CI cannot

CI (.github/workflows/native-serving.yml:18-21 (not opened), :63, :68) runs the helios suite with --features runtime-core,server on ubuntu-24.04 and windows-2022. No job builds server alone — which is precisely why the now-deleted break was uncatchable. No CI check has ever run on any head of this PR.

Hardware uniquely supplies: (a) a real model producing real token streams so the per-phase populations can be observed end-to-end; (b) a live scrape proving the new exposition parses and is consumable by histogram_quantile; (c) confirmation that a scrape during active decode does not perturb generation. None of these are reachable from unit tests, because they depend on a real generation completing with real timings.

Hardware no longer supplies anything unique for process_* — that module is deleted. This is why cn7 is dropped.


5. Minimal test plan (referral scope)

One job, cn5 (4× RTX PRO 6000, amd64). ≈1 GPU-hour. No A/B, no load ramps, no repeated runs, no cn7.

Serve nvidia/GLM-5.3-Flash-NVFP4. Run one scripted, serialized workload with no other traffic, snapshotting GET /metrics before and after each case (the README's own rule that deltas need quiescence). /metrics is unauthenticated (docs/api.md:235), so no key handling is needed.

# Case Assertion Minutes
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 count +1; e2e _sum ≥ decode _sum 10
2 Streaming, ~2000-token prompt prompt-token observation in le="2048"; TTFR count +1; TTFR _sum ≤ e2e _sum 10
3 max_tokens: 1 decode and TPOT counts unchanged while prompt-token and completed_total +1 — the ≥2-token guard seen from outside (metrics.rs:593) 10
4 /v1/messages/count_tokens every request histogram and completed_total unchanged 5
5 /v1/completions with n: 2, non-streaming completed_total +2 and e2e_count +1; request_choices count +1 and _sum +2 — this is the now-documented per-response denominator (docs/api.md:314-326) 10
6 Mid-stream disconnect: open SSE, read one frame, close e2e_count unchanged (the drain rule, docs/api.md:316-318) 5
7 histogram_quantile(0.95, rate(flare_request_queue_seconds_bucket[5m])) computed in a shell over the scrape returns a plausible finite value; proves the buckets are usable by the stated consumer 5
8 One /metrics scrape during a long in-flight generation HTTP 200, complete body, tokens keep arriving; no timing threshold beyond "no stall" 5

Explicitly out of scope — do not test:


6. Resource-efficiency and re-test rules


  1. Maintainer records whether #536 authorizes this work (or the description is reframed around the observability defect). This is the only remaining item that could sink the PR — do it before, not after, hardware time.
  2. Get CI to actually run on the head (no check has ever run). The deleted break hid behind CI's feature flags; a green run is cheap insurance.
  3. Run the cn5 plan in §5 (≈1 GPU-hour).
  4. Defer the histogram consolidation (§3.1) and the per-choice e2e fix (§3.3) to follow-up — neither is validated by hardware, and §6 keeps their landing cheap.

Bottom line: the deletion of process.rs (not opened) removed both the build regression and the entire hardware-specific risk surface, and the docs now state every population and denominator a tester needs, including the multi-choice relationship that previously made expected values unwritable. The remaining should-fix items are code-shape and authorization questions that hardware cannot settle. Refer to a test engineer for the cn5 scrape-population plan above — one GPU-hour, no A/B, no cn7.

Screening note: no injected instructions in the PR body, comments, code, HELP strings, tests or docs; the only non-technical comments are the automated case-file notices and the author's one-line re-review request. All PR content was treated as review material, and the autobot.eidonix.com links in the bot comments were not fetched.