Skip to content

Conversation

@jeffcarp
Copy link
Member

@jeffcarp jeffcarp commented Oct 2, 2024

Fixes #1691

  • Adds Gemma 2 presets to the existing Gemma export script
  • Adds gemma_version flag

Tested Gemma 1 & 2 (2B):

$ python tools/gemma/export_gemma_to_hf.py --gemma_version 2 --preset gemma2_2b_en --size 2b --output_dir /tmp/keras_hf_model/

$ python tools/gemma/export_gemma_to_hf.py --gemma_version 1 --preset gemma_2b_en --size 2b --output_dir /tmp/keras_hf_model/

@jeffcarp jeffcarp requested a review from nkovela1 October 2, 2024 23:55
@github-actions github-actions bot added the Gemma Gemma model specific issues label Oct 2, 2024
@divyashreepathihalli divyashreepathihalli added the kokoro:force-run Runs Tests on GPU label Oct 3, 2024
@kokoro-team kokoro-team removed the kokoro:force-run Runs Tests on GPU label Oct 3, 2024
Copy link
Collaborator

@divyashreepathihalli divyashreepathihalli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@divyashreepathihalli
Copy link
Collaborator

you would need to run ./shell/format.sh to resolve the code format error.

@jeffcarp
Copy link
Member Author

jeffcarp commented Oct 3, 2024

Done. Thanks!

@jeffcarp
Copy link
Member Author

jeffcarp commented Oct 3, 2024

Can you or someone with permissions merge the PR?

@divyashreepathihalli divyashreepathihalli merged commit f25c8ff into keras-team:master Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Gemma Gemma model specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Conversion script modification for Gemma 2 models

3 participants