python

intel/python Docker Image

Intel® Distribution for Python* 是增强性能的Python发行版,集成Intel® Math Kernel Library等性能库,可提升程序速度10到100倍,支持Intel dGPU,包含最新驱动和OneAPI运行时库,加速数值计算与机器学习框架。

6 次收藏下载次数: 0状态:社区镜像维护者:intel仓库类型:镜像最近更新:
下载命令
点击查看

Intel® Distribution for Python*

https://www.intel.com/content/www/us/en/developer/tools/oneapi/distribution-for-python.html#gs.9bos9m enhances performance and can improve your program speed from 10 to 100 times faster. It is a Python* distribution that includes the https://www.intel.com/content/www/us/en/developer/tools/oneapi/onemkl.html (oneMKL) and other Intel performance libraries to enable near-native performance through acceleration of core numerical and machine learning packages.

Intel® Distribution for Python* is also available for Intel® dGPUs, that include the latest https://dgpu-docs.intel.com/releases/releases.html and Intel® OneAPI runtime libraries such as https://www.intel.com/content/www/us/en/developer/tools/oneapi/onemkl.html, https://www.intel.com/content/www/us/en/developer/tools/oneapi/dpc-compiler-download.html and https://www.intel.com/content/www/us/en/developer/tools/oneapi/oneccl.html that enable Machine Learning frameworks leverage the XPU device plugin.

Images

The images below include variations for only the core packages in the https://www.intel.com/content/www/us/en/developer/tools/oneapi/distribution-for-python.html#gs.9bos9m installation, or all of the packages.

Tag(s)IDP
3.11-full, latest2025.0.0
3.11-xpu-full2025.0.0
3.10-full,2024.2.0
3.10-core2024.2.0

Run a Performance Sample

To run a performance sample run the following commands:

bash
git clone https://github.com/intel/ai-containers
cd ai-containers/python
docker run --rm -it \
    -v $PWD/tests:/tests \
    intel/python:latest \
    python /tests/perf_sample.py

Compare the results against stock python

In the previous command, you should see a result at the bottom like: Time Consuming: 0.03897857666015625. We can compare this against python:3.11-slim-bullseye

bash
# Use the working directory from the above command
docker run --rm -it \
    -v $PWD/tests:/tests \
    python:3.10-slim-bullseye \
    bash
pip install numpy
python /tests/perf_sample.py

Run a Sanity test using the XPU variant

Use the following command to check the availability of Intel dGPU devices on your system and the presence of Intel® OneAPI runtime libraries.

bash
# Use the working directory from the first command
docker run --rm -it \
    -v $PWD/tests:/tests \
    --device /dev/dri \
    intel/python:3.11-xpu-full \
    bash /tests/xpu_base_layers_test.sh

Build from Source (Advanced)

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:

bash
cd python
docker compose build idp
docker compose run idp

To build the xpu variant of the image, run the following commands:

bash
cd python
docker compose build xpu
docker compose run xpu

You can find the list of services below for each container in the group:

Service NameDescription
idpBase image with https://www.intel.com/content/www/us/en/developer/tools/oneapi/distribution-for-python.html#gs.9bos9m
pipEquivalent python image without https://www.intel.com/content/www/us/en/developer/tools/oneapi/distribution-for-python.html#gs.9bos9m
xpuBase Image for Intel XPU plugin with https://www.intel.com/content/www/us/en/developer/tools/oneapi/distribution-for-python.html#gs.9bos9m

License

View the https://github.com/intel/ai-containers/blob/main/LICENSE for the [Intel® Distribution for Python].

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.

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 python 镜像标签

docker pull docker.xuanyuan.run/intel/python:<标签>

DockerHub 原生拉取命令

docker pull intel/python:<标签>
专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载在线技术支持专业版保障服务可用付费会员免广告