Skip to content

Commit

Permalink
fix: install torch separated from everything else
Browse files Browse the repository at this point in the history
  • Loading branch information
TimPietrusky committed Oct 6, 2024
1 parent 97b2c2e commit 29f0cb5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ FROM runpod/base:0.6.1-cuda12.2.0
RUN apt-get update && apt-get install -y ffmpeg aria2 git unzip

# Install Python dependencies
RUN pip install --no-cache-dir torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121 \
opencv-python imageio imageio-ffmpeg ffmpeg-python av runpod \
RUN pip install --no-cache-dir torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121 && \
pip install --no-cache-dir opencv-python imageio imageio-ffmpeg ffmpeg-python av runpod \
xformers==0.0.25 torchsde==0.2.6 einops==0.8.0 diffusers==0.28.0 transformers==4.41.2 accelerate==0.30.1


# Clone the ComfyUI repository
RUN git clone https://github.com/comfyanonymous/ComfyUI /content/ComfyUI

Expand Down
10 changes: 10 additions & 0 deletions flux1-dev-lora-worker-project/.runpodignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Similar to .gitignore
# Matches do not sync to the Project Pod or cause the Pod to reload.

Dockerfile
__pycache__/
*.pyc
.*.swp
.git/
*.tmp
*.log

0 comments on commit 29f0cb5

Please sign in to comment.