-
Notifications
You must be signed in to change notification settings - Fork 93
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 'tutel_custom_kernel' from 'tutel.impls.jit_compiler' #198
Comments
It is usually due to environmental issue that Pytorch fails to find CUDA SDK.
|
Using pip 23.0.1 from /home/ubuntu/anaconda3/envs/snerf/lib/python3.8/site-packages/pip (python 3.8) |
Thanks. What about the standard output of this: python3 -c 'import torch; import tutel_custom_kernel' |
Thanks! seems like it doesn't have the module 'torch_custom_tutel' |
Can you search where is the OS path of this file in your anaconda3 environment: find /home/ubuntu/anaconda3 | grep tutel_custom_kernel Your anaconda3 doesn't automatically add it to the PYTHON_PATH. For PYPI installation instead of anaconda, I don't think there would be such problem, and the file is usually installed at some path like:
|
I sorry that I did follow the installation procedures, I still couldn't find the file 'tutel_custom_kernel', in the dist-packages. I'm not sure which part went wrong. I use CUDA11.6 and torch==1.10.0+cu113. |
OK, so the problem is not from anaconda's site location, but your Pytorch fails to detach CUDA library environment and related versioning. You have several options:
|
Because those shared libraries fails to locate on the disk, so Pytorch C++ modules can't load at initialization. |
Thanks for your patience, I did what you told me, the problem is still unsolved,. I think maybe something wrong with the ninja compiler while installing? I paste the installation log here. And I use CUDA10.2, with torch version torch1.10.0+cu102 running install Installed /home/ubuntu/.local/lib/python3.8/site-packages/tutel-0.1-py3.8-linux-x86_64.egg |
Thanks! I reinstall CUDA and torch, update tutel to the latest version, and it works! Thanks for your patience, that really helps me a lot. |
Can you share your CUDA and Pytorch version? I have the same issue, and reinstall doesn't work |
Mostly it is related to Pytorch fails to import standard C++ extension due to improper/messed-up extension location. Here are several possibilities.
|
No description provided.
The text was updated successfully, but these errors were encountered: