Repository navigation
[CUDA] Add SM120 NVF4 block-scale MMA support #2364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
LeiWang1999
merged 45 commits into
tile-ai:main
from
qqq-tao:nvf4-block-scale-sm120-pr-clean
Jul 30, 2026
Merged
Changes from 1 commit
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
4de007e
Add SM120 NVFP4 blockscaled GEMM support
be805b1
Address SM120 NVFP4 review cleanup
0ce22e8
Remove SM120 private C-fragment store helpers
2bdaffb
Unify SM120 blockscaled MMA TIR helper
e84c318
Clean SM120 NVFP4 blockscaled fast path
c450de2
Prune SM120 NVFP4 debug lowering paths
850ebe2
Simplify SM120 NVFP4 blockscaled example
d4c646e
Remove SM120 fulltile debug macros and compile flags
1a1062d
Fix TensorCoreIntrinEmitter.mma base signature regression
66c8a30
Pin scale layout byte-compat with CuTeDSL blocked SF layout
3e4984e
Remove unreachable SM120 blockscale exploration code
be668c6
Scope shared-memory bit-exact sizing to packed scalar NVFP4
9c673b5
Add T.copy_ue4m3_scale_tile scale staging helper
790a3f0
Support M or N tail tiles in the SM120 NVFP4 example
f681a83
Slim tilelang/quantize/nvfp4.py
831652e
Converge quantizer kernels and drop example debug input modes
87d99c2
Keep tilelang.quantize to device helpers and format contract
cb81c7e
Import layout oracle from the nvfp4 submodule in the language test
c48e373
Group SM120 NVFP4 maint files and use native target API
c1ae801
Keep NVFP4 scale staging out of the tilelang.language surface
d3de762
Merge origin/main into nvf4-block-scale-sm120
1784d83
Drop stale scale-load metadata from the SM120 WS benchmark
317455c
Strip trailing blank lines left in gemm_op.py
b6f70a4
Trim the SF staging comment to the load-bearing caveat
c34e750
Consolidate NVFP4 tests into a single file
fceddda
Merge origin/main (language dialect split) into nvf4-block-scale-sm120
4ceee6c
Evaluate emitter dtype defaults lazily under the dialect facade
1fce4e9
Restore the scale-layout contract tests; keep the example CLI file fo…
97abc1f
Merge remote-tracking branch 'origin/main' into pr-2364-main-merge
LeiWang1999 70dec36
refactpr example
LeiWang1999 679f5f2
[SM120] Simplify NVFP4 benchmark
LeiWang1999 3c6cecc
[SM120] Simplify NVFP4 correctness comparison
LeiWang1999 5933fc9
[SM120] Inline NVFP4 quantizer pass configs
LeiWang1999 3e774df
[SM120] Move block-scaled MMA helper to instruction headers
LeiWang1999 53e3f20
[CUDA] Fix packed FP4 address codegen
LeiWang1999 2d69257
[SM120] Simplify NVFP4 lowering internals
LeiWang1999 d6a230d
[SM120] Generalize NVFP4 block-scaled MMA lowering
Rachmanino f29a144
[SM120] Fix package macro source test
LeiWang1999 bef4aff
Merge origin/main into nvf4-block-scale-sm120-pr-clean
LeiWang1999 9a8d1fc
[SM120] Remove redundant local FP4 access pointer test
LeiWang1999 a1b21a7
[SM120] Split block-scaled MMA emitter
LeiWang1999 ddd1098
Merge branch 'main' of https://github.com/tile-ai/tilelang into nvf4-…
LeiWang1999 11dae61
[SM120] Split block-scaled GEMM lowering
LeiWang1999 a0996a8
[SM120] Isolate block-scaled GEMM plumbing
LeiWang1999 acdd66b
Merge branch 'main' of https://github.com/tile-ai/tilelang into nvf4-…
LeiWang1999 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Merge remote-tracking branch 'origin/main' into pr-2364-main-merge
# Conflicts: # examples/dequantize_gemm/quantize/nvfp4.py
- Loading branch information
commit 97abc1f400ecb85df7eaa67b889348066aebd3e1
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule tvm
updated
from db4770 to d04be2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
LeiWang1999 marked this conversation as resolved.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| """ | ||
| Minimal reproducer for the missing vec_type arithmetic operators in common.h. | ||
|
|
||
| Without the fix, compiling a CPU kernel with `c` target fails: | ||
| error: no match for 'operator-' (operand types are 'float4' and 'float4') | ||
|
|
||
| Requires: tilelang, torch | ||
| """ | ||
|
|
||
| import tilelang | ||
| import tilelang.language as T | ||
| import torch | ||
|
|
||
|
|
||
| @T.prim_func | ||
| def vec_add( | ||
| A: T.Tensor((256,), "float32"), | ||
| B: T.Tensor((256,), "float32"), | ||
| C: T.Tensor((256,), "float32"), | ||
| ): | ||
| for i in T.Parallel(256): | ||
| C[i] = A[i] + B[i] | ||
|
|
||
|
|
||
| def main(): | ||
| f = tilelang.compile(vec_add,> | ||
| A = torch.randn(256) | ||
| B = torch.randn(256) | ||
| C = torch.zeros(256) | ||
| f(A, B, C) | ||
| ref = A + B | ||
| assert (C - ref).abs().max().item() < 1e-5 | ||
| print("OK: vec_add compiled and ran successfully") | ||
|
|
||
|
|
||
| if __name__ == "__main__": | ||
| main() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
You are viewing a condensed version of this merge commit. You can view the full changes here.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.