Skip to content

Add Support to Gemma2#75

Merged
Saibo-creator merged 2 commits into
epfl-dlab:mainfrom
fillassuncao:Add-Support-Gemma
Aug 15, 2024
Merged

Add Support to Gemma2#75
Saibo-creator merged 2 commits into
epfl-dlab:mainfrom
fillassuncao:Add-Support-Gemma

Conversation

@fillassuncao

@fillassuncao fillassuncao commented Aug 7, 2024

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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