Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync 4 layer norms - bf16, fp32, optimizer states on restart #274

Open
wants to merge 40 commits into
base: main
Choose a base branch
from

Conversation

tjruwase
Copy link
Collaborator

@tjruwase tjruwase commented Mar 28, 2022

this PR uses microsoft/DeepSpeed#1801 @ d911e67 to sync layer norms:

  1. for bf16 weights
  2. for fp32 weights in bf16 optimizer
  3. for 2 optimizer states

all_reduce/OP.AVG is used in all 3 cases.

automatically works for all layers and all 4 types of layer norms - weights and biases.


this has been successfully applied to the live model and lead to layers getting in sync - but after some iterations some layers got out of sync again - some other bug to figure out.

@stas00 stas00 changed the title Olruwase/sync layer norms Sync 4 layer norms - bf16, fp32, optimizer states on restart Mar 29, 2022
@stas00 stas00 mentioned this pull request May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants