Conventions report · NVIDIA/hyperflare-inference #469

Raw Markdown for agents: https://autobot.eidonix.com/p/ec8a457d-0a62-42ae-8349-7e16bc60f823.md

Review of PR #469 — Give GB203 (RTX PRO 4500 Blackwell) its own platform identifier

Lens C — conventions and duplication. All five changed files were read in context, not only the diff, and callers of the changed functions were followed (flare/src/hardware.rs, flare/src/hub.rs, flare/src/catalog.rs, flare-cli/src/orbit/controller.rs, plan.rs, distribution.rs, heliopause/src/export/capture.rs).

Key findings

  1. Blocking: an existing test in flare/ fails, and the PR's evidence cannot have run it. flare/src/catalog.rs:561-567 hardcodes a four-platform branch fixture inside a test that iterates naming::PLATFORMS. Adding gb203 to PLATFORMS (helios/src/core/naming.rs:15) makes the target = "gb203" iteration assert Some(true) against Some(false). PR #300, which added ga102, changed this exact test (+1 −1).
  2. Should fix: the PR removes one copy of the platform mapping and leaves another, now inconsistent, in the same file. flare-cli/src/orbit/gpu.rs:224-231 capability_revision still maps (12, 0) → gb202, while revision() (gpu.rs:297-307) now returns gb203 for 0x2c31. controller.rs:2294 builds CoreNeeds.revision from the core's capability, so a gb203 core is labelled gb202 and plan.rs:695 refuses every GB203 GPU. Orbit placement is therefore still broken for this card, which the description does not mention; its claim that "the CLI and export resolve one PCI id the same way because there is one table" holds for flare run/download and export, not for orbit.
  3. Should fix: the platform name was not propagated to the places that enumerate platforms. flare-cli/src/cli.rs:173 (--revision help) and a doc reflow defect at docs/cli-design.md:885-886.
  4. Nits: the new table test loops the table where a maintainer asked for literal ids; four orbit doc comments still list the platform set without gb203 even though this PR edited docs/orbit.md.

What the PR gets right, and is worth saying because it is the shape the conventions ask for: GB203_DEVICES mirrors GB300_DEVICES/GA102_DEVICES exactly (naming.rs:30, 37, 40), the new contains check sits in the existing chain (naming.rs:47-59) and changes no existing branch, PLATFORMS keeps the array-length-in-type idiom, and the deleted private platform() in gpu.rs was a genuine duplicate of what flare/src/hardware.rs:18-21 already calls ("Single mapping table shared with core export naming") and heliopause/src/export/capture.rs calls directly. The stated drift of that copy is verifiable: it listed only 0x2e12 of the five GB10_DEVICES and listed 0x2bbc, absent from GB202_DEVICES. The "no other device changes label" claim also checks out — 0x2bbc still resolves to gb202 through the capability fallback, already pinned by gpu.rs:347.


Findings

1. Blocking — flare/src/catalog.rs:561-567: platform test fixture not extended for gb203

for target in flare_helios::core::naming::PLATFORMS {
    ...
    let refs = serde_json::from_value(json!({"branches": [
        {"name": "ga102-tp1"}, {"name": "gb10-tp1"}, {"name": "gb202"}, {"name": "gb300-tp8"}
    ]})).unwrap();
    let mut entry = CatalogEntry::default();
    let branches = apply_refs(&mut entry, refs, Some(target));
    assert_eq!(entry.build_target_match, Some(true));
    assert_eq!(branch_platform(select_revision(&branches, Some(target)).unwrap()), Some(target));
}

apply_refs (catalog.rs:304-329) derives platforms from the branches above via branch_platform (catalog.rs:271-280), which searches naming::PLATFORMS. With gb203 in PLATFORMS (naming.rs:15) the outer loop reaches target = "gb203" and computes build_target_match = Some(platforms.contains("gb203")) = Some(false) → the first assert_eq! fails. Even if it passed, select_revision (catalog.rs:292-303) finds no gb203 branch and falls back to branches.iter().next() = "ga102-tp1", so the second assert fails too.

Why it matters: it is a straight CI regression on main once merged, in a crate the PR did not test. The PR's Evidence section runs only --manifest-path helios/Cargo.toml (not opened) ... naming and --manifest-path flare-cli/Cargo.toml orbit::gpu; flare's suite is where this lives.

Precedent: PR #300 ("Recognize GA102 (SM86) as a platform", merged 2026-11-15) modified flare/src/catalog.rs (+1 −1) to add a ga102 branch to this fixture when it added ga102 to PLATFORMS; its description lists flare/src/catalog.rs (modified, +1 -1) among its five changed files. The #221 review (yatesdr, 2026-11-18) likewise treats the shared platform list as something every add must propagate through.

Fix: add {"name": "gb203-tp1"} (or {"name": "gb203"}) to that branch list, and run cargo test --manifest-path flare/Cargo.toml (not opened) catalog before pushing.

2. Should fix — flare-cli/src/orbit/gpu.rs:224-231 + controller.rs:2294: capability_revision is now a disagreeing second copy of the mapping

pub fn capability_revision(major: i32, minor: i32) -> String {
    match (major, minor) {
        (12, 1) => "gb10".into(),
        (12, 0) => "gb202".into(),
        (10, 3) => "gb300".into(),
        _ => format!("sm{major}{minor}"),
    }
}

capability_revision has exactly one caller (search_code finds only controller.rs:2294), and that caller builds the core side of the placement comparison:

let needs = CoreNeeds {
    revision: super::gpu::capability_revision(first.architecture[0], first.architecture[1]),

first.architecture is RankNeeds.architecture, documented as "The compute capability the bundle was prepared for, as (major, minor)" (helios/src/runtime_core/model.rs:129-131). The PR's own premise is that GB203 shares compute capability 12.0 with GB202 (naming.rs:25-30). So a core exported on this card records [12, 0], capability_revision(12, 0) returns "gb202", while the agent reports the same GPU as gb203 (gpu.rs:209 via the now-shared table). plan::unfit (plan.rs:693-696) then rejects it: gpu 0 NVIDIA RTX PRO 4500 Blackwell is gb203, not gb202.

End to end: repository_revision (controller.rs:2210-2233) correctly infers gb203 from the GPU STATUS it was given by the agent, downloads the gb203 core, and placement then rejects every GB203 GPU. flare orbit run — the multi-node path this repository uses for serving — still cannot run a gb203 core. The description says "flare run refuses the same card for the same reason"; the orbit path is not mentioned and is not fixed.

The duplication framing matters here: the PR removes the PCI copy of the table in this very file but keeps the capability copy, so "there is one table" is true only for the paths that go through platform_from_pci (flare/src/hardware.rs:18-21, heliopause/src/export/capture.rs, and now gpu.rs:298). Orbit placement is a third resolution path.

Fix, following the crate's own precedent at flare-cli/src/distribution.rs:159-163, which takes the platform from the signed identity and only accepts it when PLATFORMS contains it:

let platform = if flare_helios::core::naming::PLATFORMS.contains(&signed.hardware.as_str()) { signed.hardware.clone() } else { String::new() };

At controller.rs:2294, take the revision from the core's signed hardware_identity when naming::PLATFORMS contains it, and fall back to capability_revision only for identities such as sm120. That also lets capability_revision shrink to the fallback formatter, removing the last copy of the platform name outside naming.rs.

What would settle it without hardware: a unit test on describe() (or on plan::plan) with a rank architecture of [12, 0] and a GpuStatus { revision: "gb203", .. }; with the current code the plan returns the mismatch error. If a maintainer instead intends orbit placement to be capability-based, that is a deliberate decision worth stating in the PR, because then the exported gb203 core would need a gb202-typed placement too.

3. Should fix — flare-cli/src/cli.rs:173: --revision help text not extended; docs/cli-design.md:885-886 reflow defect

/// Hub revision; uses the model origin when cached, otherwise detects ga102, gb10, gb202, or gb300.

This is the clap help for HubOptions::revision (cli.rs:171-175), rendered by flare download --help and flare run --help. It omits gb203, so the CLI's own help still tells an operator with this card that detection will not find it — while docs/cli-design.md:921, updated by this PR, now lists gb203. PR #300 changed this exact line (+1 −1) when it added ga102; adding a platform has meant updating it.

Separately, the reflow at docs/cli-design.md:885-886 left the word selection alone on its own line:

are separate Hugging Face revisions named `ga102`, `gb10`, `gb202`, `gb203`, and `gb300`. Automatic
selection
queries the selected GPUs' PCI device identifiers through NVML without initializing

The project's writing guidance is against ragged prose in the docs it edits; the neighbouring lines are wrapped to the same width and no other sentence in that paragraph has an orphan word.

Fix: add gb203 to the cli.rs:173 list (and consider ga102 too, which is already there), and reflow that sentence so Automatic selection stays together.

4. Nit — helios/src/core/naming.rs:206-212: looped table test where a maintainer asked for literal ids

for device in GB203_DEVICES {
    assert_eq!(platform_from_pci(device << 16 | 0x10de), Some("gb203"), "{device:#06x}");
}

This mirrors the existing loops for GB202_DEVICES/GA102_DEVICES (naming.rs:199-219), and the PR describes it as the established pattern. But the most recent maintenance review asked for the opposite on the matching new table: PR #221 review (yatesdr, 2026-11-18, CHANGES_REQUESTED), item 2 — "Test the IDs themselves. The test loops over GB300_DEVICES, so it still passes if 0x31c2 is removed from the table. Assert 0x31c2 and 0x31c3 literally."

Mitigating, and the reason this is a nit rather than should-fix: flare-cli/src/orbit/gpu.rs:340 does assert revision(0x2c3110de, 12, 0) literally, so the identifier is pinned at least once.

Fix: add assert_eq!(platform_from_pci(0x2c31_10de), Some("gb203")); next to the loop, as done for 0x31c3 at naming.rs:198.

5. Nit — four orbit doc comments still enumerate the platform set without gb203

These were already missing ga102 (PR #300 says it deliberately left orbit alone), so they are incomplete rather than newly wrong; but this PR edits docs/orbit.md:321 to add gb203 to the same sentence, which leaves the code comment disagreeing with the doc it describes.

Fix: add gb203 to these four lists, or have them name naming::PLATFORMS instead of enumerating.


Coverage

File Verdict
helios/src/core/naming.rs (+18 −1) Follows the established shape (per-die table, contains chain, fixed-length PLATFORMS); only the nit about the looped test. No id is in two tables, so inserting gb203 before gb10 changes no existing resolution.
flare-cli/src/orbit/gpu.rs (+2 −15) The deletion is real deduplication; the two-line replacement matches how flare/src/hardware.rs:18-21 already reaches the shared function. The file's second mapping copy is finding 2.
docs/cli-design.md Correct in substance (:921, and :885 prose); one reflow defect (finding 3).
docs/core-format-design.md Correct; :754 now agrees with PLATFORMS.
docs/orbit.md Correct; :321 now lists gb203, which is what makes finding 5 worth mentioning.

Consumers of PLATFORMS were checked and none needs a further change for a name-only addition: flare/src/catalog.rs:272, 320, flare-cli/src/distribution.rs:159, 720, flare/src/hub.rs:2010, 2027, 2318, heliopause/src/export/conversion.rs:402 (not opened), helios/src/core/naming.rs:80, 122.

Open questions