feat: [CK Tile] mxfp8 support for qr async pipeline - #6526
Conversation
8c5c014 to
5d65659
Compare
296d5c9 to
e76717a
Compare
e76717a to
6685a90
Compare
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds MXFP8 support to the QR async FMHA forward pipeline by enabling MX quant scale paths, loosening padding constraints, and updating tests/codegen to cover the new combinations.
Changes:
- Extend
BlockFmhaPipelineQRKSVSAsyncto support MX quant scales (Q/K/V/P scale tiles) and adjust padding/alignment behavior accordingly. - Update FMHA fwd tests to include head-dim adjustment helpers and add a new “General” parameterized test suite.
- Update codegen pipeline constraints/selection for
qr_async, and adjust tile-window vectorization logic for packed types.
Reviewed changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 10 comments.
Show a summary per file
| File | Description |
|---|---|
| projects/composablekernel/test/ck_tile/fmha/test_fmha_fwd.cpp | Adds adjust_hdim() per datatype and introduces a new generalized parameterized test suite; uses adjust_hdim in padding tests. |
| projects/composablekernel/include/ck_tile/ops/fmha/pipeline/block_fmha_pipeline_qr_ks_vs_async.hpp | Implements MX scale loading/casting paths in the QR async pipeline; relaxes hardcoded padding assumptions; updates alignment and loop structure. |
| projects/composablekernel/include/ck_tile/core/tensor/tile_window.hpp | Changes vectorized thread-buffer sizing/indexing logic to accommodate packed types. |
| projects/composablekernel/example/ck_tile/01_fmha/script/benchmark_fwd.sh | Fixes indentation for the last benchmark invocation line. |
| projects/composablekernel/example/ck_tile/01_fmha/codegen/ops/fmha_fwd.py | Adjusts qr_async head-dim constraints and pipeline enumeration; adds QR async pipelines for MXFP8 in column layout. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
JP-Fernando
left a comment
There was a problem hiding this comment.
This work adds MXFP8 support to the qr_ks_vs_async pipeline. And it looks good to me! Just two inconsequential comments.
|
This pull request has been inactive for 25 days and will be marked as stale. If you would like to keep this PR open, please:
This PR will be automatically closed in 5 days if no further activity occurs. |
|
This pull request has been automatically closed due to inactivity (30 days with no updates). If you'd like to continue working on this, feel free to reopen the PR or create a new one. |
✅ All Checks Passed — Ready for Review
📖 Need help? See the Policy FAQ for details on every check and how to fix failures. |
|
🎉 All checks passed! This PR is ready for review. |
poyenc
left a comment
There was a problem hiding this comment.
LGTM. mxfp4 Fix A is in, and I confirmed the V-window advance and dcheck→true codegen changes are correct. Approving.
feat: [CK Tile] mxfp8 support for qr async pipeline MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: #6526 ## Motivation Adds MXFP8 support to the QR async FMHA forward pipeline by enabling MX quant scale paths, loosening padding constraints, and updating tests/codegen to cover the new combinations. ## Technical Details Changes: - Extend BlockFmhaPipelineQRKSVSAsync to support MX quant scales (Q/K/V/P scale tiles) and adjust padding/alignment behavior accordingly. - Update FMHA fwd tests to include head-dim adjustment helpers and add a new “General” parameterized test suite. - Update codegen pipeline constraints/selection for qr_async, and adjust tile-window vectorization logic for packed types. ## Test Plan Running CI with extended set of tests ## Test Result CI passing ## Submission Checklist - [ ] Look over the contributing guidelines at https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests.
This reverts commit 3e01710.
This reverts commit 3e01710.
This reverts commit 723ff1b.
This reverts commit 3e01710.
This reverts commit 3e01710.
This reverts commit 723ff1b.
…6526)" (#9461) This reverts commit 3e01710. ## Motivation The PR is identified breaking the CI RUN_CK_TILE_FMHA_TESTS. http://micimaster.amd.com/blue/organizations/jenkins/rocm-libraries-folder%2fComposable%20Kernel/detail/develop/1762/pipeline/305 and Aiter test_mha.py http://micimaster.amd.com/blue/organizations/jenkins/rocm-libraries-folder%2FComposable%20Kernel/detail/users%2Fjialuo%2Fck%2Ffix_ci_aiter_error/33/pipeline/246 ## Technical Details <!-- Explain the changes along with any relevant GitHub links. --> ## Test Plan <!-- Explain any relevant testing done to verify this PR. --> ## Test Result <!-- Briefly summarize test outcomes. --> ## Submission Checklist - [ ] Look over the contributing guidelines at https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests.
This reverts commit 723ff1b.
…6526)" (#9461) This reverts commit 3e01710. ## Motivation The PR is identified breaking the CI RUN_CK_TILE_FMHA_TESTS. http://micimaster.amd.com/blue/organizations/jenkins/rocm-libraries-folder%2fComposable%20Kernel/detail/develop/1762/pipeline/305 and Aiter test_mha.py http://micimaster.amd.com/blue/organizations/jenkins/rocm-libraries-folder%2FComposable%20Kernel/detail/users%2Fjialuo%2Fck%2Ffix_ci_aiter_error/33/pipeline/246 ## Technical Details <!-- Explain the changes along with any relevant GitHub links. --> ## Test Plan <!-- Explain any relevant testing done to verify this PR. --> ## Test Result <!-- Briefly summarize test outcomes. --> ## Submission Checklist - [ ] Look over the contributing guidelines at https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests.
feat: [CK Tile] mxfp8 support for qr async pipeline Closes: #6526 ## Motivation Adds MXFP8 support to the QR async FMHA forward pipeline by enabling MX quant scale paths, loosening padding constraints, and updating tests/codegen to cover the new combinations. ## Technical Details Changes: - Extend BlockFmhaPipelineQRKSVSAsync to support MX quant scales (Q/K/V/P scale tiles) and adjust padding/alignment behavior accordingly. - Update FMHA fwd tests to include head-dim adjustment helpers and add a new “General” parameterized test suite. - Update codegen pipeline constraints/selection for qr_async, and adjust tile-window vectorization logic for packed types. ## Test Plan Running CI with extended set of tests ## Test Result CI passing ## Submission Checklist - [ ] Look over the contributing guidelines at https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests. --------- Co-authored-by: Zoltán Lakatos <zoltan.lakatos@streamhpc.com>
Closes: #6526
Motivation
Adds MXFP8 support to the QR async FMHA forward pipeline by enabling MX quant scale paths, loosening padding constraints, and updating tests/codegen to cover the new combinations.
Technical Details
Changes:
Extend BlockFmhaPipelineQRKSVSAsync to support MX quant scales (Q/K/V/P scale tiles) and adjust padding/alignment behavior accordingly.
Update FMHA fwd tests to include head-dim adjustment helpers and add a new “General” parameterized test suite.
Update codegen pipeline constraints/selection for qr_async, and adjust tile-window vectorization logic for packed types.
Test Plan
Running CI with extended set of tests
Test Result
CI passing
Submission Checklist