以下の内容はhttps://touch-sp.hateblo.jp/entry/2025/01/18/144537より取得しました。


IPEX (Intel Extension for PyTorch)の導入

バージョンアップしたり、方法が変わったら適宜追加します。

使用したPC

Ubuntu 24.04
Python 3.12
Intel Arc A770

2025年4月22日記載(torch==2.6.0)

環境構築

Intel OneAPI Basekitのインストールは必要ないようです。
非常に簡単です。

グラフィックドライバーのインストール

こちらに従いました。

PyTorchのインストール

こちらに従いました。

pip install torch==2.6.0+xpu torchvision==0.21.0+xpu torchaudio==2.6.0+xpu --index-url https://download.pytorch.org/whl/xpu
pip install intel-extension-for-pytorch==2.6.10+xpu oneccl_bind_pt==2.6.0+xpu --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/us/

以下のエラーが出ましたが無視して大丈夫でした。

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
torch 2.6.0+xpu requires intel-cmplr-lib-rt==2025.0.2, but you have intel-cmplr-lib-rt 2025.0.4 which is incompatible.
torch 2.6.0+xpu requires intel-cmplr-lib-ur==2025.0.2, but you have intel-cmplr-lib-ur 2025.0.4 which is incompatible.
torch 2.6.0+xpu requires intel-cmplr-lic-rt==2025.0.2, but you have intel-cmplr-lic-rt 2025.0.4 which is incompatible.
torch 2.6.0+xpu requires intel-sycl-rt==2025.0.2, but you have intel-sycl-rt 2025.0.4 which is incompatible.

PyTorchのバージョン

torchaudio==2.6.0+xpu
intel_extension_for_pytorch==2.6.10+xpu

2025年1月18日記載(torch==2.5.1)

環境構築

Intel OneAPI Basekitのインストールは必要ないようです。
非常に簡単です。

グラフィックドライバーのインストール

こちらに従いました。

PyTorchのインストール

こちらに従いました。

python -m pip install torch==2.5.1+cxx11.abi intel-extension-for-pytorch==2.5.10+xpu oneccl_bind_pt==2.5.0+xpu --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/cn/

PyTorchのバージョン

torch==2.5.1+cxx11.abi



以上の内容はhttps://touch-sp.hateblo.jp/entry/2025/01/18/144537より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14