Explore report · NVIDIA/hyperflare-inference #725

Raw Markdown for agents: https://autobot.eidonix.com/p/e32049ad-921f-4bee-93fe-88b217c467fe.md

Amendments to the #725 case file — new event: head 8b06cda → da7abad

https://github.com/NVIDIA/hyperflare-inference/pull/725 · perf/roce-rotate-peer-order → main · new head da7abad20ca9468ae0cf5182478f3dd36e63971c (commit da7abad, "build,helios: pin merged flashinfer#221 (3c5c7b148) and sync vendored roce_proxy.c", authored by Jason Cook, 2026-12-04 ~19:07).

Amendments only, in the order of my previous report; anything not listed below is unchanged. All line numbers below are at the new head da7abad, not at 8b06cda (see the remap table at the end).

Key findings (what actually changes)


A. Scale and scope (replaces "Scale: +11/−14 in 1 file" and §1's size paragraph)

pr_files at da7abad: two files, helios/native/roce_proxy.c (+227/−46), pyproject.toml (+1/−1); read_item reports +228/−47.

New code beyond the rotation, all in helios/native/roce_proxy.c:

Added Lines
HAIRPIN_SEG_BYTES (64 KiB), HAIRPIN_MAX_INFLIGHT_SEGS 2, _Static_assert(2 < ROCE_RESERVE_OPS) :206-213
roce_ctx_t fields int hairpin_pacing; uint8_t hairpin_peer[ROCE_MAX_PEERS]; :354-357
roce_set_hairpin_peers() :874-892
peer_outstanding() :1299-1305
post_striped_paced() (per-rail 64 KiB sub-segmentation, round-robin rails, chained readiness flag, 2 in-flight ops per (HCA,peer)) :1307-~1420
two-pass passes/want_paced split in post_pipe_chunk and run_varlen_op :1599-1609, :2112-2130

The description discloses this only as a parenthetical ("Because 3c5c7b148… sits on top of local-inference-lab/flashinfer#220, helios/native/roce_proxy.c also includes the roce_set_hairpin_peers pacing path, which is inactive unless called by a hairpin topology"). The title, Problem and Change sections still describe a rotation-only change, and the description does not say that no code in this repository ever calls it.

The four rotated loops survive unchanged in substance and are now at :1460 (post_op), :1602 (post_pipe_chunk), :1729 (post_credits), :2115 (run_varlen_op) — verified: for (int step = 1; step < c->world; step++) at exactly those four lines.

B. New finding — the pacing path is dead code here (belongs in §1 and §9)

Repo-wide search_code for hairpin at da7abad returns only helios/native/roce_proxy.c (:206,207,212,213,354,355,356,870,874,880,886,887,891,1307,1599,1601,1607,2112,2114,2117) and docs/roce-ring.md:29. search_code "roce_set_hairpin_peers" returns only the definition at :874 and the field comment at :354 — no caller. Nothing under helios/src/, flare-cli/ or ignition/.

Consequences, verified by reading the code:

Two consequences for review:

  1. My core conclusion stands: what actually executes is still only the four-loop rotation, so "the change is exactly what the description says" remains true for behaviour.
  2. The author's benchmark-arm caveat is validated: he argues the switched-mesh path at da7abad is identical to the measured 8b06cdac because roce_set_hairpin_peers is never called on Shape::Mesh. Verified correct.
  3. But the file is byte-parity-pinned to upstream and gate-checked in CI, and this is untestable, unreferenced code duplicating a still-open PR that does have a caller and hardware evidence.

C. Pin blocker resolved; new contention with #731 (replaces the "cannot go green as-is" bullet and the matching §8 caveat)

pyproject.toml:47 at da7abad: flashinfer-python = { git = "https://github.com/local-inference-lab/flashinfer.git", rev = "3c5c7b14886a7b8904e2963f7d678dbf3a4a755e" } (was 1441ce862…, set by merged #707).

D. Retraction (was not in the previous report, but was drafted mid-run — recorded so it is not resurrected)

A draft claim that the push's parity self-check slices at 12 header lines while CI slices at 9 is withdrawn: it was inferred, not observed. Verified state at da7abad: the header is 9 lines (roce_proxy.c:1-9) and satisfies test_roce_proxy_parity.py:17,40-46 exactly. My prior report's §8 statement that the 9-line header requirement is met stands unchanged.

E. Hard gates now MET (replaces the key finding "Claims without evidence: no benchmark, no happens-before analysis", §7's two Tension bullets, the §8 missing-evidence rows, and open question 1)

  1. Charter #210 benchmark gate — met in form. The description's Validation section now carries a 4-node GB10 (SM121) switched dual-rail 200 GbE ConnectX-7 mesh, Shape::Mesh, DeepSeek-V4.1-Flash TP4, unmodified ABI-14 core, main f705086b vs branch 8b06cdac, one cold boot per arm, 0 failed requests on both arms. That is a real A/B on a served workload against main.
  2. docs/design-review.md:252-259 — both limbs present. The happens-before section is in the description, and the A/B serves a multi-GPU exported core across 4 nodes. I verified the gate's text verbatim at this head.
  3. The happens-before analysis is technically sound — I checked every clause against the code:
    • Source-keyed slots, no two senders writing one destination: post_op remote_off :1452 and flags :1453; post_pipe_chunk :1621-1627; run_varlen_op :2096-2097, :2120-2124; credits :1728. ✓
    • Per-QP ordering: each destination uses its own QP (c->hca[h].qp[p][lane], e.g. :1751), so reordering across p cannot disturb a (src,dst,rail,lane) stream; the rotation changes only interleaving between distinct QPs. ✓
    • Ring reassembly is serial-ordered, not arrival-ordered: ring_service sorts inbox slots by descriptor.serial before servicing (:1154-1167, dispatch :1168-1170). ✓
    • Residual gap (minor): rotation also changes which peer's reserve fails first in post_credits (:1738) under QP pressure — error attribution/backpressure point moves, unanalyzed. Not a correctness defect.
  4. The quoted 35-passing execution::roce unit smoke (.github/workflows/native-serving.yml:115 (not opened), added by #707) still cannot reach the four loops without live verbs — but it is no longer load-bearing now that the A/B exists.

F. New finding — benchmark quality (replaces "no numbers anywhere")

Reconstructed from the description's own tables; all means reconcile exactly, so the table is internally consistent.

Clean, non-overlapping per-pass ranges (real wins):

Not clean (the description implies all three prefill rows are wins):

Decode is correctly self-described as neutral: e.g. C=1 main 73.5 / 75.5 vs branch 72.6 / 81.2 — an 11.8% intra-arm pass-to-pass spread, so the quoted +3.23% e2e gain is inside the noise and the author says so.

Methodology weaknesses that survive (this is the fair criticism now, not "no benchmark"):

Mechanism is not instrumented — the real remaining evidence gap:

Verified by search_code at pr/712 head (3605bb0, updated 2026-12-04 18:26, +1597/−116 across 21 files):

So the two PRs are no longer "same four functions": #725's proxy delta is a superset of #712's (post_op, post_pipe_chunk, post_credits, run_varlen_op minus the rotation), while #712 owns all 19 supporting files (helios/src/execution/roce.rs (not opened), roce_fabric.rs (not opened), flare-cli, scripts, docs) and the only call site.

H. Process and community (replaces §10's opening bullet and §6 in full)

At da7abad (updated 2026-12-04 19:07):

I. Charter and docs mapping (replaces §7 wholesale)

Now satisfied (two of my three prior tensions):

New tension — footprint / Subtract-Simplify:

Reviewer recommendation: ask for either (a) #725 reduced to the four rotated loops plus a pin bump justified as satisfying the parity gate, leaving the pacing to #712; or (b) explicit acknowledgement that #725 is now a two-feature PR, a stated merge order with #712, and removal of the dead path if #712 is to land first.

J. Reach and blast radius (amends §9; wire/ABI conclusions unchanged)

Line-number remap for the previous report (head 8b06cda → da7abad)

The absorbed pacing shifted everything below ~line 900 down by ~110–160 lines. Do not reuse the old numbers.

Cited in previous report Was Now
post_op rotation :1298-1299 :1460-1461 (comment :1458-1459, passes/want_relayed :1455-1457, filter :1462)
post_pipe_chunk rotation :1437-1438 :1602-1603 (passes :1599, want_paced :1601, guard :1604, pacing filter :1607)
post_credits rotation :1556-1557 :1729-1730 (ring_relayed branch :1731)
run_varlen_op rotation :1939-1940 :2115-2116 (passes :2112, want_paced :2114, filter :2117)

Re-verified unchanged at da7abad: ROCE_ABI_VERSION 14 :160; ctx calloc :588; ring serial ascending sort :1154-1170; roce_start() :2332; vendored 9-line header :1-9.

Not re-verified at da7abad — do not restate without a check: RING_WINDOW 16's exact line (line 223 is now an unrelated "experimental neighbor transport" comment; RING2_SIGNAL_STRIDE/RING2_MAX_OUTSTANDING sit at :202-203), and roce_layout's world bound (previously :389). One docs claim is verified and still accurate: docs/roce-ring.md:29 still says "ConnectX hardware hairpin forwarding is not implemented", which is consistent precisely because the pacing is dead code (B).

Unchanged conclusions (restated only so downstream does not think they were withdrawn)

Open questions / could not verify

  1. Byte identity with upstream flashinfer 3c5c7b148 — cannot be checked from this checkout; only the pin at pyproject.toml:47 and the 9-line header are visible. If a reviewer can run the preparation env, tests/preparation/test_roce_proxy_parity.py settles it.
  2. Why the pacing is in this PR at all — the description says a re-vendoring from upstream #221 "also includes" it, which implies the upstream body contains it. If so, the same ~150 lines exist upstream with no consumer in this repo; if not, it is #712's code copied in. Not resolvable from the repo. Worth one direct question to the author.
  3. Merge order with #712 and #731 — untested combination (rotation × pacing) and mutually exclusive pin SHAs; no stated plan in either PR beyond the pin-stacking note.
  4. Design-Signed-Off-By trailer — still unverifiable (search_history is broken on this checkout: fatal: cannot simplify commit ef38cb93…); treat the timeline as reconstructed from items_touching and item descriptions.
  5. No CI result exists on da7abad, so no pass/fail claim can be made either way.