找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
楼主: rafavi

英特尔(Intel)集成显卡也能使用GPU为模型训练加速(以Intel(R) iris(R) Xe Graphi

[复制链接]

93

主题

29

回帖

546

积分

高级会员

积分
546
 楼主| 发表于 2025-5-5 17:05:54 | 显示全部楼层
指定源:
pip install intel-extension-for-pytorch --index-url https://mirrors.aliyun.com/pypi/simple/ (无)
pip install intel-extension-for-pytorch -i https://mirrors.aliyun.com/pypi/simple (无)
pip install intel-extension-for-pytorch -i https://pypi.tuna.tsinghua.edu.cn/simple (无)
回复

使用道具 举报

93

主题

29

回帖

546

积分

高级会员

积分
546
 楼主| 发表于 2025-5-5 22:26:43 | 显示全部楼层
pip install torch==2.3.0 -f https://developer.intel.com/ipex-whl-stable-xpu
pip install intel_extension_for_pytorch==2.3.0 -f https://developer.intel.com/ipex-whl-stable-xpu
pip install torch==2.3 --index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/us/
pip install intel_extension_for_pytorch==2.3.110+xpu --index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/us/ (这个可以)
回复

使用道具 举报

93

主题

29

回帖

546

积分

高级会员

积分
546
 楼主| 发表于 2025-5-5 22:41:00 | 显示全部楼层
Intel 提供了 针对 XPU 优化的 torchvision 和 torchaudio,但需要从 Intel 的官方仓库 安装,而不是 PyPI。
pip install torchvision==0.18.0 --index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/us/
pip install torchaudio==2.3.0 --index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/us/
注意:必须使用 --index-url 指定 Intel 的仓库,否则会安装 PyPI 上的普通版本(不支持 XPU)
回复

使用道具 举报

93

主题

29

回帖

546

积分

高级会员

积分
546
 楼主| 发表于 2025-5-6 08:32:31 | 显示全部楼层
pip cache purge
回复

使用道具 举报

93

主题

29

回帖

546

积分

高级会员

积分
546
 楼主| 发表于 2025-5-8 10:47:17 | 显示全部楼层
更新镜像:
  1. pip install jupyter -i http://pypi.mirrors.ustc.edu.cn/simple/ --trusted-host=pypi.mirrors.ustc.edu.cn
复制代码
回复

使用道具 举报

93

主题

29

回帖

546

积分

高级会员

积分
546
 楼主| 发表于 2025-5-8 10:51:50 | 显示全部楼层
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则


QQ|Archiver|手机版|小黑屋|Bluetooth-UWB 联盟论坛 ( 京ICP备19003900号-5 )

GMT+8, 2025-12-5 04:37 , Processed in 0.019097 second(s), 26 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表