File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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.
2828COPY 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
Original file line number Diff line number Diff line change 8989# Step 5: Update Python dependencies.
9090# This follows the same logic as the original Dockerfile setup.
9191echo " 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
9399python3 -m pip install --no-cache-dir -r requirements.txt
94100python3 -m pip install --no-cache-dir gradio==5.35.0 sageattention==1.0.6
95101echo " Dependencies updated."
You can’t perform that action at this time.
0 commit comments