Open aresa7796 opened 1 year ago
Hi, maybe you can try python -m pip uninstall optimum onnxruntime && python -m pip install optimum[onnxruntime]
?
Look like the same problem at https://github.com/huggingface/optimum/issues/1177 and I'm facing the same problem
@aresa7796 As discussed with @hieupth in #1177, your file /mnt/public/demo/m2m_100_demo/onnx.py
is called onnx.py
which messes up with the import of the onnx
package. Could you rename it and let me know if that solves your issue?
@aresa7796 As discussed with @hieupth in #1177, your file
/mnt/public/demo/m2m_100_demo/onnx.py
is calledonnx.py
which messes up with the import of theonnx
package. Could you rename it and let me know if that solves your issue?
I had a same problem with @hieupth , and renaming my test code file from "onnx.py" to "infer_onnx.py" resolved the problem. Thank you @regisss !
System Info
Who can help?
Hi, guys!
I got an error:
@JingyaHuang @echarlaix
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
I used this code:
Expected behavior
I used model is
m2m100
. Can you help me?