Architecture report · NVIDIA/hyperflare-inference #469

Raw Markdown for agents: https://autobot.eidonix.com/p/645253fd-5062-4ed2-8566-f8cf7e5e85ce.md

PR #469 review — lens B (architecture and scope)

Key findings


Scope and layer

Verdict: in scope, correct layer, no churn. Judged against the charter (read_charter), AGENTS.md, and docs/design-review.md.

The charter says "Solve the right problem in the right place… Look for the smallest footprint in shared code" and "Good ideas in the wrong place will be declined". This is the smallest footprint in the right place:

The separate-variant claim is evidenced, not asserted. ignition/preparation/aot.py:694-697 puts properties.name, major, minor and multi_processor_count into the forward cache key, and ignition/preparation/compilation.py:289-291 folds get_device_capability() and get_device_name(). A 188-SM GB202 cache and an 82-SM GB203 cache are therefore different artifacts; one shared gb202 revision would ship GB202-compiled forwards to GB203 hosts. That satisfies the charter's "Bring real evidence" for a correctness claim. The reported throughput equality (pp 10,275 vs 10,074 t/s, tg 124.1 vs 124.7 t/s) is correctly framed as an expected non-change rather than a win — consistent with "Performance PRs need benchmarks showing an actual speedup"; none is claimed.

Evidence honesty is good. The description separates expectation from measurement, names the limits (only 0x2c31 exercised, no published gb203 revision), and satisfies AGENTS.md:189-194 ("Identify missing hardware, inputs, and unrun checks explicitly"). The Discord contact line is present, as AGENTS.md requires.

Test strength. helios/src/core/naming.rs:206-212 loops GB203_DEVICES and asserts gb203 — the loop-in-table shape yatesdr objected to on #221 ("the test still passes if 0x2c31 is removed from the table"). Here the literal assertion revision(0x2c3110de, 12, 0) == "gb203" covers the gap, so this is not a finding.


Findings

1. BLOCKING — Orbit derives a core's revision from compute capability, so a gb203 core no longer places on a GB203 host

Where: flare-cli/src/orbit/controller.rs:2294, with flare-cli/src/orbit/gpu.rs:222-231 and flare-cli/src/orbit/plan.rs:693-696.

// controller.rs:2293-2294, inside describe()
let needs = CoreNeeds {
    revision: super::gpu::capability_revision(first.architecture[0], first.architecture[1]),

capability_revision(12, 0) returns "gb202". A core exported on a GB203 host carries architecture 12.0 (GB203 shares SM120 with GB202 — the PR's own doc comment at helios/src/core/naming.rs:27-29 says so), so describe() labels that core gb202. Meanwhile Gpu::revision now comes from the PCI table (gpu.rs:209 → gpu.rs:297-307), so the same card's status says gb203. unfit() then compares them:

// plan.rs:695-696
if gpu.revision != revision {
    Some(format!("{name} is {}, not {revision}", gpu.revision))

Why it matters. Two ways, both directly caused by this PR:

  1. Regression. Before this PR, Gpu::revision for 0x2c31 also fell through to capability_revision and returned gb202, so flare orbit run <gb203-tp1-…> on a GB203 host matched. After it, the host is gb203 and the core is still gb202, so the placement that worked now fails. docs/design-review.md:52 — "Retain internal paths required to load and serve previously supported models" — and principle 13 are both touched: a core the PR itself produces cannot be served by the PR's own code.
  2. The rationale is not delivered. The stated reason for a separate revision is that a 188-SM GB202 core must not land on an 82-SM GB203 die. Because describe() still says gb202 for a GB203-prepared core, on a mixed host Orbit would happily place that core on a GB202 GPU — the exact artifact mismatch the PR is written to prevent. The invariant is half-enforced: the GPU side knows the die, the core side does not.

It also contradicts the deletion's stated goal. The PR removes the PCI half of the duplicated table in flare-cli/src/orbit/gpu.rs but leaves the compute-capability half, now used by exactly one caller (capability_revision appears only at controller.rs:2294 — searched). A second, disagreeing source of the core's hardware identity survives.

Fix. Read the core's revision from its signed hardware identity, and drop the capability mapping to a legacy fallback:

What would settle it: a test that builds a local core (payload format, hardware_identity = "gb203", architecture 12.0) and runs it through describe() against a GpuStatus { revision: "gb203", .. }; today it produces gb202 and unfit returns "is gb203, not gb202". I could not run it here; the code path is unambiguous from the two functions cited.

2. SHOULD FIX — flare run ORG/MODEL on this card now requests a Hub revision no repository publishes

Where: flare/src/hub.rs:241-246.

let (id, given_revision) = repository(source)?;
let revision = match options.revision.as_deref().or(given_revision) {
    Some(revision) => revision.to_owned(),
    None => crate::hardware::detect(gpu_count)?.to_owned(),
};

No fallback is attempted: the detected revision is used verbatim. flare/src/hardware.rs:18-21 forwards to naming::platform_from_pci, so on an RTX PRO 4500 detect() now returns gb203. The description states plainly that "no gb203 revision exists on any published repository yet, so download selection for it has not been exercised against a real hub."

Why it matters. This is not an unknown test gap; it is a predictable code outcome. flare run ORG/MODEL on the card this PR supports goes from resolving a gb202 branch that the author measured serving this card at identical throughput, to requesting a branch that does not exist. The disclosure satisfies AGENTS.md:189-194 and design-review principle 12, so the finding is not about concealment — it is that landing order matters and the description does not say so. Compare the charter: "Bug fixes need to address the root cause; don't just swallow, skip, or retry an unexplained error" — the mirror rule is also true: don't ship a rename that turns a working default into a failing one without stating the ordering constraint.

Fix. One of:

I would not ask for a fallback in code here: an automatic gb203 → gb202 retry would violate "don't silently substitute execution paths" (AGENTS.md:178-182) and would reintroduce the artifact-mismatch the PR is avoiding.

3. NIT — the platform lists in the Orbit and CLI sources were not updated with the docs

Where: flare-cli/src/orbit/gpu.rs:38 (Gpu::revision doc: "gb10, gb202, gb300, or sm{major}{minor}"), gpu.rs:222-223 (capability_revision doc, same list), flare-cli/src/orbit/plan.rs:38-39 (Needs::revision doc, "gb10, gb202, gb300, or sm{major}{minor}"), and flare-cli/src/cli.rs:173 — clap help text: "otherwise detects ga102, gb10, gb202, or gb300."

The description says the platform-name lists in docs/cli-design.md, docs/orbit.md and docs/core-format-design.md were updated (they were: docs/cli-design.md:885,889,921, docs/orbit.md:321, docs/core-format-design.md:754), but the four lists in the source were missed. cli.rs:173 is what flare run --help prints, so this one is user-visible and already omitted ga102 before this change.

Fix: add gb203 to the three Rust doc comments and to the --revision help string. Cite AGENTS.md "Required prose review" and design-review principle 16; severity nit because nothing branches on the prose.


Checked, not findings

Open questions

  1. Does a GB203 host ever run flare orbit run with a local core? If that workflow is out of scope for this card, finding 1 downgrades to should-fix — but the mixed-host mislabelling (a GB203 core accepted on a GB202 GPU) survives either way, and it is the case the PR's rationale is written about.
  2. Merge order against a published gb203 branch (finding 2). Who publishes it, and does this PR wait? The author could not test it, and I cannot from here.
  3. The author has no prior merged PRs in this repository (orientation packet: 0 merged, 0 closed, 0 open), and the change touches the shared naming table that #221 is also modifying. Someone with merge access should confirm #221 and this PR do not conflict on naming.rs — I could not check the two diffs against each other from the local copy beyond noting both add a device table.

What I could not verify