-
Notifications
You must be signed in to change notification settings - Fork 258
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
issue with IPEX v2.3.110 #718
Comments
Hi, let me have a check and get back to you. Thanks. |
好的。麻烦你看看。谢谢 |
Hi, are you sure you are using an integrated Arc in Meteor Lake or Lunar Lake processors, or a discrete Arc device? Please be aware the pip package urls are different for these devices in the installation guide |
I am certain that the device I am using is the Intel A770M. I used 2.1.40 without any problem. But when I use 2.3.110, I get an error. I am using NUC12. Viper Canyon |
主板 Intel Corporation 设备和驱动程序 显卡 |
The A NUC12 should have a discrete A770M card in it, so please try to change the url to
|
Traceback (most recent call last): 我要又要重复 2.1.40了嘛 one api嘛。我还是想使用预编译的。看看有没有会比较稳定和快。。。 one api 都停止维护了 |
啊不是。。我也中文吧.就是你还是按2.3.110的安装文档来,只不过 |
python -m pip install torch==2.3.1+cxx11.abi torchvision==0.18.1+cxx11.abi torchaudio==2.3.1+cxx11.abi intel-extension-for-pytorch==2.3.110+xpu --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/cn/ 你贴一下完整代码可以嘛。好大哥。我是这个
|
我装完就是报错了没有DLL。因为我的系统重新装了。之前的系统装oneapi。确实可以用的。现在一直反复好像找不到GPU。按照文档安装 遇到RuntimeError: Can't add devices across platforms to a single context. -33 (PI_ERROR_INVALID_DEVICE) 错误。按照你给的url安装 遇到缺失DLL OSError: [WinError 126] 找不到指定的模块。 Error loading "C:\Users\clear\miniconda3\envs\torch\lib\site-packages\torch\lib\backend_with_compiler.dll" or one of its dependencies. |
这个问题。似乎能解决的唯一路径。就是安装oneapi 并且环境变量配置oneapi的dll 也能解决这个问题。。但是想用有没有编译好的.看看速度有没有更快。 |
你的意思是重装完系统,安装2.3.110时,如果不单独装oneAPI, 还是会报错?即使在修改了extra-index-url 后也还一样? |
你跑过 |
哦 不好意思,确实没有跑conda install libuv ,运行完之后还是这个问题。C:\Userslear\miniconda3\envs\pytorch\lib\site-packages\intel_extension_for_pytorch\llm_init__. py:9: UserWarning: failed to use huggingface generation fuctions due to: 没有名为 'transformers' 的模块。 |
Collecting environment information... OS: N/A Python version: 3.10.15 | packaged by Anaconda, Inc. | (main, Oct 3 2024, 07:22:19) [MSC v.1929 64 bit (AMD64)] (64-bit runtime) CPU: Versions of relevant libraries: |
好的,我们再看看这个问题啊 |
Hi @byclear 再确认一下啊,你装驱动那一步是装的红框的那个吗? |
Yes, I have not reinstalled the drivers. I'm using 32.0.101.6079 WHQL. I'll test it by installing the specified version 32.0.101.5768 now. Reply later with the results. Thanks for the help. @ZailiWang |
我卸载了 32.0.101.6079 并重启系统后,安装 32.0.101.5768。安装完后重启系统。运行如下命令:conda install libuv 错误依然是 |
好的,能否再帮忙确认下现在回退到2.1.40是否能正常运行了 |
Collecting environment information... OS: N/A Python version: 3.10.15 | packaged by Anaconda, Inc. | (main, Oct 3 2024, 07:22:19) [MSC v.1929 64 bit (AMD64)] (64-bit runtime) CPU: Versions of relevant libraries: 可以运行 没有报错。这是详细的检测报告 @ZailiWang |
感谢,我再找内部的人问问 |
麻烦再帮着测下如果在设备管理器里disable掉集显,就是这个
然后 2.3.110在arc770m上是不是就不报错了。设备管理器里找到这个集显设备然后 右键->禁用 应该就可以。 |
如果禁用集显后就能用arc770了,那暂时先这么用吧,我们赶紧想办法修这个bug. 造成不便,非常抱歉~ |
Collecting environment information... OS: N/A Python version: 3.10.15 | packaged by Anaconda, Inc. | (main, Oct 3 2024, 07:22:19) [MSC v.1929 64 bit (AMD64)] (64-bit runtime) CPU: Versions of relevant libraries: 确实哦。禁用集显就能用了 |
@ZailiWang 按照这个方式,有些显示器可能跟独显不适配,导致只能使用 Microsoft 基本显示驱动程序。
2.3.110 版本 -33 (PI_ERROR_INVALID_DEVICE) 错误,禁用核显或者回退到 2.1.40+xpu 版本正常 |
已经确认是bug了,后边会修复的。禁掉集显只是一个修复前暂时绕过去的方法。 |
这是为什么 IntelAI 1.21b 版本在 ARC GPU 和 iGPU 上存在问题的原因吗? 它也使用 2.3.110+xpu 吗? 我提交了以下错误报告: |
Hi, the issue has been fixed. Would you retry with re-installation
and check if the issue is resolved at your side. Thanks! |
Collecting environment information... 一样的啊。贴错命令行了? |
annotated-types 0.7.0 pypi_0 pypi 运行即报错 |
抱歉,我得到的信息有误,这个问题的修复还没有正式更新到目前的安装包里。等修复确认发布出来了我再来告知哈。 |
@ZailiWang Did you post the wrong command accidentally? I tried the latest v2.3.110 hotfix (post0), it worked.
|
Yeah, the hotfix release for this issue has just released. Thanks for confirmation. @byclear Please check again by re-installing the packages, this time it should work. |
2.3.1.post0+cxx11.abi 相关函数仍然是报错的。尤其是我想指定GPU |
抱歉,看来这个问题还是没有真正解决。我反馈了,会尽快继续修复。
这样也可以先把这个问题规避过去。 |
import os 好的 谢谢了。他成功的跑起来了。 |
Describe the bug
C:\Users\clear\miniconda3\envs\310\lib\site-packages\torchvision\io\image.py:13: UserWarning: Failed to load image Python extension: 'Could not find module 'C:\Users\clear\miniconda3\envs\310\Lib\site-packages\torchvision\image.pyd' (or one of its dependencies). Try using the full path with constructor syntax.'If you don't plan on using image functionality from
torchvision.io
, you can ignore this warning. Otherwise, there might be something wrong with your environment. Did you havelibjpeg
orlibpng
installed before buildingtorchvision
from source?warn(
Collecting environment information...
Traceback (most recent call last):
File "C:\pythonxm\测试ARC显卡\collect_env.py", line 517, in
main()
File "C:\pythonxm\测试ARC显卡\collect_env.py", line 512, in main
output = get_pretty_env_info()
File "C:\pythonxm\测试ARC显卡\collect_env.py", line 507, in get_pretty_env_info
return pretty_str(get_env_info())
File "C:\pythonxm\测试ARC显卡\collect_env.py", line 368, in get_env_info
xpu_available_str = str(torch.xpu.is_available())
File "C:\Users\clear\miniconda3\envs\310\lib\site-packages\torch\xpu_init_.py", line 63, in is_available
return device_count() > 0
File "C:\Users\clear\miniconda3\envs\310\lib\site-packages\torch\xpu_init_.py", line 57, in device_count
return torch._C._xpu_getDeviceCount()
RuntimeError: Can't add devices across platforms to a single context. -33 (PI_ERROR_INVALID_DEVICE)
conda install libuv
python -m pip install torch==2.3.1+cxx11.abi torchvision==0.18.1+cxx11.abi torchaudio==2.3.1+cxx11.abi intel-extension-for-pytorch==2.3.110+xpu --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/lnl/cn/
Versions
C:\Users\clear\miniconda3\envs\310\lib\site-packages\torchvision\io\image.py:13: UserWarning: Failed to load image Python extension: 'Could not find module 'C:\Users\clear\miniconda3\envs\310\Lib\site-packages\torchvision\image.pyd' (or one of its dependencies). Try using the full path with constructor syntax.'If you don't plan on using image functionality from
torchvision.io
, you can ignore this warning. Otherwise, there might be something wrong with your environment. Did you havelibjpeg
orlibpng
installed before buildingtorchvision
from source?warn(
Collecting environment information...
Traceback (most recent call last):
File "C:\pythonxm\测试ARC显卡\collect_env.py", line 517, in
main()
File "C:\pythonxm\测试ARC显卡\collect_env.py", line 512, in main
output = get_pretty_env_info()
File "C:\pythonxm\测试ARC显卡\collect_env.py", line 507, in get_pretty_env_info
return pretty_str(get_env_info())
File "C:\pythonxm\测试ARC显卡\collect_env.py", line 368, in get_env_info
xpu_available_str = str(torch.xpu.is_available())
File "C:\Users\clear\miniconda3\envs\310\lib\site-packages\torch\xpu_init_.py", line 63, in is_available
return device_count() > 0
File "C:\Users\clear\miniconda3\envs\310\lib\site-packages\torch\xpu_init_.py", line 57, in device_count
return torch._C._xpu_getDeviceCount()
RuntimeError: Can't add devices across platforms to a single context. -33 (PI_ERROR_INVALID_DEVICE)
The text was updated successfully, but these errors were encountered: