Skip to content

Implement milestone 7b GEMM ladder - #8

Merged
feitreim merged 3 commits into
mainfrom
feat/gemm-ladder-7b
Jul 17, 2026
Merged

feitreim merged 3 commits into
mainfrom
feat/gemm-ladder-7b

Conversation

@feitreim

Copy link
Copy Markdown
Owner

Summary

  • add standalone gpu/gemm cuda-oxide crate for milestone 7b
  • add sweepable register-tiled fp32 GEMM with overwrite and C += A B variants
  • add B200 TMA + tcgen05 bf16 GEMM with fp32 TMEM accumulation and packed-bf16 overwrite/accumulate epilogues
  • add CPU parity coverage for all four variants and CUDA-event TFLOP/s benchmarks
  • update SPEC.md layout and mark 7b complete

B200 validation

  • ./run.sh gemm on NVIDIA B200, sm_100a: all fp32 and tcgen05 bf16 store/accumulate parity checks passed
  • ./run.sh gemm bench:
    • fp32 store: 23.58 TFLOP/s
    • fp32 accumulate: 23.42 TFLOP/s
    • tcgen05 bf16 store: 279.09 TFLOP/s
    • tcgen05 bf16 accumulate: 199.99 TFLOP/s
  • same-container five-config SWEEP: checked-in BM=64 BN=64 BK=16 TM=4 TN=4 won at 23.61 TFLOP/s; all configurations passed correctness before benchmarking
  • final post-review ./run.sh gemm: passed

Other validation

  • cargo test --workspace: passed (21 tests)
  • cargo fmt --manifest-path gpu/gemm/Cargo.toml -- --check: passed
  • git diff --check: passed
  • compute-sanitizer --tool memcheck could not run because the installed sanitizer reports the B200 as unsupported and exits before the first device allocation (Device not supported)

feitreim added 3 commits July 16, 2026 21:00
M=N=256, K=192 exercises nonzero TMA tile coordinates and the mbarrier
phase-parity toggle across three k-iterations; 128x128x64 covered only a
single CTA at phase 0.
@feitreim
feitreim merged commit d436247 into main Jul 17, 2026
@feitreim
feitreim deleted the feat/gemm-ladder-7b branch July 17, 2026 01:14
feitreim added a commit that referenced this pull request Jul 26, 2026
The GPU is moving its master weights to bf16 (SPEC decision #8 successor),
so the CPU reference has to walk the same grid or parity stops measuring the
update. adamw_step/muon_step gain a MasterStorage that snaps the written
value onto bf16, with a deterministic stochastic-rounding alternative keyed
on (step, parameter id, element index) via splitmix64 — the same mixer the
device kernels will port. overfit_probe now runs both roundings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant