File tree Expand file tree Collapse file tree 3 files changed +5
-722
lines changed Expand file tree Collapse file tree 3 files changed +5
-722
lines changed Original file line number Diff line number Diff line change @@ -98,15 +98,11 @@ COPY backends/python/server/pyproject.toml backends/python/server/pyproject.toml
98
98
99
99
# Re-override some deps uv cannot handle them because they are
100
100
# git compiled versions.
101
- # uninstall torchvision because sentence-transformers forces the reinstall
102
- # which would crash transformers
103
101
RUN cd backends/python/server && \
104
102
pip install -U pip uv && \
105
103
uv venv && \
106
104
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
110
106
111
107
FROM intel/intel-extension-for-pytorch:2.6.10-xpu AS xpu
112
108
Original file line number Diff line number Diff line change @@ -63,7 +63,8 @@ override-dependencies = [
63
63
# This line should force uv to ignore installing torch, but it doesn't
64
64
# seem to work. Therefore there is still an override within Dockerfile-intel
65
65
# 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'" ,
67
68
]
68
69
constraint-dependencies = [
69
70
" torch==2.5.1; extra == 'hpu'" ,
You can’t perform that action at this time.
0 commit comments