Repository navigation
Conversation
rahulbatra85
force-pushed
the
vinayak/quant_optimization
branch
2 times, most recently
from
April 17, 2025 14:30
83c3783 to
0421aaf
Compare
jayfurmanek
previously approved these changes
Apr 17, 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.
rahulbatra85
force-pushed
the
vinayak/quant_optimization
branch
from
April 18, 2025 01:12
744d8db to
acbd434
Compare
rahulbatra85
approved these changes
Apr 18, 2025
Contributor
|
Pulled into this PR |
amirakb89
pushed a commit
that referenced
this pull request
May 29, 2026
Verbatim snapshot of ROCm/FlyDSL kernels/moe_blockscale_2stage.py (PRs #164 / #252 / #306). Only change: rewrite two `from kernels.X` imports to relative `.X` for the aiter package layout. All referenced helpers already exist in aiter's mfma_preshuffle_pipeline.py and mfma_epilogues.py. Co-Authored-By: Claude Opus 4 <[email protected]>
amirakb89
pushed a commit
that referenced
this pull request
Jun 9, 2026
Verbatim snapshot of ROCm/FlyDSL kernels/moe_blockscale_2stage.py (PRs #164 / #252 / #306). Only change: rewrite two `from kernels.X` imports to relative `.X` for the aiter package layout. All referenced helpers already exist in aiter's mfma_preshuffle_pipeline.py and mfma_epilogues.py. Co-Authored-By: Claude Opus 4 <[email protected]>
amirakb89
pushed a commit
that referenced
this pull request
Jun 11, 2026
Verbatim snapshot of ROCm/FlyDSL kernels/moe_blockscale_2stage.py (PRs #164 / #252 / #306). Only change: rewrite two `from kernels.X` imports to relative `.X` for the aiter package layout. All referenced helpers already exist in aiter's mfma_preshuffle_pipeline.py and mfma_epilogues.py. Co-Authored-By: Claude Opus 4 <[email protected]>
amirakb89
pushed a commit
to amirakb89/aiter
that referenced
this pull request
Jun 19, 2026
Verbatim snapshot of ROCm/FlyDSL kernels/moe_blockscale_2stage.py (PRs ROCm#164 / ROCm#252 / ROCm#306). Only change: rewrite two `from kernels.X` imports to relative `.X` for the aiter package layout. All referenced helpers already exist in aiter's mfma_preshuffle_pipeline.py and mfma_epilogues.py. Co-Authored-By: Claude Opus 4 <[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.
Results on 128 x 8192 tensor. Roofline ~1us.
This is now exposing HBM latency. Can't really optimize more without significant effort.