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

Support YaRN models (RoFormer implementation in rotary_embedding kernel) #980

Closed
casper-hansen opened this issue Sep 7, 2023 · 1 comment · Fixed by #1264
Closed

Support YaRN models (RoFormer implementation in rotary_embedding kernel) #980

casper-hansen opened this issue Sep 7, 2023 · 1 comment · Fixed by #1264

Comments

@casper-hansen
Copy link
Contributor

The YaRN model with a context size of 64k and 128k was recently released and pre-trained by people from Nous Research and EleutherAI. It uses the RoFormer type of embeddings that seem different from GPT-NeoX and GPT-J. It is based on the LLaMa 2 model, so support is mostly there, just need some small adjustments.

The original YaRN module uses the flash attention rotary embedding implementation and seems similar in functionality. You may also be interested in the original RoFormer implementation from Huggingface.

Models catalog:
https://huggingface.co/NousResearch/Yarn-Llama-2-7b-64k
https://huggingface.co/NousResearch/Yarn-Llama-2-7b-128k
https://huggingface.co/NousResearch/Yarn-Llama-2-13b-64k
https://huggingface.co/NousResearch/Yarn-Llama-2-13b-128k

@viktor-ferenczi
Copy link
Contributor

viktor-ferenczi commented Sep 23, 2023

Copied from #1027:

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 a pull request may close this issue.

2 participants