Skip to content

[mxfp8 training] make alignment size configurable in benchmark script#4246

Merged
danielvegamyhre merged 1 commit intomainfrom
danielvegamyhre/stack/163
Apr 7, 2026
Merged

[mxfp8 training] make alignment size configurable in benchmark script#4246
danielvegamyhre merged 1 commit intomainfrom
danielvegamyhre/stack/163

Conversation

@danielvegamyhre
Copy link
Copy Markdown
Contributor

@danielvegamyhre danielvegamyhre commented Apr 6, 2026

We should make token group alignment size configurable for benchmarking.

Context: I am experimenting with performance trade-offs of padding token group sizes to 128 instead of 32 to avoid expensive dynamic per group padding when writing mxfp8 scale factors to blocked layout in the backward pass for wgrad calculation.

stack-info: PR: #4246, branch: danielvegamyhre/stack/163
@pytorch-bot
Copy link
Copy Markdown

pytorch-bot Bot commented Apr 6, 2026

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/4246

Note: Links to docs will display an error until the docs builds have been completed.

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

⏳ No Failures, 1 Pending

As of commit cfc5db9 with merge base d26bbae (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 6, 2026
@danielvegamyhre danielvegamyhre added mx module: training quantize_ api training flow moe labels Apr 6, 2026
]
recipes = [
MXFP8TrainingRecipe.MXFP8_RCEIL,
MXFP8TrainingRecipe.MXFP8_RCEIL_WGRAD_WITH_HP,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also am removing this from the default config to speed up the benchmark runs when iterating, since this is least used recipe / not the top priority. If I (or anyone) wants to check benchmarks for it they can easily add it to the config with one line of code.

@danielvegamyhre danielvegamyhre merged commit e94f638 into main Apr 7, 2026
32 of 45 checks passed
brucechanglongxu pushed a commit to brucechanglongxu/ao that referenced this pull request Apr 9, 2026
brucechanglongxu pushed a commit to brucechanglongxu/ao that referenced this pull request Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. module: training quantize_ api training flow moe mx

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants