This repository was archived by the owner on Aug 7, 2024. It is now read-only.
This repository was archived by the owner on Aug 7, 2024. It is now read-only.
Speedup sync_float8_amax_and_scale_history #119
Closed
Description
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:

I also tried compiling just this function to see if this could be reduced.
As well I tried compiling this function with reduce-overhead
and the warning skipping cudagraphs due to ['mutated inputs']
was raised