Repository navigation
[TRITON]: GEMM, MoE and Quants Kernel/Benchmark Updates - #304
Merged
Merged
Conversation
vgokhale
reviewed
Apr 16, 2025
vgokhale
reviewed
Apr 16, 2025
vgokhale
self-requested a review
April 17, 2025 14:01
vgokhale
previously approved these changes
Apr 17, 2025
rahulbatra85
force-pushed
the
triton_gemm_a16w16
branch
from
April 18, 2025 00:56
2927389 to
278f0b6
Compare
rahulbatra85
force-pushed
the
triton_gemm_a16w16
branch
from
April 18, 2025 00:58
278f0b6 to
ecc6fbb
Compare
vgokhale
self-requested a review
April 18, 2025 02:45
vgokhale
previously approved these changes
Apr 18, 2025
-Create gemm a8w8 blockscale inputs in own function -Adds gemm a8w8 blockscale benchmark -Update configs for gemm_a8w8 kernel
- Disable Silu fused with int4 - Disable persistent with int4
rahulbatra85
force-pushed
the
triton_gemm_a16w16
branch
from
April 18, 2025 14:46
ecc6fbb to
18ce685
Compare
vgokhale
self-requested a review
April 18, 2025 14:48
vgokhale
previously approved these changes
Apr 18, 2025
-Optimized per token fp8 quant kernel
1) Made the grid equal to num rows. Previously it was one
WG every 32 rows. (60us -> 5.5us)
2) Added cache modifiers for ld/st (5.5us -> 4.7us)
3) Explicit reciprocal to avoid Newton Raphson steps on
result (4.7 -> 3.5us)
Results on 128 x 8192 tensor. Roofline ~1us.
-Fixed bug with per tensor quant
1) Needed a second kernel call to quantize after computing
atomic max
2) Also did perf optimizations similar to the per_token quant to
the other kernels.
vgokhale
approved these changes
Apr 18, 2025
valarLip
pushed a commit
that referenced
this pull request
Mar 18, 2026
* [TRITON]: Add GEMM a16w16 kernel and benchmark
* [TRITON]: GEMM A8W8 Blockscale Updates
-Create gemm a8w8 blockscale inputs in own function
-Adds gemm a8w8 blockscale benchmark
-Update configs for gemm_a8w8 kernel
* [TRITON]: Fix gemm a8w8 unit test
* [TRITON]: Disable some MoE int4 tests
- Disable Silu fused with int4
- Disable persistent with int4
* [TRITON]: Quant Kernel Updates
-Optimized per token fp8 quant kernel
1) Made the grid equal to num rows. Previously it was one
WG every 32 rows. (60us -> 5.5us)
2) Added cache modifiers for ld/st (5.5us -> 4.7us)
3) Explicit reciprocal to avoid Newton Raphson steps on
result (4.7 -> 3.5us)
Results on 128 x 8192 tensor. Roofline ~1us.
-Fixed bug with per tensor quant
1) Needed a second kernel call to quantize after computing
atomic max
2) Also did perf optimizations similar to the per_token quant to
the other kernels.
---------
Co-authored-by: Rahul Batra <[email protected]>
Co-authored-by: Ali Zaidy <[email protected]>
Co-authored-by: Vinayak Gokhale <[email protected]>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.