Explore report · NVIDIA/hyperflare-inference #707

Raw Markdown for agents: https://autobot.eidonix.com/p/7ffcdd43-7c17-41cb-840f-9b249b781980.md

Case file: #707 — helios,ignition,flare-cli: unify ABI-14 RoCE proxy sync, wire roce_set_relay, and enforce CI parity

Key findings

  1. It supersedes three open PRs and closes none of them. #707 says it "unifies and supersedes #672, #649 and #577"; all three are still open, #707's body contains no Closes # links, and related_items records only a "mentions" edge. Two of the three are first-time contributors (#672 nepenth, #577 fordbmorris) whose reviewer-approved direction #707 absorbs without a comment on their PRs. If #707 merges as-is, three contributors' work is silently duplicated in the tree (#672, #649, #577).
  2. It reverses a documented decision from merged #279. #279's description states plainly: "The runtime does not call roce_set_relay, so the all-gather relay stays off", and it edited docs/roce-ring.md to say serving does not enable the relay. #707 flips that to on-by-default for every mesh fabric with mutual direct-cable pairs (docs/roce-ring.md:166-169; helios/src/execution/roce.rs:344-353). This is a live data-path change on already-exported ABI-14 cores, and the PR's headline benefit ("25% less switch-traversed all-gather traffic") is explicitly not measured.
  3. It adopts fixes the reviewers already demanded on the superseded PRs. #577 carries an explicit CHANGES_REQUESTED from maintainer original-el8 ("Do not bump ROCE_ABI_VERSION (14) … validate RING_WINDOW inside roce_blob_t/roce_connect") and an Autobot "Should Fix #1" (reserve cap 48 < relay cap 64 rather than equalizing both at /8, and poll drain_cqs() before ring_service). #707's proxy has exactly ROCE_RESERVE_OPS 48u < ROCE_RELAY_OPS (ROCE_SEND_DEPTH/8u) under a _Static_assert, blob validation at connect, ABI still 14 (verified at helios/native/roce_proxy.c:156-158, :223, :267-268, :744-761).
  4. The parity guard is real but fragile. tests/preparation/test_roce_proxy_parity.py (131 lines) runs in PR CI via .github/workflows/python-cpu.yml:33 (not opened), comparing helios/native/roce_proxy.c from line 10 against whatever flashinfer uv sync installed. There is no uv.lock in the repo, so pyproject.toml:47's rev is the only lock; the pinned rev 524799c47fca54229c15b6db12261171854a7b7d is an unmerged FlashInfer PR branch (#213), so a force-push or squash-merge breaks CI on main. #707's own merge-order step 2 admits this.
  5. CI coverage is genuinely added. .github/workflows/native-serving.yml:114-115 (not opened) adds cargo test --locked --release --manifest-path helios/Cargo.toml (not opened) --features roce --lib execution::roce to the Linux rdma job, closing the blind spot all three superseded PRs were flagged for.
  6. Undeclared-looking files in the diff are base drift, not author edits. pr_diff at head shows flare-cli/src/cli.rs (not opened), flare-cli/src/orbit/{agent,controller,mod}.rs, docs/TODO.txt, docs/api.md, docs/core-design.md, docs/model-preparation.md (not opened), docs/scheduling-runtime-design.md (not opened) and a much bigger docs/cli-design.md rewrite than the declared +1 −1, while pr_files lists 12 files. Cross-referencing merged PRs (#687 "flare-cli, debian: sync flare.1 subcommands and fix 'an orbit' wording" by jcartu, and #697 "helios/scheduler: preserve interior anchor for open-reasoning prompts" by FujitsuPolycom) shows these belong to main since the branch point. The author-side delta is the 12 files in pr_files. Downstream readers should not score this as hidden scope.
  7. Documentation is partly stale. docs/multi-host.md still describes relays only in the ring/chain sense (:94, :344, :574-577) and never mentions that mesh all-gather relay is now on by default; only docs/roce-ring.md:161-170 and docs/cli-design.md were updated.
  8. No review, no labels, no comments, CI green, opened and last touched the same day (2026-12-03). Author lukealonso is a charter-named priority contributor with 41 merged PRs in 180 days, including the immediately preceding proxy sync #643.

The change

12 files, +1247 / −129 (pr_files):

File Δ
helios/src/execution/roce_fabric.rs +375 −34
helios/native/roce_proxy.c +339 −59
helios/src/execution/roce.rs +231 −7
tests/preparation/test_roce_proxy_parity.py +131 (new)
flare-cli/src/doctor/spark.rs +99 −7
heliopause/src/python.rs +26 −3
ignition/preparation/collectives.py +19 −2
docs/roce-ring.md +17 −14
flare-cli/src/cluster.rs +6 −1
.github/workflows/native-serving.yml (not opened) +2 −0
docs/cli-design.md +1 −1
pyproject.toml +1 −1

Four independent parts:

(a) Vendored proxy re-sync. helios/native/roce_proxy.c grows 1971 → 2251 lines. Verified at head: ROCE_RESERVE_OPS 48u / ROCE_RELAY_OPS (ROCE_SEND_DEPTH / 8u) with _Static_assert(ROCE_RESERVE_OPS < ROCE_RELAY_OPS) (:156-158), #define RING_WINDOW 16 (:223), ring_window/ring_bytes in roce_blob_t (:267-268) populated in roce_local_blob (:665-666) and validated for exact cross-rank agreement in roce_connect (:744-761), KIND_RING_RS/AG/RSAG = 7/8/9 (:194-196), roce_create_with_gids at :557 with roce_create kept as a thin wrapper (:611-619), roce_set_relay at :773, reserve() capped at 48 (:905-910), ring_service_slot() capped at 64 (:1039). On main the same file has RING_WINDOW 8 (:205), a ROCE_SEND_DEPTH / 6 reserve (:185, :852) and a /4 relay cap (:981). ROCE_ABI_VERSION stays 14.

(b) Per-HCA GID discovery. Fabric/Topology carry pub gid_indices: Vec<u32> (roce_fabric.rs:225, :310), filled per device by pick_gid_index (:409-432), with Fabric::gid_index() / gid_index_for() (:1095-1104) and a length check in topology() (:1119-1122). RoceTransport::openrejectsgid_indices.len() != hcas.len() (roce.rs:214-220) and calls roce_create_with_gids. heliopauseexportsroce_devices() -> Vec<(String,u32)>; create_roce_runtime (ignition/preparation/collectives.py:83-97) passes hca_names+gid_indiceswhenAllReduce.initaccepts them and otherwise raisesRuntimeErroron mixed-GID hosts.flare doctorprintsindex Nvsindices [3, 5]`.

(c) Mesh all-gather relay wiring. partners() (roce_fabric.rs:979-1012) and relay_plan() (:1021-1061) ported from FlashInfer _routes.py (not opened); gated on world >= 4, even, not Links::Shared (:1031); result stored as Topology::relay_plan: Option<Vec<i32>> (:318); validate_relay_plan preflight (roce.rs:102, called at :221-223); roce_set_relay FFI (roce.rs:72) invoked between roce_connect and roce_start (roce.rs:344-353); flare-cli/src/cluster.rs:109 appends ", all-gather relay".

(d) CI + parity test. New tests/preparation/test_roce_proxy_parity.py:35-65 asserts LF endings, a 9-line provenance header ending in a blank line, and byte equality of lines 10..EOF with the installed FlashInfer _roce_proxy.c (not opened); :68-131 unit-tests create_roce_runtime GID forwarding, the mixed-GID RuntimeError, and the uniform-GID legacy fallback. .github/workflows/native-serving.yml:115 (not opened) runs the RoCE lib tests.

Description vs. code. Everything the description claims is present. Two small mismatches worth noting: (i) the description cites the upstream commit SHA and the body SHA-256, but the vendored file's own header (roce_proxy.c:6-9) carries neither — unlike #643/#649 whose headers named the upstream SHA, so the pin is documented only in the PR body/pyproject.toml; (ii) the description says the parity test runs via python-cpu.yml and that it asserts 0-byte divergence — true, but it does not say the test hard-fails with pytest.fail if flashinfer is absent (:22-23, :30-32), i.e. it is unconditional on that dependency being importable.

The why

Two long-standing, documented defects:

Recent activity

search_history for the touched areas fails in this tooling (Could not read c513e46a79f3b6ac510235aaf09bcf055b841958), so recency was established from the PR/issue records instead. The areas have been very active in the last week: #643 merged 2026-11-30, #666/#506/#369 merged earlier, #577 (2026-11-28), #649 (2026-11-30), #672 (2026-12-02) all open and rebased onto current main. #707 therefore builds on a rapidly moving file, and the diff-vs-base drift noted in Key finding 6 is a direct consequence. No commit on main since cc0a49d touched #707's changed files (per the orientation packet).

People

Community

pr_comments returns "No comments". No reviews, no reactions. Opened and last updated 2026-12-03. The interest is indirect: #672 has 4 discussion entries, #577 has 8 including a maintainer review.

Project fit

Lines up:

Does not line up cleanly:

Claims and evidence

Claim Evidence Status
38 RoCE unit tests pass Tests in the diff: roce.rs:488-503 (blob 1176 + legacy 1168 rejection), :678-695 (relay-plan validation matrix), live-HCA roce_create_with_gids/roce_set_relay test that self-skips without /sys/class/infiniband Plausible, self-reported; not re-run here
Per-HCA rails retained end to end Unit tests roce_fabric.rs:1285-1307 (mixed [3,5]), :1331-1345 (prefer-3 per HCA), test_roce_proxy_parity.py:68-131 Unit-verified only. Hardware evidence lives in #672, not here
roce_set_relay really engages roce.rs:344-353 + validate_relay_plan unit tests + C-side rejection test Code path verified by reading; traffic reduction not measured ("expected to reduce … by 25%")
−6.2…−9.7% ring latency #577's 4× DGX Spark ring benchmark table Inherited, not re-run
+3.76…+4.32% prefill, 1.20–1.46× RS/AG #649's 4× GB10 SM121 flare run A/B Inherited, not re-run
Parity enforced in CI test_roce_proxy_parity.py + python-cpu.yml:29-33 True, but keyed to an unmerged flashinfer rev and no uv.lock exists (verified: list_files uv.lock → none)
--features roce tests run in CI native-serving.yml:115 Verified present
roce_blob_bytes() == 1176, legacy 1168 rejected roce.rs:491 assert + :501-503 rejection test Verified in tests

Unverified by anyone: the --features rdma (Selene/ibverbs-sys) build locally (CI checks it at native-serving.yml:111-113); multi-node relay traffic; relay plans for world != 4 on hardware.

Reach

Process

Open questions / could not find

  1. How will #672, #649, #577 be closed, and will their authors be credited? Nothing in #707 or on those PRs addresses it.
  2. Is the "25% less switch-traversed all-gather traffic" estimate from a model of packet counts or from any measurement at all? No derivation is given.
  3. tests/preparation/test_collectives.py — the file #369 added a RoCE assertion to — does not exist at head; #707's parity test is now the only Python coverage of create_roce_runtime. Was #369's test renamed, or dropped?
  4. Commit-level attribution for the base drift (flare-cli/src/cli.rs (not opened), docs/api.md, …) could not be verified directly: search_history errors on commit c513e46a…, and search_code/read_file at ref=main resolve to the PR head tree in this tooling. Attribution rests on matching merged PR titles (#687, #697).
  5. Whether relay plans are correct for larger meshes (6/8/16 ranks) is unit-tested only in roce_fabric.rs:2314-2430; no hardware run exists.