Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does TransformerEngine support FP8 communication such like all-gather or all-to-all? #1579

Open
zigzagcai opened this issue Mar 14, 2025 · 3 comments

Comments

@zigzagcai
Copy link

zigzagcai commented Mar 14, 2025

In MoE model architectures, especially when the model size is quite large. We found the throughput is limited by communication (all-gather / reduce-scatter / all-to-all). Where all-gather and reduce-scatter mainly used in ZeRO3 or FSDP, all-to-all mainly used in expert parallelism. The communication is quite large, and finally becomes the bottleneck.

We found another FP8 library named torchao has FP8 all-gather communication enabled. But I cannot find the similar FP8 communication API provided in TE.
So, does TransformerEngine support FP8 communication suck like all-gather/reduce-scatter or all-to-all?

@BestJuly
Copy link
Contributor

I think fp8 all-gather should be already supported in TE (_all_gather_fp8).

@timmoon10
Copy link
Collaborator

It depends on the type of communication. For FP8 with delayed scaling:

@yaox12 yaox12 changed the title Does TransformerEngine support FP8 communication suck like all-gather or all-to-all? Does TransformerEngine support FP8 communication such like all-gather or all-to-all? Mar 19, 2025
@zigzagcai
Copy link
Author

zigzagcai commented Apr 1, 2025

It depends on the type of communication. For FP8 with delayed scaling:

Thank you! @timmoon10 @BestJuly

Just another question, does TE has plans to support FP8 all-to-all like what DeepEP has done?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants