Skip to content

Commit 08b4e49

Browse files
fix onnxruntime-gpu version
1 parent 98429a6 commit 08b4e49

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

Runpod-Docker/Dockerfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,15 @@ RUN git clone https://github.com/deepbeepmeep/Wan2GP.git /opt/wan2gp_source \
2727
# Add custom finetunes after cloning upstream.
2828
COPY finetunes/ltx2_distilled_old_vae.json /opt/wan2gp_source/finetunes/ltx2_distilled_old_vae.json
2929
# Install Python dependencies from the source code.
30+
# Normalize ORT to a CUDA 12 compatible build (RunPod base image is CUDA 12.8.1).
3031
# The GitHub Actions workflow is configured to maximize build space, so we can
3132
# now use a single, clean RUN command for better maintainability.
32-
RUN sed -i -e 's/^torch>=/#torch>=/' -e 's/^torchvision>=/#torchvision>=/' /opt/wan2gp_source/requirements.txt \
33+
RUN sed -i \
34+
-e '/ort-cuda-13-nightly/d' \
35+
-e 's/^onnxruntime-gpu==[^;]*; python_version >= "3.11"/onnxruntime-gpu==1.22.0; python_version >= "3.11"/' \
36+
-e 's/^torch>=/#torch>=/' \
37+
-e 's/^torchvision>=/#torchvision>=/' \
38+
/opt/wan2gp_source/requirements.txt \
3339
&& python3 -m pip install --no-cache-dir -r /opt/wan2gp_source/requirements.txt \
3440
&& python3 -m pip install --no-cache-dir gradio==5.35.0 sageattention==1.0.6 \
3541
&& rm -rf /root/.cache/pip

Runpod-Docker/update-wan2gp.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,13 @@ fi
8989
# Step 5: Update Python dependencies.
9090
# This follows the same logic as the original Dockerfile setup.
9191
echo "Updating Python dependencies from requirements.txt..."
92-
sed -i -e 's/^torch>=/#torch>=/' -e 's/^torchvision>=/#torchvision>=/' requirements.txt
92+
# Keep ORT aligned with CUDA 12.8.1 from the RunPod base image.
93+
sed -i \
94+
-e '/ort-cuda-13-nightly/d' \
95+
-e 's/^onnxruntime-gpu==[^;]*; python_version >= "3.11"/onnxruntime-gpu==1.22.0; python_version >= "3.11"/' \
96+
-e 's/^torch>=/#torch>=/' \
97+
-e 's/^torchvision>=/#torchvision>=/' \
98+
requirements.txt
9399
python3 -m pip install --no-cache-dir -r requirements.txt
94100
python3 -m pip install --no-cache-dir gradio==5.35.0 sageattention==1.0.6
95101
echo "Dependencies updated."

0 commit comments

Comments
 (0)