DeepSpeed icon indicating copy to clipboard operation
DeepSpeed copied to clipboard

optimize grad_norm calculation in stage3.py

Open mmhab opened this issue 3 years ago • 3 comments

reduce the synchronization between the device and the host by removing .item() from the loops that calculate the total norm.

mmhab avatar Oct 02 '23 12:10 mmhab

@tjruwase Hi, can you please help me to merge these changes?

mmhab avatar Dec 17 '23 08:12 mmhab

@mmhab could you please run the formatter and commit any changes? pre-commit run --all-files

mrwyattii avatar Dec 18 '23 18:12 mrwyattii

I made some changes in the commit. Please review @jeffra @samyam

mmhab avatar Dec 25 '23 11:12 mmhab