Repository navigation
Fix fake metadata for CuTeDSL 32x1 MXFP8 quantization - #4702
alexsamardzic wants to merge 6 commits into
Conversation
|
Stack from ghstack (oldest at bottom): |
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/4702
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 Unclassified FailureAs of commit 0c9947a with merge base 9d0c494 ( UNCLASSIFIED FAILURE - DrCI could not classify the following job because the workflow did not run on the merge base. The failure may be pre-existing on trunk or introduced by this PR:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
| @@ -0,0 +1,250 @@ | |||
| # Copyright (c) Meta Platforms, Inc. and affiliates. | |||
There was a problem hiding this comment.
split logic to test and benchmarks
|
@claude review |
|
Claude finished @vkuzo's task in 1m 33s —— View job Claude Code Review
I reviewed the fake-metadata fix against the real kernel in ✅ Correctness of the fake metadata
The two real problems are addressed: (1) the 🔵 Minor: swapped variable names in the blocked branch
padded_scale_rows = ceil_div(m_blocks, 4) * 4
padded_scale_cols = ceil_div(k, 128) * 128The final tensor is 1-D ( 🔵 Minor: dropped explanatory commentsThe previous version had short comments explaining the padding rationale ("Only scales tensor needs padding for 4x128 scale factor tiles", "output data has same dimensions as input"). Those were removed. Since the real kernel keeps equivalent comments ( 🔵 Script:
|
|
All comments addressed. |
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
(Replaces #4589 due to incorrect ghstack base branch targeting.)
To test:
pytest -q test/prototype/moe_training/test_kernels.py -k "cutedsl and 32x1"This PR also contains a script to validate/benchmark the CuTeDSL 2D 32x1 dim1 quantization path against the existing CUDA path inside the wgrad workflow; the script is temporary and will be deleted when the
torchao._C_mxfp8 extensionremoved.