Skip to content

release: an x86_64 sm_120a archive for the RTX 5090; dense_mma on compute capability 12 - #931

Merged
midagedev merged 2 commits into
mainfrom
nv5090-v2
Oct 28, 2026
Merged

midagedev merged 2 commits into
mainfrom
nv5090-v2

Conversation

@midagedev

Copy link
Copy Markdown
Owner

An RTX 5090 (cc 12.0) runs the sm_86 archive today, through the driver's JIT. Two things follow from that:

  • The native block-scaled FP4 and MXFP8 kernels never run there.
  • The BF16 dense prompt tile is on for cc 12.1 (GB10) alone.

Changes:

  • tools/release/build.sh: new platform linux-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.sh carries it, and --no-sm120a leaves it out.
  • dense_mma: on for compute capability major 12. sm_86 is unchanged.

Proof:

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_w8a8 output. 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.rs and gate_hc_gated.rs gained BF16 xn text 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

midagedev and others added 2 commits October 29, 2026 01:04
…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]>
@github-actions github-actions Bot added documentation Improvements or additions to documentation gpu The card engine: crates/gpu*, crates/app model The CPU engine and model files: crates/model, models, hf, gguf, tokenizer, jinja needs-gpu Changes code a card must check, and carries no gate run on a card tools Tools, recipes, CI and the toolchain: tools/, justfile, .github/, Cargo labels Oct 28, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 searched crates/model only, 0 pairs; I Grepped crates/gpu and crates/gpu-gates for other (12, 1) or GB10-only dense_mma predicates and found none left.
  • Complexity: crapper flagged nothing. set_platform replaces an inline case, same branches, now self-tested.
  • Silent failure: 6 sites followed. nvidia-smi failure, an empty list, N/A and 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_platform refuses another arch with rc 64. The discrete-card act forms are still gated by reserved in wide38.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_mma is read at load time only; no per-step term.
  • Escape catalog: C1 to C4 did not match. The $(curl … || true) in archive keeps its code in the substitution; no heredoc or process matching was added.

Notes

  • No nvidia-smi line, hashes or gate output in the PR body or files, so gpu-evidence is 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)

@midagedev
midagedev merged commit 62c5075 into main Oct 28, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation gpu The card engine: crates/gpu*, crates/app model The CPU engine and model files: crates/model, models, hf, gguf, tokenizer, jinja needs-gpu Changes code a card must check, and carries no gate run on a card tools Tools, recipes, CI and the toolchain: tools/, justfile, .github/, Cargo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant