-
Notifications
You must be signed in to change notification settings - Fork 271
OSError: [WinError 126] 找不到指定的模块。 Error loading "E:\programs\python\Python312\Lib\site-packages\intel_extension_for_pytorch\bin\intel-ext-pt-gpu.dll" or one of its dependencies. #804
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
Comments
Could you provide your code and steps how did you have this issue? |
I have same with ipex-llm[xpu_2.6], it happens when transformer is imported. #!/usr/bin/env python3 my requirements.txt: There errorL .conda\python.exe whisper.py -m distil-whisper/distil-large-v3 -q 4-bit -d xpu -P 8081 The above exception was the direct cause of the following exception: Traceback (most recent call last): |
Would you try with the suggestion here? |
I tried: TORCH_DEVICE_BACKEND_AUTOLOAD=0 and got a bit further (some dependencies were missing). (c:\Users\Documents\project\openedai-whisper-ipex-llm.conda) c:\Users\Documents\project\openedai-whisper-ipex-llm>.conda\python.exe whisper.py -m distil-whisper/distil-large-v3 -q 4-bit -d xpu -P 8081 The above exception was the direct cause of the following exception: Traceback (most recent call last): |
would you try with |
我明天试一下,感谢回复。 |
reinstalled everything with "conda install libuv" - still same error Mode LastWriteTime Length Name -a---- 9/04/2025 8:34 AM 3006976 esimd_kernels.dll |
I also encountered your problem. The reason is that you installed torch+cpu in your environment. Uninstall the original torch and reinstall torch+xpu according to the document command. |
Describe the bug
OSError: [WinError 126] 找不到指定的模块。 Error loading "E:\programs\python\Python312\Lib\site-packages\intel_extension_for_pytorch\bin\intel-ext-pt-gpu.dll" or one of its dependencies.
Versions
Traceback (most recent call last):
File "E:\programs\python\Python312\Lib\site-packages\torch_init_.py", line 2756, in import_device_backends
entrypoint = backend_extension.load()
^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\programs\python\Python312\Lib\importlib\metadata_init.py", line 205, in load
module = import_module(match.group('module'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\programs\python\Python312\Lib\importlib_init_.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 999, in exec_module
File "", line 488, in call_with_frames_removed
File "E:\programs\python\Python312\Lib\site-packages\intel_extension_for_pytorch_init.py", line 124, in
raise err
OSError: [WinError 126] 找不到指定的模块。 Error loading "E:\programs\python\Python312\Lib\site-packages\intel_extension_for_pytorch\bin\intel-ext-pt-gpu.dll" or one of its dependencies.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "", line 1, in
File "E:\programs\python\Python312\Lib\site-packages\torch_init_.py", line 2784, in
import_device_backends()
File "E:\programs\python\Python312\Lib\site-packages\torch_init.py", line 2760, in _import_device_backends
raise RuntimeError(
RuntimeError: Failed to load the backend extension: intel_extension_for_pytorch. You can disable extension auto-loading with TORCH_DEVICE_BACKEND_AUTOLOAD=0.
The text was updated successfully, but these errors were encountered: