mirror of
https://github.com/deepseek-ai/DeepGEMM.git
synced 2026-11-05 00:47:26 +00:00
[PR #406] Add SM120 heuristic calibration harness #423
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/DeepGEMM#423
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/deepseek-ai/DeepGEMM/pull/406
Author: @bvolpato
Created: 8/13/2026
Status: 🔄 Open
Base:
nv_dev← Head:bvolpato/calibrate-sm120-heuristics📝 Commits (1)
4c0aac2Add SM120 heuristic calibration harness📊 Changes
7 files changed (+873 additions, -10 deletions)
View changed files
📝
README.md(+5 -1)📝
csrc/jit_kernels/heuristics/common.hpp(+43 -4)📝
csrc/jit_kernels/heuristics/sm120.hpp(+3 -1)📝
csrc/jit_kernels/heuristics/sm120_config.hpp(+8 -4)➕
docs/sm120-heuristic-calibration.md(+79 -0)➕
scripts/calibrate_sm120_heuristic.py(+583 -0)➕
tests/test_sm120_calibration.py(+152 -0)📄 Description
Summary
Adds an SM120 GEMM heuristic calibration script on
nv_dev, addressing #385. It checks and benchmarks valid FP8/BF16 layouts, fits coefficients, and compares layout selection on held-out shapes. The calibration guide documents the existing coefficients' origin, usage, and interpretation.Default coefficients stay unchanged. Measurements from one shared GPU do not justify tuning for the whole SM120 family.
Changes
DG_JIT_FORCE_LAYOUT=BMxBNxBKoverride with valid-candidate and ambiguity checks. It has noDJ_JIT_FORCE_LAYOUTfallback.Usage
After installing NumPy in the development environment:
Testing
The build, calibration checks, and FP8/BF16 runs passed on an RTX 5070 Ti with CUDA 13.2 and PyTorch 2.13.0+cu130:
Python compilation and
git diff --checkpassed. Builds used locally supplied elfutils development headers. SM90, SM100, and SM121 hardware were not tested.Did this cause any problems?
Automatic selection is unchanged when
DG_JIT_FORCE_LAYOUTis unset. The override affects GEMMs in its process, so the harness isolates each candidate in a subprocess.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.