Re review report · NVIDIA/hyperflare-inference #672

Raw Markdown for agents: https://autobot.eidonix.com/p/27c8496e-c384-43c4-9f94-885f476ca6e6.md

Recommendation: Changes Requested

Commit 5fa291d6 cleanly resolves Round 1's technical and test-coverage issues: per-HCA GID discovery in roce_fabric.rs, single-source-of-truth gid_indices, hard preflight rejection before region mutation in roce.rs, per-HCA sgid_index wiring in roce_proxy.c, preparation wiring via flare_heliopause.roce_devices(), doctor pass/warn formatting, and executable --features roce FFI/preflight tests (35/35 passing) are all verified and sound with no hot-path or wire-ABI regressions. One Round 1 blocker remains open at the merge gate: helios/native/roce_proxy.c is updated ahead of unmerged local-inference-lab/flashinfer#209, violating the repository's byte-identity vendoring rule (helios/native/roce_proxy.c:6-8, docs/roce-ring.md:360-364) and leaving FlashInfer main on the legacy single-GID preparation path until #209 lands. Hold merge until flashinfer#209 merges on FlashInfer main, cite its merged commit SHA, and close the silent mixed-index fallback in ignition/preparation/collectives.py.

Merge Risk

Level: Medium

Walkthrough

Pre-merge Checks

Blockers

  1. Vendored helios/native/roce_proxy.c is updated ahead of unmerged local-inference-lab/flashinfer#209 (helios/native/roce_proxy.c:6-8, 259, 531-595, helios/native/roce_proxy_dlopen.c:7-9, docs/roce-ring.md:360-364, pyproject.toml:47).
    • Verified behavior/impact: Three in-repo contracts require helios/native/roce_proxy.c after its 9-line header to remain byte-for-byte identical to FlashInfer's _roce_proxy.c (not opened) on the upstream dependency (pyproject.toml:47 tracks local-inference-lab/flashinfer branch main). Opening #209 is the right step, but #209 is not yet merged (no merged commit SHA is cited). Merging #672 first forks roce_proxy.c from FlashInfer main (risking silent drift if #209 changes before merge), leaves fresh installs taking the legacy single-GID preparation path in ignition/preparation/collectives.py:92-93, and diverges from the merge-order invariant enforced on #643, #577, and #649.
    • Concrete fix: Merge local-inference-lab/flashinfer#209 onto FlashInfer main first, verify tail -n +10 helios/native/roce_proxy.c has 0 diff bytes against the merged FlashInfer commit, and cite that exact merged commit SHA in the PR description (matching #643).

Should Fix

  1. Fail loudly instead of silently falling back to the first device's GID index on mixed-index hosts when b12x lacks gid_indices (ignition/preparation/collectives.py:80-93).
    • Verified behavior/impact: When "gid_indices" is absent from roce.AllReduce.__init__, lines 92-93 pass {"gid_index": flare_heliopause.roce_gid_index()}, which returns only fabric.gid_indices[0] (heliopause/src/python.rs:697-703, helios/src/execution/roce_fabric.rs:1005-1010). On a mixed-index host (e.g., [3, 5]) running an older installed b12x, preparation silently runs with a single GID index (opening 1 rail or failing on rail 1) while native serving now connects both rails. Additionally, line 81 describes b12x as "pinned", whereas pyproject.toml:47 tracks branch = "main".
    • Concrete fix: Once flashinfer#209 merges onto main (Blocker #1), either pass hca_names + gid_indices unconditionally (preferred — see ## Subtract / Simplify) or call devices = flare_heliopause.roce_devices() before the signature check and raise a RuntimeError in the else branch whenever len({gid for _, gid in devices}) > 1 (directing the user to update flashinfer-python), and update line 81's comment from "pinned" to "installed".

Subtract / Simplify

  1. Drop the inspect.signature compatibility branch and legacy scalar shim once flashinfer#209 merges (ignition/preparation/collectives.py:83-93, heliopause/src/python.rs:669, 693-706, helios/src/execution/roce_fabric.rs:1005-1010).
    • Once local-inference-lab/flashinfer#209 is on FlashInfer main, ignition/preparation/collectives.py:83-93 can unconditionally unpack flare_heliopause.roce_devices() into hca_names and gid_indices, removing an untested dual-path runtime probe. If no external caller depends on flare_heliopause.roce_gid_index(), deleting roce_gid_index() (python.rs:669, 693-706) and Fabric::gid_index() (roce_fabric.rs:1005-1010) also removes the unreachable .unwrap_or(PREFERRED_GID_INDEX) fallback.

Nits

  1. After re-vendoring from merged flashinfer#209, re-run the Rust verification commands with --locked --release (matching CI and #643) and run cargo test --manifest-path heliopause/Cargo.toml (not opened) (not only cargo check).
  2. Consider adding assert!(module.hasattr("roce_devices").unwrap()); to binding_tests::raw_replay_exports_require_qualification_feature (heliopause/src/python.rs:734-750) so the new PyO3 export is asserted by unit tests.

Dropped on verification