feylur commited on
Commit
71f8089
·
verified ·
1 Parent(s): b129697

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -2
Dockerfile CHANGED
@@ -24,9 +24,15 @@ RUN --mount=type=cache,target=/root/.cache/pip \
24
  pip install scikit-learn==1.3.2 && \
25
  pip install matplotlib==3.7.2
26
 
27
- # --- Step 5b: Install PyTorch stack
28
  RUN --mount=type=cache,target=/root/.cache/pip \
29
- pip install torch==2.1.0 torchvision==0.16.0 torchaudio==2.1.0 --index-url https://download.pytorch.org/whl/cu118
 
 
 
 
 
 
30
 
31
  # --- Step 5c: Install Hugging Face stack
32
  RUN --mount=type=cache,target=/root/.cache/pip \
 
24
  pip install scikit-learn==1.3.2 && \
25
  pip install matplotlib==3.7.2
26
 
27
+ # --- Step 5b: Install PyTorch stack (one-by-one to save RAM)
28
  RUN --mount=type=cache,target=/root/.cache/pip \
29
+ pip install torch==2.1.0 --index-url https://download.pytorch.org/whl/cu118
30
+
31
+ RUN --mount=type=cache,target=/root/.cache/pip \
32
+ pip install torchvision==0.16.0 --index-url https://download.pytorch.org/whl/cu118
33
+
34
+ RUN --mount=type=cache,target=/root/.cache/pip \
35
+ pip install torchaudio==2.1.0 --index-url https://download.pytorch.org/whl/cu118
36
 
37
  # --- Step 5c: Install Hugging Face stack
38
  RUN --mount=type=cache,target=/root/.cache/pip \