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

Make rotary freqs buffer non-persistent #1168

Merged
merged 4 commits into from
Mar 4, 2024

Conversation

haileyschoelkopf
Copy link
Contributor

closes #1161 .

Makes the inv_freq rotary embedding buffer not saved in checkpoints, in keeping with NeoX, Mistral, and Llama in Huggingface post-4.36 .

Since this is a breaking change to saved checkpoints in GPT-NeoX which do store it, added a flag so people can turn it back on and load from the checkpoint.

Quentin-Anthony
Quentin-Anthony previously approved these changes Mar 4, 2024
Quentin-Anthony
Quentin-Anthony previously approved these changes Mar 4, 2024
@Quentin-Anthony Quentin-Anthony merged commit e109bf5 into main Mar 4, 2024
2 checks passed
@Quentin-Anthony Quentin-Anthony deleted the 1161-nonpersistent-rope-buffer branch March 4, 2024 16:50
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.

Converting Pythia checkpoint from HF to NeoX fails
2 participants