Conversion script google/gemma-3-270m-it -> onnx-community/gemma-3-270m-it-ONNX

#8
by fosple - opened

Hey @Xenova ,
would be awesome if you could share your conversion script for google/gemma-3-270m-it -> onnx-community/gemma-3-270m-it-ONNX ?

Already searched your github ( https://github.com/xenova ) and HF ( https://huggingface.co/Xenova ). I only found the conversion script ( https://github.com/huggingface/transformers.js/blob/main/scripts/convert.py ), but this does not support Gemma 3 yet.

Best
fosple

fosple changed discussion status to closed
ONNX Community org

I released a conversion script in collaboration with the Gemma team, and you can find the notebook here: https://colab.research.google.com/github/google-gemini/gemma-cookbook/blob/main/Demos/Emoji-Gemma-on-Web/resources/Convert_Gemma_3_270M_to_ONNX.ipynb

Thanks a lot @Xenova ! :) I tried it out quite extensively and made a few findings. I left a comment on Github .

Sign up or log in to comment