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

Convert llama to Long llama #5

Open
jakebonk opened this issue Apr 16, 2023 · 1 comment
Open

Convert llama to Long llama #5

jakebonk opened this issue Apr 16, 2023 · 1 comment

Comments

@jakebonk
Copy link

Do you have any thoughts on converting llama/alpaca/vicuna models with LSG? Or would this be more difficult. It looks like they use rotary positional embeddings (RoPE) instead of absolute positional embeddings

@ccdv-ai
Copy link
Owner

ccdv-ai commented Apr 16, 2023

Hi @jakebonk

HF team added the Llama model few days ago.
From what I see in this implementation it is likely possible to add the LSG attention to a Llama model. RoPE isn't a problem as you can apply it before computing the score matrix.

I need to investigate this, I'll let you know within the week if I can create a conversion script.

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

No branches or pull requests

2 participants