[mxfp8 moe training] add benchmark for e2e mxfp8 EP pipeline#3585
Merged
danielvegamyhre merged 1 commit intomainfrom Jan 9, 2026
Merged
[mxfp8 moe training] add benchmark for e2e mxfp8 EP pipeline#3585danielvegamyhre merged 1 commit intomainfrom
danielvegamyhre merged 1 commit intomainfrom
Conversation
stack-info: PR: #3585, branch: danielvegamyhre/stack/109
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/3585
Note: Links to docs will display an error until the docs builds have been completed. This comment was automatically generated by Dr. CI and updates every 15 minutes. |
danielvegamyhre
added a commit
that referenced
this pull request
Jan 6, 2026
stack-info: PR: #3585, branch: danielvegamyhre/stack/109
5388cac to
e85cb48
Compare
edae1fa to
93f767e
Compare
This was referenced Jan 6, 2026
e85cb48 to
5f4b776
Compare
danielvegamyhre
added a commit
that referenced
this pull request
Jan 6, 2026
stack-info: PR: #3585, branch: danielvegamyhre/stack/109
danielvegamyhre
added a commit
that referenced
this pull request
Jan 6, 2026
stack-info: PR: #3585, branch: danielvegamyhre/stack/109
5f4b776 to
ed7dae9
Compare
danielvegamyhre
added a commit
that referenced
this pull request
Jan 6, 2026
stack-info: PR: #3585, branch: danielvegamyhre/stack/109
ed7dae9 to
2862df3
Compare
danielvegamyhre
added a commit
that referenced
this pull request
Jan 7, 2026
stack-info: PR: #3585, branch: danielvegamyhre/stack/109
21f6964 to
b916621
Compare
danielvegamyhre
added a commit
that referenced
this pull request
Jan 7, 2026
stack-info: PR: #3585, branch: danielvegamyhre/stack/109
b916621 to
bbaa0a4
Compare
danielvegamyhre
added a commit
that referenced
this pull request
Jan 7, 2026
stack-info: PR: #3585, branch: danielvegamyhre/stack/109
bbaa0a4 to
a5acc85
Compare
danielvegamyhre
added a commit
that referenced
this pull request
Jan 7, 2026
stack-info: PR: #3585, branch: danielvegamyhre/stack/109
a5acc85 to
cc59b9a
Compare
danielvegamyhre
added a commit
that referenced
this pull request
Jan 7, 2026
stack-info: PR: #3585, branch: danielvegamyhre/stack/109
vkuzo
approved these changes
Jan 9, 2026
Contributor
vkuzo
left a comment
There was a problem hiding this comment.
didn't read closely, stamp for prototype
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.
Stacked PRs:
[mxfp8 moe training] add benchmark for e2e mxfp8 EP pipeline
This stack creates a set of differentiable MXFP8 expert parallel primitives for MoE training:
The key idea is instead of waiting to quantize to MXFP8 until directly before the grouped GEMMs, we can quantize earlier, before the a2a collectives, to speed up these exposed comms. This requires staying in MXFP8 through the token permutation, then feeding those permuted fp8 data + scales into the MXFP8 grouped GEMM, which produces bf16 outputs.
We do this in both the forward pass and backward pass.
Design
Each color corresponds to a separate autograd function:
Benchmarks
This benchmark measures the entire forward + backward pass of the full EP pipeline:
Forward:
Backward:
For DeepSeekV3 shapes we see:
Note this is WITHOUT the mxfp8 grouped GEMM improvements landing in pytorch core soon, so we expect even higher speedups then! We have lower speedups than usual right now due to improvments landing to bf16 grouped gemm but none to mxfp8 grouped gemm yet.
Versus vanilla bf16 pipeline:
Versus existing torchao strategy (bf16 all2alls, quantize to mxfp8 directly before grouped gemms)