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

[zero_to_fp32] fix padding removal #1380

Merged
merged 4 commits into from
Sep 22, 2021

Conversation

stas00
Copy link
Collaborator

@stas00 stas00 commented Sep 18, 2021

It appears that my initial implementation of zero_to_fp32 with zero3 was broken when padding was involved and it just happened to work since all models I worked with were w/o the padding (i.e. all params were even/divisible by n_gpus). This PR remedies that and adds a very specific test that verifies the various edges when params are not divisible by n_gpus.

@tjruwase

@jeffra jeffra enabled auto-merge (squash) September 22, 2021 03:27
@jeffra jeffra merged commit 364994a into microsoft:master Sep 22, 2021
@stas00 stas00 deleted the zero_to_fp32_fix_padding_removal branch September 22, 2021 03:56
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