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

Issue Report: Unable to Export Gemma 7b Model to ONNX Format in Optimum #1814

Open
2 of 4 tasks
Harini-Vemula-2382 opened this issue Apr 12, 2024 · 2 comments
Open
2 of 4 tasks
Labels
bug Something isn't working

Comments

@Harini-Vemula-2382
Copy link

System Info

Optimum Version: 1.18.0
Python Version: 3.8
Platform: Windows, x86_64

Who can help?

@michaelbenayoun @JingyaHuang @echarlaix
I am writing to report an issue I encountered while attempting to export a Gemma 7b model to ONNX format using Optimum.

Information

  • The official example scripts
  • My own modified scripts

Tasks

  • An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
  • My own task or dataset (give details below)

Reproduction (minimal, reproducible, runnable)

optimum-cli export onnx --model google/gemma-7b gemma7b_optimum_onnx/ --trust-remote-code

Expected behavior

I would expect Optimum to successfully export the Gemma 7b model to ONNX format without encountering any errors or issues.

@Harini-Vemula-2382 Harini-Vemula-2382 added the bug Something isn't working label Apr 12, 2024
@fxmarty
Copy link
Collaborator

fxmarty commented Apr 16, 2024

Hi @Harini-Vemula-2382, thank you for the report. I can not reproduce the issue with torch==2.2.2, onnx==1.16.0, onnxruntime==1.17.3 on Optimum main (installed from source).

I'll do a release 1.19 today, let me know if this helps.

@Harini-Vemula-2382
Copy link
Author

Still I am facing the same issue, tried multiple times!
Could you please help me in how to convert gemma into onnx format?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants