Spaces:
Sleeping
Sleeping
Updated Dockerfile for Hugging Face Spaces deployment
Browse files- Dockerfile +2 -0
Dockerfile
CHANGED
@@ -47,12 +47,14 @@ ENV LD_LIBRARY_PATH=${CUDA_HOME}/lib64:${LD_LIBRARY_PATH}
|
|
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
|
|
|
47 |
# Create cache directory
|
48 |
RUN mkdir -p /app/cache/huggingface
|
49 |
RUN mkdir -p /app/cache/triton
|
50 |
+
RUN mkdir -p /app/cache/torch_extensions
|
51 |
RUN chmod -R 777 /app/cache
|
52 |
|
53 |
# Set environment variables for cache directory
|
54 |
ENV HF_HOME=/app/cache/huggingface
|
55 |
ENV TRANSFORMERS_CACHE=/app/cache/huggingface
|
56 |
ENV TRITON_CACHE_DIR=/app/cache/triton
|
57 |
+
ENV TORCH_EXTENSIONS_DIR=/app/cache/torch_extensions
|
58 |
|
59 |
# Disable numba caching
|
60 |
ENV NUMBA_CACHE_DIR=/tmp/numba_cache
|