Skip to content

Commit fca6e9e

Browse files
Merge pull request opendatahub-io#24 from red-hat-data-services/main
Sync 2.11 with main
2 parents 6b813be + 44ec37d commit fca6e9e

File tree

3 files changed

+24
-10
lines changed

3 files changed

+24
-10
lines changed

.github/workflows/sync-with-upstream.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,6 @@ jobs:
7777
exit 0
7878
fi
7979
80-
echo "Checking if PR is up-to-date"
81-
82-
git fetch ${upstream_url} refs/pull/${pr_number}/head
83-
if git diff --stat --exit-code upstream/main FETCH_HEAD; then
84-
echo "PR is up-to-date"
85-
exit 0
86-
fi
87-
8880
echo "Updating PR \#${pr_number}"
8981
gh pr edit \
9082
$pr_number \

Dockerfile.ubi

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,22 @@ RUN --mount=type=cache,target=/root/.cache/ccache \
125125
CMAKE_BUILD_TYPE=Release \
126126
python3 setup.py bdist_wheel --dist-dir=dist
127127

128+
#################### libsodium Build IMAGE ####################
129+
FROM base as libsodium-builder
130+
131+
RUN microdnf install -y gcc gzip \
132+
&& microdnf clean all
133+
134+
WORKDIR /usr/src/libsodium
135+
136+
ARG LIBSODIUM_VERSION=1.0.20
137+
RUN curl -LO https://github.com/jedisct1/libsodium/releases/download/${LIBSODIUM_VERSION}-RELEASE/libsodium-${LIBSODIUM_VERSION}.tar.gz \
138+
&& tar -xzvf libsodium*.tar.gz \
139+
&& rm -f libsodium*.tar.gz \
140+
&& mv libsodium*/* ./
141+
142+
RUN ./configure --prefix="/usr/" && make && make check
143+
128144
## Release #####################################################################
129145
FROM python-install AS vllm-openai
130146

@@ -143,7 +159,12 @@ COPY extras/custom_cache_manager.py /opt/vllm/lib/python3.11/site-packages/custo
143159
# install vllm wheel first, so that torch etc will be installed
144160
RUN --mount=type=bind,from=build,src=/workspace/dist,target=/workspace/dist \
145161
--mount=type=cache,target=/root/.cache/pip \
146-
pip install dist/*.whl --verbose
162+
pip install $(echo dist/*.whl)'[tensorizer]' --verbose
163+
164+
# Install libsodium for Tensorizer encryption
165+
RUN --mount=type=bind,from=libsodium-builder,src=/usr/src/libsodium,target=/usr/src/libsodium \
166+
cd /usr/src/libsodium \
167+
&& make install
147168

148169
ENV HF_HUB_OFFLINE=1 \
149170
PORT=8000 \
@@ -168,7 +189,7 @@ FROM vllm-openai as vllm-grpc-adapter
168189
USER root
169190

170191
RUN --mount=type=cache,target=/root/.cache/pip \
171-
pip install vllm-tgis-adapter
192+
pip install vllm-tgis-adapter==0.1.3
172193

173194
ENV GRPC_PORT=8033
174195
USER 2000

docs/requirements-docs.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ torch
1111
py-cpuinfo
1212
transformers
1313
openai # Required by docs/source/serving/openai_compatible_server.md's vllm.entrypoints.openai.cli_args
14+
anyio>=4.4.0 # not directly required, pinned by Snyk to avoid a vulnerability

0 commit comments

Comments
 (0)