Repository navigation
Conversation
…pute capability 12 The 5090 (cc 12.0) ran the sm_86 archive through the driver's JIT, so the native block-scaled FP4 and MXFP8 kernels never ran there, and the BF16 dense prompt tile was on for cc 12.1 alone. build.sh gains the linux-x86_64-cuda-sm120a platform (BLOOMERY_ARCH=sm_120a, target/portable-sm120a), install.sh picks it when every GPU is cc 12.0 and falls back to sm86 with one stderr line otherwise, publish.sh carries it (--no-sm120a leaves it out). dense_mma holds on major 12; sm_86 is unchanged. The box built bloomery-serve for sm_120a (`ptx=[sm_120a ]`, checks passed) and its no-jit sm_86 scans equal the base; the 5090 itself is a user's card. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…owner) Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
Verdict: CLEAN: I found no failure path I could not refute in the dense_mma change, build.sh, install.sh or publish.sh; the open points are questions about missing evidence.
Non-blocking
⚠ The BF16 tile now turns on for every cc 12 device, whatever archive runs on it: crates/gpu/src/lib.rs:2210. The sm_86 archive stays the pick for Docker, Homebrew, a release without the new archive, and a machine with a 12.0 card beside another card. On those, a 5090 now runs the BF16 and E4M3 MMA kernels from sm_86 PTX through the driver JIT, and prompt outputs move from the exact F32 bits to the operand band. No cc 12.0 JIT row exists in tools/ref/ptx-shapes/ for these entries, and no one has run them on cc 12.0. Question: is that path intended, or should the sm_86 archive keep the exact products on cc 12.0 until a card gate passes? If it is intended, say so in docs/serving.md next to the sm_120a line, because the output bits change for an existing 5090 user.
⚠ The speed claim in the PR body ("+2 to +13 % [derived]") has no conditions (model, depth, n, card). Derive it from the bytes or launches it comes from, or drop it. Per CONTRIBUTING.md no card evidence is expected here (the box has no cc 12.0 card). The contributor issue is the right place for the numbers.
Checked
- Duplicates: 4 new items checked (
dense_mma_on,set_platform,archive,release_assets); none duplicated. dryer searchedcrates/modelonly, 0 pairs; I Greppedcrates/gpuandcrates/gpu-gatesfor other(12, 1)or GB10-onlydense_mmapredicates and found none left. - Complexity: crapper flagged nothing.
set_platformreplaces an inlinecase, same branches, now self-tested. - Silent failure: 6 sites followed.
nvidia-smifailure, an empty list,N/Aand mixed capabilities all fall to sm_86. A curl failure or non-404 code leaves the sm_120a name, and the download then fails by name.set_platformrefuses another arch with rc 64. The discrete-card act forms are still gated byreservedinwide38.rs:1644, so the new tile does not allocate unplanned memory on a 5090. - Tests: mutant
== (12, 1)turns the new test red at (12,0). Script self-tests cover the platform table, the install pick, the 404 fallback and the asset order. - Gates: no band, tolerance or lint level moved. The PIN comments were reworded only (GB10 to "a compute capability 12 device"); the old dates stay.
- Hot path:
dense_mmais read at load time only; no per-step term. - Escape catalog: C1 to C4 did not match. The
$(curl … || true)inarchivekeeps its code in the substitution; no heredoc or process matching was added.
Notes
- No
nvidia-smiline, hashes or gate output in the PR body or files, sogpu-evidenceis not set. The body says no cc 12.0 card was available.
Card check: needs-gpu. This pull request changes crates/gpu-gates/src/bin/gate_bf16.rs, crates/gpu-gates/src/bin/gate_gemm.rs, crates/gpu-gates/src/bin/gate_hc_gated.rs … and carries no gate run on a card (CONTRIBUTING's evidence list); a maintainer adds gpu-verified after one.
🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)
An RTX 5090 (cc 12.0) runs the sm_86 archive today, through the driver's JIT. Two things follow from that:
Changes:
tools/release/build.sh: new platformlinux-x86_64-cuda-sm120a(BLOOMERY_ARCH=sm_120a,target/portable-sm120a).install.sh: picks it when every GPU is cc 12.0. Otherwise it falls back to sm86 and prints one stderr line.publish.shcarries it, and--no-sm120aleaves it out.dense_mma: on for compute capability major 12. sm_86 is unchanged.Proof:
bloomery-servefor sm_120a:ptx=[sm_120a ],release: checks passed.dense_mma_testspasses. With the old== (12, 1)predicate it fails at (12, 0).--no-jitsm_86 scans equal the base.Not proven here: the box has no cc 12.0 card. A contributor issue asks 5090 users for
gate-gpu-gemm --case dense_mma / nvfp4_native / mxfp8_w8a8output. Predicted prompt gain on NVFP4/MXFP8 folders is +2 to +13 % [derived]; GGUF Q4_K_M is unchanged.Stacked on #924. Merge that first.
This was written with AI help (Claude) and reviewed by the maintainer's lead session.
Rebased onto main (supersedes #925)
The same two commits on main after #924 merged.
hc_gated.rsandgate_hc_gated.rsgained BF16xntext on main naming GB10; their comments now say "a compute capability 12 device", as the rest of this change does. No code line differs from #925.just canon-check origin/main:4 bins, 1726 entries: 1726 identical.tools/gate-batch.sh --tier fixture --ledger gate-gpu-hc-gated gate-gpu-lib:DONE total=2 red=0.🤖 Generated with Claude Code