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

fix conversion of hf -> neox for pythia in model parallel #1220

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

dmahan93
Copy link
Contributor

Fixes the very high loss at start of training a split pythia/neox model

Matches it so that the summed biases https://github.com/EleutherAI/gpt-neox/blob/main/tools/ckpts/convert_neox_to_hf.py#L520-L525 from the HF checkpoint are split appropriately in a tensor parallel case.

(For reference, magenta is pre-fix, blue is post-fix, grey is a 1.4b run without model parallelism for reference)
image

@dmahan93 dmahan93 changed the title fix summed biases not being divided by mp size for pythia in model parallel fix conversion of hf -> neox for pythia in model parallel May 16, 2024
Copy link
Member

@Quentin-Anthony Quentin-Anthony left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and working. Thanks @dmahan93

@Quentin-Anthony Quentin-Anthony merged commit 90a6cdb into EleutherAI:main Jun 7, 2024
2 checks passed
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.

None yet

2 participants