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

Add Support to Gemma2 #75

Merged
merged 2 commits into from
Aug 15, 2024
Merged

Conversation

fillassuncao
Copy link
Contributor

@fillassuncao fillassuncao commented Aug 7, 2024

This PR adds support to the google/gemma2 model.

I've extended the code in some places to consider the Gemma tokenizer similar to the llama one. Also extended the supported tokenizers, and added a test for it, check the image bellow for the test report:

Screenshot 2024-08-07 at 14 50 41

In addition, I have fixed a couple of issues in the requirements.txt, including the bump of the transformers version to the one where the GemmaTokenizerFast was first introduced.

Note: the google/gemma2 models are gated, and therefore to run the tests you need to configure the hf token locally.

@Saibo-creator Saibo-creator merged commit ec9a181 into epfl-dlab:main Aug 15, 2024
@Saibo-creator
Copy link
Collaborator

@fillassuncao Thank you for the awesome work ! 💯

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.

2 participants