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 in Quantizer decoeder_model_merged.onnx of MT5 #1687

Closed
4 tasks
jhpassion0621 opened this issue Feb 7, 2024 · 2 comments
Closed
4 tasks

Issue in Quantizer decoeder_model_merged.onnx of MT5 #1687

jhpassion0621 opened this issue Feb 7, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@jhpassion0621
Copy link

System Info

optimum 1.16.2
onnx 1.15.0
onnxruntime 1.17.0

Who can help?

No response

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)

I got onnx files of mt5-large model and when I tried to convert that to quantized files, I got errors at decoder_model_merged.onnx.

from optimum.onnxruntime.configuration import AutoQuantizationConfig
from optimum.onnxruntime import ORTQuantizer

qconfig = AutoQuantizationConfig.arm64(is_static=False, per_channel=False)
quantizer = ORTQuantizer.from_pretrained("/content/drive/MyDrive/mt5-large", file_name="decoder_model_merged.onnx")

quantizer.quantize(save_dir="/content/drive/MyDrive/mt5-large", quantization_config=qconfig)

Screenshot 2024-02-08 at 12 27 57 AM

Expected behavior

decoder_model_merged_quantized.onnx

@jhpassion0621 jhpassion0621 added the bug Something isn't working label Feb 7, 2024
@fxmarty
Copy link
Contributor

fxmarty commented Feb 8, 2024

Hi @jhpassion0621 this is a bug introduced in onnxruntime 1.17, please downgrade to onnxruntime 1.16 to wait for a fix to be released: microsoft/onnxruntime#19421

@jhpassion0621
Copy link
Author

Thank you very much. it works well on 1.16. @fxmarty

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