Skip to content

Commit 391500e

Browse files
committed
Removing shenanigans.
1 parent d8a50e6 commit 391500e

File tree

3 files changed

+5
-722
lines changed

3 files changed

+5
-722
lines changed

Dockerfile-intel

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,15 +98,11 @@ COPY backends/python/server/pyproject.toml backends/python/server/pyproject.toml
9898

9999
# Re-override some deps uv cannot handle them because they are
100100
# git compiled versions.
101-
# uninstall torchvision because sentence-transformers forces the reinstall
102-
# which would crash transformers
103101
RUN cd backends/python/server && \
104102
pip install -U pip uv && \
105103
uv venv && \
106104
cp -r /usr/local/lib/python3.10/dist-packages/* /usr/src/backends/python/server/.venv/lib/python3.10/site-packages/ && \
107-
make install-hpu && \
108-
cp -r /usr/local/lib/python3.10/dist-packages/torch /usr/src/backends/python/server/.venv/lib/python3.10/site-packages/ && \
109-
uv pip uninstall torchvision
105+
make install-hpu
110106

111107
FROM intel/intel-extension-for-pytorch:2.6.10-xpu AS xpu
112108

backends/python/server/pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ override-dependencies = [
6363
# This line should force uv to ignore installing torch, but it doesn't
6464
# seem to work. Therefore there is still an override within Dockerfile-intel
6565
# More info: https://github.com/astral-sh/uv/issues/9174
66-
# "torch; sys_platform == 'never' and extra == 'hpu'",
66+
"torch; sys_platform == 'never' and extra == 'hpu'",
67+
"torchvision; sys_platform == 'never' and extra == 'hpu'",
6768
]
6869
constraint-dependencies = [
6970
"torch==2.5.1; extra == 'hpu'",

0 commit comments

Comments
 (0)