Open Huanghong2016 opened 2 months ago
hello the version you're pinning (1.8.5) is very old and seems to install an onnx
and onnxruntime
versions that are incompatible (onnxruntime
code is calling a dtype that doesn't exist in onnx
). Make sure you have compatible versions https://onnxruntime.ai/docs/reference/compatibility.html
And now I have updated onnx ,onnxruntime and optimum
onnx 1.16.2
onnxruntime-gpu 1.18.0
optimum 1.21.4
bug also have bug
Building prefix dict from the default dictionary ...
Loading model from cache C:\Users\pc\AppData\Local\Temp\jieba.cache
Loading model cost 0.408 seconds.
Prefix dict has been built successfully.
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\site-packages\transformers\utils\import_utils.py", line 1586, in _get_module
return importlib.import_module("." + module_name, self.name)
File "C:\ProgramData\Anaconda3\lib\importlib__init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\site-packages\transformers\utils\import_utils.py", line 1586, in _get_module
return importlib.import_module("." + module_name, self.name)
File "C:\ProgramData\Anaconda3\lib\importlib__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "D:\upgrade_knowledge\point\predict.py", line 6, in
N
ow it's another problem that's related to your environment. Unfortunately the installation of onnxruntime-gpu on windows is not as straight forward as pip install onnxruntime-gpu
https://onnxruntime.ai/docs/install/#install-onnx-runtime-ort
System Info
Who can help?
No response
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction (minimal, reproducible, runnable)
pip install optimum[onnxruntime-gpu]==1.8.5
from optimum.onnxruntime import ORTModelForSeq2SeqLM from optimum.onnxruntime.configuration import OptimizationConfig from optimum.onnxruntime.optimization import ORTOptimizer
Expected behavior
just runing