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
ImportError: cannot import name 'GpuBindingManager' from 'onnxruntime.transformers.io_binding_helper' #20561
Comments
You can To run the demo in main branch, please follow the document to run in in docker (require the step of build onnxruntime from source): |
Hi, thanks for your response. I tried building from source by first cloning the repo, there was the
following the installing instruction, but encountered
Can I build wheel using my CPU RAM instead, and how can I do that? If further information is needed, please tell me. |
build wheel use CPU RAM. The error looks like during testing. You can skip tests if you follow the step I shared in the above link.
|
It worked(after I change 12.2 to my cuda version, and set some lib path in the enviromnent). |
Describe the issue
When running
I encountered this error:
I inspected it and found out: in the
python3.9/site-packages/onnxruntime/transformers/io_binding_helper.py
file, there is no phrase 'GpuBindingManager'. Perform Ctrl+F return no result.My system setup (conda environment):
I believe this might be importing from an incorrect file. I appreciate every help and suggestion.
To reproduce
At this step I received the error
ModuleNotFoundError: No module named 'onnxruntime'
, I installed it bypip install -U onnxruntime
.Then I re-run
and encountered the above error
Urgency
Demo file is not runnable, I have no clue how to fix this without internal insight.
Platform
Linux
OS Version
Ubuntu22.04
ONNX Runtime Installation
Pip Install
ONNX Runtime Version or Commit ID
1.17.3
ONNX Runtime API
Python
Architecture
X64
Execution Provider
CUDA
Execution Provider Library Version
CUDA 12.4
The text was updated successfully, but these errors were encountered: