如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
https://intel.github.io/intel-extension-for-pytorch/ extends PyTorch* with up-to-date feature optimizations for an extra performance boost on Intel hardware.
On Intel CPUs optimizations take advantage of the following instuction sets:
On Intel GPUs Intel® Extension for PyTorch* provides easy GPU acceleration through the PyTorch* xpu device. The following Intel GPUs are supported:
Images available here start with the https://hub.docker.com/_/ubuntu base image with https://intel.github.io/intel-extension-for-pytorch/ built for different use cases as well as some additional software. The https://github.com/intel/ai-containers/blob/main/python/Dockerfile is used to generate The images below at https://github.com/intel/ai-containers.
Note: There are two dockerhub repositories (
intel/intel-extension-for-pytorchandintel/intel-optimized-pytorch) that are routinely updated with the latest images, however, some legacy images have not be published to both repositories.
The images below include support for both CPU and GPU optimizations:
| Tag(s) | Pytorch | IPEX | Driver | Dockerfile |
|---|---|---|---|---|
2.8.10-xpu-pip-base,2.8.10-xpu | https://github.com/pytorch/pytorch/releases/tag/v2.8.0 | https://github.com/intel/intel-extension-for-pytorch/releases/tag/v2.8.10%2Bxpu | [1099] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.7.10-xpu-pip-base,2.7.10-xpu | https://github.com/pytorch/pytorch/releases/tag/v2.7.0 | https://github.com/intel/intel-extension-for-pytorch/releases/tag/v2.7.10%2Bxpu | [1077] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.6.10-xpu-pip-base,2.6.10-xpu | https://github.com/pytorch/pytorch/releases/tag/v2.6.0 | https://github.com/intel/intel-extension-for-pytorch/releases/tag/v2.6.10%2Bxpu | [1077] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.5.10-xpu-pip-base,2.5.10-xpu | https://github.com/pytorch/pytorch/releases/tag/v2.5.1 | https://github.com/intel/intel-extension-for-pytorch/releases/tag/v2.5.10%2Bxpu | [1057] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.3.110-xpu-pip-base,2.3.110-xpu | https://github.com/pytorch/pytorch/tree/v2.3.1 | https://github.com/intel/intel-extension-for-pytorch/releases/tag/v2.3.110%2Bxpu | [950] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.1.40-xpu-pip-base,2.1.40-xpu | https://github.com/pytorch/pytorch/releases/tag/v2.1.0 | https://github.com/intel/intel-extension-for-pytorch/releases/tag/v2.1.40%2Bxpu | [914] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.1.30-xpu | https://github.com/pytorch/pytorch/releases/tag/v2.1.0 | https://github.com/intel/intel-extension-for-pytorch/releases/tag/v2.1.30%2Bxpu | [803] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.1.20-xpu | https://github.com/pytorch/pytorch/releases/tag/v2.1.0 | https://github.com/intel/intel-extension-for-pytorch/releases/tag/v2.1.20%2Bxpu | [803] | https://github.com/intel/ai-containers/blob/v0.3.4/pytorch/Dockerfile |
2.1.10-xpu | https://github.com/pytorch/pytorch/releases/tag/v2.1.0 | https://github.com/intel/intel-extension-for-pytorch/releases/tag/v2.1.10%2Bxpu | [736] | https://github.com/intel/ai-containers/blob/v0.2.3/pytorch/Dockerfile |
xpu-flex-2.0.110-xpu | https://github.com/pytorch/pytorch/releases/tag/v2.0.1 | https://github.com/intel/intel-extension-for-pytorch/releases/tag/v2.0.110%2Bxpu | [647] | https://github.com/intel/ai-containers/blob/v0.1.0/pytorch/Dockerfile |
bashdocker run -it --rm \ --device /dev/dri \ -v /dev/dri/by-path:/dev/dri/by-path \ --ipc=host \ intel/intel-extension-for-pytorch:2.8.10-xpu
The images below additionally include Jupyter Notebook server:
| Tag(s) | Pytorch | IPEX | Driver | Jupyter Port | Dockerfile |
|---|---|---|---|---|---|
2.8.10-xpu-pip-jupyter | https://github.com/pytorch/pytorch/releases/tag/v2.8.0 | https://github.com/intel/intel-extension-for-pytorch/releases/tag/v2.8.10%2Bxpu | [1099] | 8888 | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.7.10-xpu-pip-jupyter | https://github.com/pytorch/pytorch/releases/tag/v2.7.0 | https://github.com/intel/intel-extension-for-pytorch/releases/tag/v2.7.10%2Bxpu | [1077] | 8888 | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.6.10-xpu-pip-jupyter | https://github.com/pytorch/pytorch/releases/tag/v2.6.0 | https://github.com/intel/intel-extension-for-pytorch/releases/tag/v2.6.10%2Bxpu | [1077] | 8888 | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.5.10-xpu-pip-jupyter | https://github.com/pytorch/pytorch/releases/tag/v2.5.1 | https://github.com/intel/intel-extension-for-pytorch/releases/tag/v2.5.10%2Bxpu | [1057] | 8888 | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.3.110-xpu-pip-jupyter | https://github.com/pytorch/pytorch/tree/v2.3.1 | https://github.com/intel/intel-extension-for-pytorch/releases/tag/v2.3.110%2Bxpu | [950] | 8888 | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.1.40-xpu-pip-jupyter | https://github.com/pytorch/pytorch/releases/tag/v2.1.0 | https://github.com/intel/intel-extension-for-pytorch/releases/tag/v2.1.40%2Bxpu | [914] | 8888 | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.1.20-xpu-pip-jupyter | https://github.com/pytorch/pytorch/releases/tag/v2.1.0 | https://github.com/intel/intel-extension-for-pytorch/releases/tag/v2.1.20%2Bxpu | [803] | 8888 | https://github.com/intel/ai-containers/blob/v0.3.4/pytorch/Dockerfile |
2.1.10-xpu-pip-jupyter | https://github.com/pytorch/pytorch/releases/tag/v2.1.0 | https://github.com/intel/intel-extension-for-pytorch/releases/tag/v2.1.10%2Bxpu | [736] | 8888 | https://github.com/intel/ai-containers/blob/v0.2.3/pytorch/Dockerfile |
bashdocker run -it --rm \ -p 8888:8888 \ --device /dev/dri \ -v /dev/dri/by-path:/dev/dri/by-path \ intel/intel-extension-for-pytorch:2.8.10-xpu-pip-jupyter
After running the command above, copy the URL (something like http://127.0.0.1:$PORT/?token=***) into your browser to access the notebook server.
The images below are built only with CPU optimizations (GPU acceleration support was deliberately excluded):
| Tag(s) | Pytorch | IPEX | Dockerfile |
|---|---|---|---|
2.8.0-pip-base, latest | https://github.com/pytorch/pytorch/releases/tag/v2.8.0 | [v2.8.0+cpu] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.7.0-pip-base | https://github.com/pytorch/pytorch/releases/tag/v2.7.0 | [v2.7.0+cpu] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.7.0-pip-base | https://github.com/pytorch/pytorch/releases/tag/v2.7.0 | [v2.7.0+cpu] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.6.0-pip-base | https://github.com/pytorch/pytorch/releases/tag/v2.6.0 | [v2.6.0+cpu] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.5.0-pip-base | https://github.com/pytorch/pytorch/releases/tag/v2.5.0 | [v2.5.0+cpu] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.4.0-pip-base | https://github.com/pytorch/pytorch/releases/tag/v2.4.0 | [v2.4.0+cpu] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.3.0-pip-base | https://github.com/pytorch/pytorch/releases/tag/v2.3.0 | [v2.3.0+cpu] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.2.0-pip-base | https://github.com/pytorch/pytorch/releases/tag/v2.2.0 | [v2.2.0+cpu] | https://github.com/intel/ai-containers/blob/v0.3.4/pytorch/Dockerfile |
2.1.0-pip-base | https://github.com/pytorch/pytorch/releases/tag/v2.1.0 | [v2.1.0+cpu] | https://github.com/intel/ai-containers/blob/v0.2.3/pytorch/Dockerfile |
2.0.0-pip-base | https://github.com/pytorch/pytorch/releases/tag/v2.0.0 | [v2.0.0+cpu] | https://github.com/intel/ai-containers/blob/v0.1.0/pytorch/Dockerfile |
bashdocker run -it --rm intel/intel-extension-for-pytorch:latest
The images below additionally include Jupyter Notebook server:
| Tag(s) | Pytorch | IPEX | Dockerfile |
|---|---|---|---|
2.8.0-pip-jupyter | https://github.com/pytorch/pytorch/releases/tag/v2.8.0 | [v2.8.0+cpu] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.7.0-pip-jupyter | https://github.com/pytorch/pytorch/releases/tag/v2.7.0 | [v2.7.0+cpu] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.6.0-pip-jupyter | https://github.com/pytorch/pytorch/releases/tag/v2.6.0 | [v2.6.0+cpu] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.5.0-pip-jupyter | https://github.com/pytorch/pytorch/releases/tag/v2.5.0 | [v2.5.0+cpu] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.4.0-pip-jupyter | https://github.com/pytorch/pytorch/releases/tag/v2.4.0 | [v2.4.0+cpu] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.3.0-pip-jupyter | https://github.com/pytorch/pytorch/releases/tag/v2.3.0 | [v2.3.0+cpu] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.2.0-pip-jupyter | https://github.com/pytorch/pytorch/releases/tag/v2.2.0 | [v2.2.0+cpu] | https://github.com/intel/ai-containers/blob/v0.3.4/pytorch/Dockerfile |
2.1.0-pip-jupyter | https://github.com/pytorch/pytorch/releases/tag/v2.1.0 | [v2.1.0+cpu] | https://github.com/intel/ai-containers/blob/v0.2.3/pytorch/Dockerfile |
2.0.0-pip-jupyter | https://github.com/pytorch/pytorch/releases/tag/v2.0.0 | [v2.0.0+cpu] | https://github.com/intel/ai-containers/blob/v0.1.0/pytorch/Dockerfile |
bashdocker run -it --rm \ -p 8888:8888 \ -v $PWD/workspace:/workspace \ -w /workspace \ intel/intel-extension-for-pytorch:2.8.0-pip-jupyter
After running the command above, copy the URL (something like http://127.0.0.1:$PORT/?token=***) into your browser to access the notebook server.
The images below additionally include Intel® oneAPI Collective Communications Library (oneCCL) and Neural Compressor (https://github.com/intel/neural-compressor):
| Tag(s) | Pytorch | IPEX | oneCCL | INC | Dockerfile |
|---|---|---|---|---|---|
2.4.0-pip-multinode | https://github.com/pytorch/pytorch/releases/tag/v2.4.0 | [v2.4.0+cpu] | [v2.4.0][ccl-v2.4.0] | https://github.com/ | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.3.0-pip-multinode | https://github.com/pytorch/pytorch/releases/tag/v2.3.0 | [v2.3.0+cpu] | [v2.3.0][ccl-v2.3.0] | [v2.6] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.2.0-pip-multinode | https://github.com/pytorch/pytorch/releases/tag/v2.2.2 | [v2.2.0+cpu] | [v2.2.0][ccl-v2.2.0] | [v2.6] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.1.100-pip-mulitnode | https://github.com/pytorch/pytorch/releases/tag/v2.1.2 | [v2.1.100+cpu] | [v2.1.0][ccl-v2.1.0] | [v2.6] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.0.100-pip-multinode | https://github.com/pytorch/pytorch/releases/tag/v2.0.1 | [v2.0.100+cpu] | [v2.0.0][ccl-v2.0.0] | [v2.6] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
[!NOTE] Passwordless SSH connection is also enabled in the image, but the container does not contain any SSH ID keys. The user needs to mount those keys at
/root/.ssh/id_rsaand/etc/ssh/authorized_keys.
[!TIP] Before mounting any keys, modify the permissions of those files with
chmod 600 authorized_keys; chmod 600 id_rsato grant read access for the default user account.
Setup and Run IPEX Multi-Node Container
[!IMPORTANT] Maintainence, Bug Fixes, and Releases of https://intel.github.io/intel-extension-for-pytorch/ Multi-Node Container for Xeon Processors have ceased development. The last supported version is
2.4.0. For future releases, please use the https://intel.github.io/intel-extension-for-pytorch/ Multi-Node Container for XPU.
Some additional assembly is required to utilize this container with OpenSSH. To perform any kind of DDP (Distributed Data Parallel) execution, containers are assigned the roles of launcher and worker respectively:
SSH Server (Worker)
/etc/ssh/authorized_keysSSH Client (Launcher)
/root/.ssh/id_rsaTo add these files correctly please follow the steps described below.
Setup ID Keys
You can use the commands provided below to generate the identity keys for OpenSSH.
bashssh-keygen -q -N "" -t rsa -b 4096 -f ./id_rsa touch authorized_keys cat id_rsa.pub >> authorized_keys
Configure the permissions and ownership for all of the files you have created so far
bashchmod 600 id_rsa config authorized_keys chown root:root id_rsa.pub id_rsa config authorized_keys
Create a hostfile for torchrun or ipexrun. (Optional)
txtHost host1 HostName <Hostname of host1> IdentitiesOnly yes IdentityFile ~/.root/id_rsa Port <SSH Port> Host host2 HostName <Hostname of host2> IdentitiesOnly yes IdentityFile ~/.root/id_rsa Port <SSH Port> ...
Configure Intel® oneAPI Collective Communications Library in your python script
pythonimport oneccl_bindings_for_pytorch import os dist.init_process_group( backend="ccl", init_method="tcp://127.0.0.1:3022", world_size=int(os.environ.get("WORLD_SIZE")), rank=int(os.environ.get("RANK")), )
Now start the workers and execute DDP on the launcher
Worker run command:
bashdocker run -it --rm \ --net=host \ -v $PWD/authorized_keys:/etc/ssh/authorized_keys \ -v $PWD/tests:/workspace/tests \ -w /workspace \ intel/intel-extension-for-pytorch:2.4.0-pip-multinode \ bash -c '/usr/sbin/sshd -D'
Launcher run command:
bashdocker run -it --rm \ --net=host \ -v $PWD/id_rsa:/root/.ssh/id_rsa \ -v $PWD/tests:/workspace/tests \ -v $PWD/hostfile:/workspace/hostfile \ -w /workspace \ intel/intel-extension-for-pytorch:2.4.0-pip-multinode \ bash -c 'ipexrun cpu --nnodes 2 --nprocs-per-node 1 --master-addr 127.0.0.1 --master-port 3022 /workspace/tests/ipex-resnet50.py --ipex --device cpu --backend ccl'
[!NOTE] Intel® MPI can be configured based on your machine settings. If the above commands do not work for you, see the documentation for how to configure based on your network.
Enable https://github.com/microsoft/DeepSpeed optimizations
To enable https://github.com/microsoft/DeepSpeed optimizations with Intel® oneAPI Collective Communications Library, add the following to your python script:
pythonimport deepspeed # Rather than dist.init_process_group(), use deepspeed.init_distributed() deepspeed.init_distributed(backend="ccl")
Additionally, if you have a DeepSpeed* configuration you can use the below command as your launcher to run your script with that configuration:
bashdocker run -it --rm \ --net=host \ -v $PWD/id_rsa:/root/.ssh/id_rsa \ -v $PWD/tests:/workspace/tests \ -v $PWD/hostfile:/workspace/hostfile \ -v $PWD/ds_config.json:/workspace/ds_config.json \ -w /workspace \ intel/intel-extension-for-pytorch:2.4.0-pip-multinode \ bash -c 'deepspeed --launcher IMPI \ --master_addr 127.0.0.1 --master_port 3022 \ --deepspeed_config ds_config.json --hostfile /workspace/hostfile \ /workspace/tests/ipex-resnet50.py --ipex --device cpu --backend ccl --deepspeed'
The image below is an extension of the IPEX Multi-Node Container designed to run Hugging Face Generative AI scripts. The container has the typical installations needed to run and fine tune PyTorch generative text models from Hugging Face. It can be used to run multinode jobs using the same instructions from the IPEX Multi-Node container.
| Tag(s) | Pytorch | IPEX | oneCCL | HF Transformers | Dockerfile |
|---|---|---|---|---|---|
2.4.0-pip-multinode-hf-4.44.0-genai | https://github.com/pytorch/pytorch/releases/tag/v2.4.0 | [v2.4.0+cpu] | [v2.4.0][ccl-v2.4.0] | [v4.44.0] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
Below is an example that shows single node job with a finetune.py script.
bash# Change into home directory first and run the command docker run -it \ -v $PWD/workflows/charts/huggingface-llm/scripts:/workspace/scripts \ -w /workspace/scripts \ intel/intel-extension-for-pytorch:2.4.0-pip-multinode-hf-4.44.0-genai \ bash -c 'python finetune.py <script-args>'
The images below are https://github.com/pytorch/serve with CPU Optimizations:
| Tag(s) | Pytorch | IPEX | Dockerfile |
|---|---|---|---|
2.8.0-serving-cpu | https://github.com/pytorch/pytorch/releases/tag/v2.8.0 | [v2.8.0+cpu] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.7.0-serving-cpu | https://github.com/pytorch/pytorch/releases/tag/v2.7.0 | [v2.7.0+cpu] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.6.0-serving-cpu | https://github.com/pytorch/pytorch/releases/tag/v2.6.0 | [v2.6.0+cpu] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.5.0-serving-cpu | https://github.com/pytorch/pytorch/releases/tag/v2.5.0 | [v2.5.0+cpu] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.4.0-serving-cpu | https://github.com/pytorch/pytorch/releases/tag/v2.4.0 | [v2.4.0+cpu] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.3.0-serving-cpu | https://github.com/pytorch/pytorch/releases/tag/v2.3.0 | [v2.3.0+cpu] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.2.0-serving-cpu | https://github.com/pytorch/pytorch/releases/tag/v2.2.0 | [v2.2.0+cpu] | https://github.com/intel/ai-containers/blob/v0.3.4/pytorch/Dockerfile |
For more details, follow the procedure in the https://github.com/pytorch/serve/blob/master/examples/intel_extension_for_pytorch/README.md instructions.
The images below are https://github.com/pytorch/serve with XPU Optimizations:
| Tag(s) | Pytorch | IPEX | Driver | Dockerfile |
|---|---|---|---|---|
2.8.10-serving-xpu | https://github.com/pytorch/pytorch/releases/tag/v2.8.0 | https://github.com/intel/intel-extension-for-pytorch/releases/tag/v2.8.10%2Bxpu | [1099] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.7.10-serving-xpu | https://github.com/pytorch/pytorch/releases/tag/v2.7.0 | https://github.com/intel/intel-extension-for-pytorch/releases/tag/v2.7.10%2Bxpu | [1077] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.6.10-serving-xpu | https://github.com/pytorch/pytorch/releases/tag/v2.6.0 | https://github.com/intel/intel-extension-for-pytorch/releases/tag/v2.6.10%2Bxpu | [1077] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.5.10-serving-xpu | https://github.com/pytorch/pytorch/releases/tag/v2.5.1 | https://github.com/intel/intel-extension-for-pytorch/releases/tag/v2.5.10%2Bxpu | [1057] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
The images below are built only with CPU optimizations (GPU acceleration support was deliberately excluded) and include Intel® Distribution for Python*:
| Tag(s) | Pytorch | IPEX | Dockerfile |
|---|---|---|---|
2.8.0-idp-base | https://github.com/pytorch/pytorch/releases/tag/v2.8.0 | [v2.8.0+cpu] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.7.0-idp-base | https://github.com/pytorch/pytorch/releases/tag/v2.7.0 | [v2.7.0+cpu] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.6.0-idp-base | https://github.com/pytorch/pytorch/releases/tag/v2.6.0 | [v2.6.0+cpu] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.5.0-idp-base | https://github.com/pytorch/pytorch/releases/tag/v2.5.0 | [v2.5.0+cpu] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.4.0-idp-base | https://github.com/pytorch/pytorch/releases/tag/v2.4.0 | [v2.4.0+cpu] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.3.0-idp-base | https://github.com/pytorch/pytorch/releases/tag/v2.3.0 | [v2.3.0+cpu] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.2.0-idp-base | https://github.com/pytorch/pytorch/releases/tag/v2.2.0 | [v2.2.0+cpu] | https://github.com/intel/ai-containers/blob/v0.3.4/pytorch/Dockerfile |
2.1.0-idp-base | https://github.com/pytorch/pytorch/releases/tag/v2.1.0 | [v2.1.0+cpu] | https://github.com/intel/ai-containers/blob/v0.2.3/pytorch/Dockerfile |
2.0.0-idp-base | https://github.com/pytorch/pytorch/releases/tag/v2.0.0 | [v2.0.0+cpu] | https://github.com/intel/ai-containers/blob/v0.1.0/pytorch/Dockerfile |
The images below additionally include Jupyter Notebook server:
| Tag(s) | Pytorch | IPEX | Dockerfile |
|---|---|---|---|
2.8.0-idp-jupyter | https://github.com/pytorch/pytorch/releases/tag/v2.8.0 | [v2.8.0+cpu] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.7.0-idp-jupyter | https://github.com/pytorch/pytorch/releases/tag/v2.7.0 | [v2.7.0+cpu] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.6.0-idp-jupyter | https://github.com/pytorch/pytorch/releases/tag/v2.6.0 | [v2.6.0+cpu] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.5.0-idp-jupyter | https://github.com/pytorch/pytorch/releases/tag/v2.5.0 | [v2.5.0+cpu] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.4.0-idp-jupyter | https://github.com/pytorch/pytorch/releases/tag/v2.4.0 | [v2.4.0+cpu] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.3.0-idp-jupyter | https://github.com/pytorch/pytorch/releases/tag/v2.3.0 | [v2.3.0+cpu] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.2.0-idp-jupyter | https://github.com/pytorch/pytorch/releases/tag/v2.2.0 | [v2.2.0+cpu] | https://github.com/intel/ai-containers/blob/v0.3.4/pytorch/Dockerfile |
2.1.0-idp-jupyter | https://github.com/pytorch/pytorch/releases/tag/v2.1.0 | [v2.1.0+cpu] | https://github.com/intel/ai-containers/blob/v0.2.3/pytorch/Dockerfile |
2.0.0-idp-jupyter | https://github.com/pytorch/pytorch/releases/tag/v2.0.0 | [v2.0.0+cpu] | https://github.com/intel/ai-containers/blob/v0.1.0/pytorch/Dockerfile |
The images below additionally include Intel® oneAPI Collective Communications Library (oneCCL) and Neural Compressor (https://github.com/intel/neural-compressor):
| Tag(s) | Pytorch | IPEX | oneCCL | INC | Dockerfile |
|---|---|---|---|---|---|
2.4.0-idp-multinode | https://github.com/pytorch/pytorch/releases/tag/v2.4.0 | [v2.4.0+cpu] | [v2.4.0][ccl-v2.3.0] | https://github.com/ | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.3.0-idp-multinode | https://github.com/pytorch/pytorch/releases/tag/v2.3.0 | [v2.3.0+cpu] | [v2.3.0][ccl-v2.3.0] | [v2.6] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.2.0-idp-multinode | https://github.com/pytorch/pytorch/releases/tag/v2.2.0 | [v2.2.0+cpu] | [v2.2.0][ccl-v2.2.0] | [v2.4.1] | https://github.com/intel/ai-containers/blob/v0.3.4/pytorch/Dockerfile |
2.1.0-idp-mulitnode | https://github.com/pytorch/pytorch/releases/tag/v2.1.0 | [v2.1.0+cpu] | [v2.1.0][ccl-v2.1.0] | [v2.3.1] | https://github.com/intel/ai-containers/blob/v0.2.3/pytorch/Dockerfile |
2.0.0-idp-multinode | https://github.com/pytorch/pytorch/releases/tag/v2.0.0 | [v2.0.0+cpu] | [v2.0.0][ccl-v2.0.0] | [v2.1.1] | https://github.com/intel/ai-containers/blob/v0.1.0/pytorch/Dockerfile |
The images below are built only with CPU and GPU optimizations and include Intel® Distribution for Python*:
| Tag(s) | Pytorch | IPEX | Driver | Dockerfile |
|---|---|---|---|---|
2.8.10-xpu-idp-base | https://github.com/pytorch/pytorch/releases/tag/v2.8.0 | https://github.com/intel/intel-extension-for-pytorch/releases/tag/v2.8.10%2Bxpu | [1099] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.7.10-xpu-idp-base | https://github.com/pytorch/pytorch/releases/tag/v2.7.0 | https://github.com/intel/intel-extension-for-pytorch/releases/tag/v2.7.10%2Bxpu | [1077] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.6.10-xpu-idp-base | https://github.com/pytorch/pytorch/releases/tag/v2.6.0 | https://github.com/intel/intel-extension-for-pytorch/releases/tag/v2.6.10%2Bxpu | [1077] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.5.10-xpu-idp-base | https://github.com/pytorch/pytorch/releases/tag/v2.5.1 | https://github.com/intel/intel-extension-for-pytorch/releases/tag/v2.5.10%2Bxpu | [1057] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.3.110-xpu-idp-base | https://github.com/pytorch/pytorch/tree/v2.3.1 | https://github.com/intel/intel-extension-for-pytorch/releases/tag/v2.3.110%2Bxpu | [950] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.1.40-xpu-idp-base | https://github.com/pytorch/pytorch/releases/tag/v2.1.0 | https://github.com/intel/intel-extension-for-pytorch/releases/tag/v2.1.40%2Bxpu | [914] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.1.30-xpu-idp-base | https://github.com/pytorch/pytorch/releases/tag/v2.1.0 | https://github.com/intel/intel-extension-for-pytorch/releases/tag/v2.1.30%2Bxpu | [803] | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.1.10-xpu-idp-base | https://github.com/pytorch/pytorch/releases/tag/v2.1.0 | https://github.com/intel/intel-extension-for-pytorch/releases/tag/v2.1.10%2Bxpu | [736] | https://github.com/intel/ai-containers/blob/v0.2.3/pytorch/Dockerfile |
The images below additionally include Jupyter Notebook server:
| Tag(s) | Pytorch | IPEX | Driver | Jupyter Port | Dockerfile |
|---|---|---|---|---|---|
2.8.10-xpu-idp-jupyter | https://github.com/pytorch/pytorch/releases/tag/v2.8.0 | https://github.com/intel/intel-extension-for-pytorch/releases/tag/v2.8.10%2Bxpu | [1099] | 8888 | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.7.10-xpu-idp-jupyter | https://github.com/pytorch/pytorch/releases/tag/v2.7.0 | https://github.com/intel/intel-extension-for-pytorch/releases/tag/v2.7.10%2Bxpu | [1077] | 8888 | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.6.10-xpu-idp-jupyter | https://github.com/pytorch/pytorch/releases/tag/v2.6.0 | https://github.com/intel/intel-extension-for-pytorch/releases/tag/v2.6.10%2Bxpu | [1077] | 8888 | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.5.10-xpu-idp-jupyter | https://github.com/pytorch/pytorch/releases/tag/v2.5.1 | https://github.com/intel/intel-extension-for-pytorch/releases/tag/v2.5.10%2Bxpu | [1057] | 8888 | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.3.110-xpu-idp-jupyter | https://github.com/pytorch/pytorch/tree/v2.3.1 | https://github.com/intel/intel-extension-for-pytorch/releases/tag/v2.3.110%2Bxpu | [950] | 8888 | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.1.40-xpu-idp-jupyter | https://github.com/pytorch/pytorch/releases/tag/v2.1.0 | https://github.com/intel/intel-extension-for-pytorch/releases/tag/v2.1.40%2Bxpu | [914] | 8888 | https://github.com/intel/ai-containers/blob/main/pytorch/Dockerfile |
2.1.20-xpu-idp-jupyter | https://github.com/pytorch/pytorch/releases/tag/v2.1.0 | https://github.com/intel/intel-extension-for-pytorch/releases/tag/v2.1.20%2Bxpu | [803] | 8888 | https://github.com/intel/ai-containers/blob/v0.3.4/pytorch/Dockerfile |
2.1.10-xpu-idp-jupyter | https://github.com/pytorch/pytorch/releases/tag/v2.1.0 | https://github.com/intel/intel-extension-for-pytorch/releases/tag/v2.1.10%2Bxpu | [736] | 8888 | https://github.com/intel/ai-containers/blob/v0.2.3/pytorch/Dockerfile |
To build the images from source, clone the https://github.com/intel/ai-containers repository, follow the main README.md file to setup your environment, and run the following command:
bashcd pytorch docker compose build ipex-base docker compose run ipex-base
You can find the list of services below for each container in the group:
| Service Name | Description |
|---|---|
ipex-base | Base image with https://intel.github.io/intel-extension-for-pytorch/ |
jupyter | Adds Jupyter Notebook server |
multinode | Adds Intel® oneAPI Collective Communications Library and https://github.com/intel/neural-compressor |
xpu | Adds Intel GPU Support |
xpu-jupyter | Adds Jupyter notebook server to GPU image |
serving | https://github.com/pytorch/serve |
The following images are available for MLPerf-optimized workloads. Instructions are available at '[Get Started with Intel MLPerf]'.
| Tag(s) | Base OS | MLPerf Round | Target Platform |
|---|---|---|---|
mlperf-inference-4.1-resnet50 | rockylinux:8.7 | [Inference v4.1] | Intel(R) Xeon(R) Platinum 8592+ |
mlperf-inference-4.1-retinanet | ubuntu:22.04 | [Inference v4.1] | Intel(R) Xeon(R) Platinum 8592+ |
mlperf-inference-4.1-gptj | ubuntu:22.04 | [Inference v4.1] | Intel(R) Xeon(R) Platinum 8592+ |
mlperf-inference-4.1-bert | ubuntu:22.04 | [Inference v4.1] | Intel(R) Xeon(R) Platinum 8592+ |
mlperf-inference-4.1-dlrmv2 | rockylinux:8.7 | [Inference v4.1] | Intel(R) Xeon(R) Platinum 8592+ |
mlperf-inference-4.1-3dunet | ubuntu:22.04 | [Inference v4.1] | Intel(R) Xeon(R) Platinum 8592+ |
View the https://github.com/intel/intel-extension-for-pytorch/blob/main/LICENSE for the https://intel.github.io/intel-extension-for-pytorch/.
The images below also contain other software which may be under other licenses (such as Pytorch*, Jupyter*, Bash, etc. from the base).
It is the image user's responsibility to ensure that any use of The images below comply with any relevant licenses for all software contained within.
* Other names and brands may be claimed as the property of others.
以下是 intel/intel-extension-for-pytorch 相关的常用 Docker 镜像,适用于 不同场景 等不同场景:
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务