Is the delayed scaling computation overlapped with another computation? #1231
Replies: 1 comment
-
|
Yes, that's generally the idea behind the delayed scaling recipe. Instead of computing the scaling factor needed for the current FP8 operation, Transformer Engine records the Regarding
As for the So, in summary:
This separation is what allows delayed scaling to minimize synchronization overhead while maintaining stable FP8 scaling across iterations. If this answer helped or pointed you in the right direction, I'd appreciate it if you could mark it as the accepted answer so it's easier for others with the same issue to find. Also, if you found my contribution useful, I'd appreciate it if you could check out my GitHub profile, follow me, and star any repositories you find interesting. GitHub: https://github.com/Advait251206 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In order for the delayed scaling recipe to be efficient, the scales for the next iteration are computed before hand. I think the part for the computation of the scales is here:
TransformerEngine/transformer_engine/pytorch/fp8.py
Line 314 in f8eb799
But I dont understand if this computation is done in parallel with another computation to save time and for efficiency. Could anyone throw some light on this?Also where is the amax calculation for the input and weights done?
Beta Was this translation helpful? Give feedback.
All reactions