cigol123 commited on
Commit
3f04c85
·
verified ·
1 Parent(s): 6167496

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -1
Dockerfile CHANGED
@@ -4,7 +4,9 @@ FROM python:3.9-slim
4
  # Set environment variables for Hugging Face cache
5
  ENV TRANSFORMERS_CACHE=/tmp/.cache
6
  ENV HF_DATASETS_CACHE=/tmp/.cache
7
- ENV TORCH_HOME=/tmp/.cache # Set PyTorch cache directory
 
 
8
 
9
  # Create the cache directory and set permissions
10
  RUN mkdir -p /tmp/.cache && chmod -R 777 /tmp/.cache
 
4
  # Set environment variables for Hugging Face cache
5
  ENV TRANSFORMERS_CACHE=/tmp/.cache
6
  ENV HF_DATASETS_CACHE=/tmp/.cache
7
+
8
+ # Set PyTorch cache directory
9
+ ENV TORCH_HOME=/tmp/.cache
10
 
11
  # Create the cache directory and set permissions
12
  RUN mkdir -p /tmp/.cache && chmod -R 777 /tmp/.cache