Juna190825 commited on
Commit
6edd395
·
verified ·
1 Parent(s): 2b08608

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -1
Dockerfile CHANGED
@@ -12,7 +12,9 @@ RUN pip install --no-cache-dir \
12
  datasets \
13
  tenacity \
14
  safetensors
15
- # For retry logic
 
 
16
 
17
  # Configure cache
18
  ENV TRANSFORMERS_CACHE="/cache/models"
 
12
  datasets \
13
  tenacity \
14
  safetensors
15
+
16
+ # Avoids installing GPU-specific builds that won’t work in CPU-only environments.
17
+ RUN pip install --no-cache-dir torch==2.1.2+cpu -f https://download.pytorch.org/whl/torch_stable.html
18
 
19
  # Configure cache
20
  ENV TRANSFORMERS_CACHE="/cache/models"