yalsaffar commited on
Commit
61354cd
·
1 Parent(s): c3ea709

Updated Dockerfile for Hugging Face Spaces deployment

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -1
Dockerfile CHANGED
@@ -46,11 +46,13 @@ ENV LD_LIBRARY_PATH=${CUDA_HOME}/lib64:${LD_LIBRARY_PATH}
46
 
47
  # Create cache directory
48
  RUN mkdir -p /app/cache/huggingface
49
- RUN chmod -R 777 /app/cache/huggingface
 
50
 
51
  # Set environment variables for cache directory
52
  ENV HF_HOME=/app/cache/huggingface
53
  ENV TRANSFORMERS_CACHE=/app/cache/huggingface
 
54
 
55
  # Disable numba caching
56
  ENV NUMBA_CACHE_DIR=/tmp/numba_cache
 
46
 
47
  # Create cache directory
48
  RUN mkdir -p /app/cache/huggingface
49
+ RUN mkdir -p /app/cache/triton
50
+ RUN chmod -R 777 /app/cache
51
 
52
  # Set environment variables for cache directory
53
  ENV HF_HOME=/app/cache/huggingface
54
  ENV TRANSFORMERS_CACHE=/app/cache/huggingface
55
+ ENV TRITON_CACHE_DIR=/app/cache/triton
56
 
57
  # Disable numba caching
58
  ENV NUMBA_CACHE_DIR=/tmp/numba_cache