Final review report · NVIDIA/hyperflare-inference #731

Raw Markdown for agents: https://autobot.eidonix.com/p/3c0b0f5e-dc32-41e6-8a28-a4986b0b330b.md

Recommendation: Changes Requested

This one-line pin bump in pyproject.toml:47 is cleanly scoped, charter-aligned ("pin dependencies to exact versions or commits"), and solves the Qwen4-35B-A3B 2:1 GDN head-ratio check in the right layer (upstream FlashInfer rather than per-model runtime code) with zero verified code defects and full backward compatibility for existing exported cores. However, merge is blocked by one hard verification gate: the PR explicitly skips this repository's runnable CPU test suites ("Not run: this repository's test suites"), leaving its load-bearing claim that helios/native/roce_proxy.c needs no re-vendoring unverified against tests/preparation/test_roce_proxy_parity.py, which docs/design-review.md:247-251 makes non-waivable.

Merge Risk

Level: Medium

Walkthrough

Pre-merge Checks

Blockers

  1. Unrun mandatory CPU verification gate & unverified RoCE proxy parity (pyproject.toml:47, tests/preparation/test_roce_proxy_parity.py:35-65, docs/design-review.md:180-186, 247-251, docs/roce-ring.md:361-365):
    • Verified gap: Moving [tool.uv.sources].flashinfer-python.rev changes the prepare extra installed by .github/workflows/python-cpu.yml:29-33 (not opened), which runs tests/preparation/test_roce_proxy_parity.py:35-65 (test_vendored_roce_proxy_is_byte_identical_to_pinned_flashinfer) to enforce 0-byte divergence between helios/native/roce_proxy.c (lines 10..EOF) and the installed FlashInfer's _roce_proxy.c (not opened). The PR makes the load-bearing claim that "Neither commit changes the RoCE proxy source vendored in helios/native/roce_proxy.c, so no re-vendoring is needed", while explicitly disclosing "Not run: this repository's test suites".
    • Hard gate: docs/design-review.md:247-251 explicitly prohibits waiving runnable CPU checks via disclosure: "Disclosure does not excuse skipping runnable CPU checks. All three layers run without a GPU or model checkpoint. Leaving an applicable crate test, simulator sweep, TLA+ conformance run, or Kani proof unrun blocks commit and PR acceptance; noting it as a limitation does not make the omission acceptable."
    • Fix: Sync the preparation/test environment at 6aff33c4 and run the CPU preparation suite (matching .github/workflows/python-cpu.yml:26-33 (not opened)):
      BUILD_NVEP=0 FLASHINFER_BUILD_NO_PIP=1 uv sync --extra prepare --extra test
      CUDA_VISIBLE_DEVICES="" .venv/bin/python -m pytest tests/preparation/ -q
      
      (at minimum verifying tests/preparation/test_roce_proxy_parity.py passes with 0-byte diff) and record the result in the PR description. If _roce_proxy.c (not opened) diverged in 6aff33c4, re-sync helios/native/roce_proxy.c below its 9-line provenance header.

Should Fix

None.

Subtract / Simplify

(Pre-existing cleanup around this pin; non-blocking and best handled in a small follow-up PR so #731 stays minimal.)

  1. Remove dead uv.lock and main-tracking documentation (docs/core-design.md:381-385, docs/model-preparation.md:103-105, 146-156, docs/roce-ring.md:334, THIRD_PARTY_NOTICES.md:60, docs/api.md:1099 (not opened)): Neither uv.lock nor .github/workflows/track-flashinfer-main.yml (not opened) exists in this repository, and pyproject.toml:47 pins an exact git rev rather than tracking main (making the documented uv sync --locked --extra prepare --extra test and uv lock --upgrade-package flashinfer-python commands unusable). Collapse these references to point directly at the exact rev pin in pyproject.toml:47 and uv sync --extra prepare --extra test. (Keep AGENTS.md:256, which accurately refers to local-inference-lab/hyperflare-recipes's uv.lock.)
  2. Simplify or remove scripts/setup_preparation.py:4, 17-28 (and its test tests/preparation/test_setup_preparation.py:21-30): Its --upgrade-package flashinfer-python flag and "Update FlashInfer" docstring cannot advance past an exact rev pin in pyproject.toml:47. Either delete the wrapper and document BUILD_NVEP=0 FLASHINFER_BUILD_NO_PIP=1 uv sync --extra prepare --extra test, or drop --upgrade-package and re-title it as a local sync/rebuild helper.

Nits

Dropped on verification