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

Adding support for Llama 3.1 and Llama 3.2 models #59

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

CryVeck
Copy link

@CryVeck CryVeck commented Dec 18, 2024

The main modifications to support Llama 3.1 and 3.2:

  • In case of Llama 3.2 , tie_word_embedding=True so we need to do only one the rotation on input embedding as they are the same data has the output ones.
  • In case of Llama 3.2, as config.num_key_value_heads is different from config.num_attention_heads, we need to give the full formula : config.hidden_size * config.num_key_value_heads / config.num_attention_heads to get the right dimension.
  • Adding one Hadamard matrix

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.

1 participant