Skip to content

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

Closed
midagedev wants to merge 2 commits into
lfm3-landfrom
nv5090-land
Closed

midagedev wants to merge 2 commits into
lfm3-landfrom
nv5090-land

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.

🤖 Generated with Claude Code

…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 built no failure path that the code does not block. The predicate change is small, and the release scripts handle the new archive and the old releases.

Non-blocking

⚠ Speed claim in a doc comment with no evidence on cc 12.0: crates/gpu/src/lib.rs:2202 says the tensor cores take the tile "at a higher rate than the F32 SIMT tile". The PR body says no cc 12.0 card has run it. Cut the clause, or state it with its conditions once a 5090 owner posts gate-gpu-gemm --case dense_mma output.

⚠ dense_mma changes numbers for every build on a cc 12.0 card, not only the new archive: crates/gpu/src/lib.rs:2211. The sm_86 archive, the Docker image and the Homebrew install on a 5090 now round activations to BF16 (prompt path, wide BF16 router). The hw_ gates that hold that band have never run at 12.0. The PR names this gap. Keep the contributor issue open until output arrives.

⚠ crates/gpu/src/lib.rs:2223: the test pins only (8,6), (12,0) and (12,1). The mutant major == 12 → major != 8 stays green. Add one capability from another family, for example ((9, 0), false).

Checked

  • Duplicates: 9 new items checked, none duplicated. set_platform replaces the inline case in build.sh. dryer: 0 pairs in crates/model; crates/gpu read by hand, none.
  • Complexity: crapper flagged nothing.
  • Silent failure: 6 sites followed. Each fallback is named: install.sh sends a failed nvidia-smi query to sm_86, archive sends a 404 to sm_86 with a stderr note, set_platform refuses another arch with rc 64.
  • Tests: dense_mma_on protects lib.rs:2211. The old == (12, 1) turns it red at (12, 0). One mutant stays green (see above).
  • Gates: no band or tolerance moved. The PIN comments changed wording only.
  • Escape catalog: C1 to C4 checked, none matched.
  • Hot path: the diff touches no kernel. No new launch, copy or allocation per token.

Notes

  • No nvidia-smi line, commit hashes or gate output in the PR body, so gpu.json evidence is false.
  • The sm_120a archive was compiled, not run on a 12.0 card. The README and docs/HARDWARE.md say so.

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)

@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: the new commits change one comment block in justfile, and the comment is true.

Since the last review:

  • ⚠ Speed claim in the doc comment at crates/gpu/src/lib.rs: still open. The new commits do not touch it.
  • ⚠ dense_mma changes numbers on every build on a cc 12.0 card: still open. The PR body names the gap.
  • ⚠ Test misses the mutant major == 12 → major != 8: still open. Add ((9, 0), false) to the pinned cases.

Checked

  • Duplicates: 0 new items; the diff is comment lines only.
  • Complexity: crapper flagged nothing.
  • Silent failure: no code changed.
  • Tests: none changed.
  • Gates: none moved.
  • Comment claim: the justfile text says tools/release/build.sh's header names the archs. tools/release/build.sh:9 names sm_120a. True.
  • Escape catalog: nothing in the new lines to match.

Notes

  • No nvidia-smi line, commit hashes or gate output in the PR body, so gpu.json evidence is false.

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

Copy link
Copy Markdown
Owner Author

Superseded by #931: the same two commits rebased onto main after #924 merged.

@midagedev midagedev closed this Oct 28, 2026
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