-
Notifications
You must be signed in to change notification settings - Fork 18
Support converting hf gemma weights #71
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 converting hf gemma weights #71
Conversation
|
Can you also add the instructions in your PR to the README.md? thanks! |
FanhaiLu1
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you share the real output result with the gemma weights?
There is some issue with the response, it's generating English but it will repeat the sentence. @qihqi will update the attention module for Gemma in the following PR, which should fix the accuracy issue. Prompt The response is: |
Great! The result is reasonable. |
…etstream-pytorch into lsiyuan/convert-gemma-hf-weight
Added to the README.md for how to run Gemma. |
|
Updated |
Great! All looks good to me now. |
convert_checkpoint.pyto convert Gemma weights from HuggingFace tosafetensorformat, and PyTorchstate_dict.state_dictREADME.mdfor running GemmaTested with running
convert_checkpoint.pyandrun_interactive.py