Skip to content

ptx-shapes: gemm_iq2s's cc 12.1 pins from the GB10 scan - #829

Merged
juliankang4 merged 1 commit into
midagedev:mainfrom
juliankang4:fix-defect-on-main-gate-ptx
Oct 26, 2026
Merged

juliankang4 merged 1 commit into
midagedev:mainfrom
juliankang4:fix-defect-on-main-gate-ptx

Conversation

@juliankang4

Copy link
Copy Markdown
Collaborator

GB10에서 gate-ptx-spill이 gemm_iq2s 한 행 때문에 빨간색이던 것을 cc 12.1 표의 측정값으로 맞춥니다.

Part of #565.

What and why

just gate-ptx-spill fails on a GB10 at main 895b32d4a5998bdb53fad6e50d76d64ae0c538e5. f5781e1 added the four IQ types' entries to the three cc 12.1 tables with the cc 8.6 values, 0 and 0. Nine of the ten rows hold on cc 12.1. gemm_iq2s does not: it keeps 24 spill bytes and 8 JIT local bytes at sm_121 and sm_121a, and 8 JIT local bytes at sm_86.

This PR re-pins that one row in each of the three tables to the measured values: 24 and 8 in sm_121a-cc12.1.tsv, 24 and 8 in sm_121-cc12.1.tsv, and 0 and 8 in sm_86-cc12.1.tsv (spill bytes, then JIT local bytes), with a PIN(2026-10-26) line each. It changes no code and no other row.

Release notes: internal: the cc 12.1 spill tables match the GB10 scan.

Code shape

  • No second copy. The change edits table rows only.
  • Model code holds only architecture facts. No model or common code changed.
  • Dead code is gone. The change makes nothing unused.
  • No silent failure. No code changed.
  • Comments state what is true now. The three new comment lines are PIN(...) lines, the one form the tables date.
  • No relaxed gate. Each pin is the measured value and carries PIN(2026-10-26): and its reason. No other row or tolerance moved.
  • cargo fmt and cargo clippy are clean on what I touched: the change touches no Rust, so neither ran.

Duplication found or removed (path:line): none.

What I ran

The head is 2698be7814ca044ddf984f8cdeaf8aeb06a0280c, one commit on main 895b32d4a5998bdb53fad6e50d76d64ae0c538e5. On the GB10 described below, I ran just gate-ptx-spill once per table (sm_121a, sm_121 and sm_86), on main and on the head.

On main, all three runs fail:

sm_121a: generate_ds41 gemm_iq2s jit_local=8 pinned=0 ABOVE
sm_121a: generate_ds41 gemm_iq2s spill=24 pinned=0 ABOVE
sm_121a: SPILL arch=sm_121a rc=1
sm_121: generate_ds41 gemm_iq2s jit_local=8 pinned=0 ABOVE
sm_121: generate_ds41 gemm_iq2s spill=24 pinned=0 ABOVE
sm_121: SPILL arch=sm_121 rc=1
sm_86: generate_ds41 gemm_iq2s jit_local=8 pinned=0 ABOVE
sm_86: SPILL arch=sm_86 rc=1

On the head, the three runs end with rc=0:

sm_121a: ptx-spill bin=gate_qwen3vl_tower entries=26 pinned=26 nonzero=none violations=0 PASS
sm_121a: SPILL arch=sm_121a rc=0
sm_121: ptx-spill bin=gate_qwen3vl_tower entries=26 pinned=26 nonzero=none violations=0 PASS
sm_121: SPILL arch=sm_121 rc=0
sm_86: ptx-spill bin=gate_qwen3vl_tower entries=26 pinned=26 nonzero=none violations=0 PASS
sm_86: SPILL arch=sm_86 rc=0

The generate_ds41 summary line on the head ends in violations=0 PASS for all three tables, with entries=461 for sm_121a and entries=452 for sm_121 and sm_86. The gemm_iq2s values it reports are spill=24,jit_local=8 (sm_121a), spill=24,jit_local=8 (sm_121) and spill=0,jit_local=8 (sm_86).

I did not run just contrib-check --tier t0 or the clippy ratchet on this head. No timed run applies: the change edits only the pin tables and no kernel or launch path.

Hardware

NVIDIA GB10, 595.84, 12.1

That is the nvidia-smi line (card, driver, compute capability) from these runs. The container reports CUDA 13.3.1.

AI help

AI 코딩 에이전트가 코드를 작성한 후 설명을 썼고, 테스트를 마쳤습니다. diff 리뷰와 PR 초안 리뷰는 제가 직접 했습니다.

f5781e1 put the four IQ types' card entries into the cc 12.1 tables at
the cc 8.6 scan's values. The cc 12.1 scan on GB10 (driver 595.84, CUDA
13.3.1) holds them for nine of the ten entries; gemm_iq2s keeps 24 spill
bytes and 8 JIT local bytes at sm_121 and sm_121a, and 8 JIT local bytes at
sm_86 on cc 12.1. The bytes are the exact walk's, as for gemm_iq3s: with that
walk compiled out the sm_121a scan holds 0 and 0.
@github-actions github-actions Bot added the tools Tools, recipes, CI and the toolchain: tools/, justfile, .github/, Cargo label Oct 26, 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: The three cc 12.1 pins match the reported GB10 scans and preserve exact spill checks.

Checked

Duplicates: 0 new functions, types or constants; no duplicate keys in the three tables.
Complexity: no changed functions.
Silent failure: 0 new sites; scans still select pins by both PTX architecture and card capability.
Tests: no tests changed. Reported base runs fail and head runs pass for all three tables. The comparator still rejects readings above or below each pin.
Gates: three gemm_iq2s rows changed, each with PIN(2026-10-26), conditions and a reason. All other rows and the cc 8.6 table are unchanged.
Escape catalog: no patterns matched.

Notes

dryer and crapper did not run because no Rust files changed. GPU gate results are author-supplied; this review validated the tables and read the consumer.

🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)

@juliankang4

Copy link
Copy Markdown
Collaborator Author

The review is done and the contribution check passed, so I'm merging this.

@juliankang4
juliankang4 merged commit 5b3e8df into midagedev:main Oct 26, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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