Skip to content

Commit 3a4b248

Browse files
authored
Merge pull request #1682 from mtchoum1/pytorchllm-uv
[RHOAIENG-17006] Converted the new image pytorch+llmcompressor to work with uv
2 parents c5319e1 + 5181360 commit 3a4b248

File tree

5 files changed

+33074
-13896
lines changed

5 files changed

+33074
-13896
lines changed

jupyter/pytorch+llmcompressor/ubi9-python-3.11/Dockerfile.cuda

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ RUN dnf install -y mesa-libGL skopeo && dnf clean all && rm -rf /var/cache/yum
2828
USER 1001
2929

3030
# Install micropipenv to deploy packages from Pipfile.lock
31-
RUN pip install --no-cache-dir -U "micropipenv[toml]"
31+
RUN pip install --no-cache-dir -U uv
3232

3333
# Install the oc client
3434
RUN curl -L https://mirror.openshift.com/pub/openshift-v4/$(uname -m)/clients/ocp/stable/openshift-client-linux.tar.gz \
@@ -210,11 +210,11 @@ LABEL name="odh-notebook-jupyter-cuda-pytorch-ubi9-python-3.11" \
210210
io.openshift.build.image="quay.io/opendatahub/workbench-images:cuda-jupyter-pytorch-ubi9-python-3.11"
211211

212212
# Install Python packages and Jupyterlab extensions from Pipfile.lock
213-
COPY ${PYTORCH_SOURCE_CODE}/Pipfile.lock ./
213+
COPY ${PYTORCH_SOURCE_CODE}/requirements.txt ./
214214

215215
RUN echo "Installing softwares and packages" && \
216-
micropipenv install --dev && \
217-
rm -f ./Pipfile.lock && \
216+
uv pip install --no-deps -r requirements.txt && \
217+
rm -f ./requirements.txt && \
218218
# setup path for runtime configuration
219219
mkdir /opt/app-root/runtimes && \
220220
# Remove default Elyra runtime-images \

0 commit comments

Comments
 (0)