You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once per training iteration we need to sync the amax_history and update scales for all float8 linear module. Currently this is done by iterating over all child modules, finding the linears and syncing. The picture below is the eager performance of calling this on one linear_fp8_module.
Summary
Once per training iteration we need to sync the amax_history and update scales for all float8 linear module. Currently this is done by iterating over all child modules, finding the linears and syncing. The picture below is the eager performance of calling this on one linear_fp8_module.
Code Pointer: https://github.com/pytorch-labs/float8_experimental/blob/f6302af11bd29855bb3cbef93209ddffdd21dd2b/float8_experimental/float8_linear.py#L310
I also tried compiling just this function to see if this could be reduced.

As well I tried compiling this function with
reduce-overheadand the warningskipping cudagraphs due to ['mutated inputs']was raised