Skip to content

Commit 98ceed9

Browse files
authored
Upgrade ipex to 2.6 version for cpu/xpu (#510)
Signed-off-by: kaixuanliu <kaixuan.liu@intel.com>
1 parent 6e4133b commit 98ceed9

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Dockerfile-intel

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ RUN --mount=type=secret,id=actions_cache_url,env=ACTIONS_CACHE_URL \
5858
--mount=type=secret,id=actions_runtime_token,env=ACTIONS_RUNTIME_TOKEN \
5959
cargo build --release --bin text-embeddings-router -F grpc -F python --no-default-features && sccache -s
6060

61-
FROM intel/intel-optimized-pytorch:2.4.0-pip-base AS cpu
61+
FROM intel/intel-extension-for-pytorch:2.6.0-pip-base AS cpu
6262
ENV HUGGINGFACE_HUB_CACHE=/data \
6363
PORT=80
6464

@@ -76,7 +76,7 @@ COPY backends/python/server/text_embeddings_server/models/__init__.py backends/p
7676
COPY backends/python/server/pyproject.toml backends/python/server/pyproject.toml
7777
COPY backends/python/server/requirements-intel.txt backends/python/server/requirements.txt
7878

79-
RUN python -m pip install torch==2.4.0 torchvision torchaudio==2.4.0 --index-url https://download.pytorch.org/whl/cpu
79+
RUN python -m pip install torch==2.6.0 torchvision torchaudio==2.6.0 --index-url https://download.pytorch.org/whl/cpu --no-cache-dir
8080

8181
RUN cd backends/python/server && \
8282
make install
@@ -102,7 +102,7 @@ COPY backends/python/server/requirements-hpu.txt backends/python/server/requirem
102102
RUN cd backends/python/server && \
103103
make install
104104

105-
FROM intel/intel-extension-for-pytorch:2.3.110-xpu AS xpu
105+
FROM intel/intel-extension-for-pytorch:2.6.10-xpu AS xpu
106106

107107
ENV HUGGINGFACE_HUB_CACHE=/data \
108108
PORT=80
@@ -114,9 +114,10 @@ RUN wget -qO - https://repositories.intel.com/gpu/intel-graphics.key | gpg --dea
114114
RUN wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB \
115115
| gpg --dearmor | tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null && echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | tee /etc/apt/sources.list.d/oneAPI.list
116116

117-
RUN apt-get update && apt install -y intel-basekit xpu-smi cmake python3-dev ninja-build pciutils
117+
RUN apt-get update && apt install -y intel-basekit cmake python3-dev ninja-build pciutils
118118
WORKDIR /usr/src
119-
RUN 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 oneccl_bind_pt==2.3.100+xpu --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/us/ --no-cache-dir
119+
RUN pip install torch==2.6.0 torchvision torchaudio --index-url https://download.pytorch.org/whl/xpu --no-cache-dir
120+
RUN 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/ --no-cache-dir
120121

121122
ENV CCL_ROOT=/opt/intel/oneapi/ccl/latest
122123
ENV I_MPI_ROOT=/opt/intel/oneapi/mpi/latest

0 commit comments

Comments
 (0)