DeepSpeed
DeepSpeed copied to clipboard
optimize grad_norm calculation in stage3.py
reduce the synchronization between the device and the host by removing .item() from the loops that calculate the total norm.
@tjruwase Hi, can you please help me to merge these changes?
@mmhab could you please run the formatter and commit any changes? pre-commit run --all-files
I made some changes in the commit. Please review @jeffra @samyam