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

Conversion script bugfixes #1218

Merged
merged 5 commits into from
Jun 7, 2024
Merged

Conversion script bugfixes #1218

merged 5 commits into from
Jun 7, 2024

Conversation

haileyschoelkopf
Copy link
Contributor

Updates the NeoX-to-HF conversion utilities to fix the following problems:

  • Add MoE #1129 tweaks the default is_pipe_parallel behavior s.t. PP=1 models no longer are trained using PipelineModules, since MoE is not PP-compatible. This affects the save format of such checkpoints, so bringing the conversion script is_pipe_parallel detection logic in line with this.
  • I found a bug where we would get KeyError: no key 'final_linear.weight' could be found when trying to convert a model with tied input/output embeddings. So adjusted the script to now save input embeds into the LM head state when converting a tied embedding model.

@StellaAthena
Copy link
Member

I think it would be more desirable to preserve the PP=1 -> PipelineModule with one pipeline stage behavior and have pinged the PR creator on Discord to discuss.

@dmahan93
Copy link
Contributor

should #1214 get closed and pulled into this?

@haileyschoelkopf
Copy link
Contributor Author

@dmahan93 yep!

I agree with Stella that going back to the behavior of pp=1 operating as a PipelineModule is desirable though.

@Quentin-Anthony Quentin-Anthony merged commit 4c426da into main Jun 7, 2024
2 checks passed
@Quentin-Anthony Quentin-Anthony deleted the patch_conversion_scripts branch June 7, 2024 01:37
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

4 participants