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

allocate embed norm only on pp0 #261

Merged
merged 3 commits into from
Mar 7, 2022
Merged

allocate embed norm only on pp0 #261

merged 3 commits into from
Mar 7, 2022

Conversation

stas00
Copy link
Contributor

@stas00 stas00 commented Mar 7, 2022

Don't allocate embed LN on pp rank -1, since it's not being used and it just wastes gpu memory if we allocate it.

@stas00 stas00 merged commit dd06ea3 into main Mar 7, 2022
@stas00 stas00 deleted the embed-norm-pp0-only branch March 7, 2022 04:24
adammoody pushed a commit to adammoody/Megatron-DeepSpeed that referenced this pull request Dec 18, 2023
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.

1 participant