Spaces:
Runtime error
Runtime error
kevinwang676
commited on
Commit
•
ba7d697
1
Parent(s):
cdedc22
Update Dockerfile
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
@@ -34,7 +34,7 @@ RUN mkdir -p /content/numbacache
|
|
34 |
RUN chmod -R 777 /content/numbacache
|
35 |
|
36 |
# try fix
|
37 |
-
# PermissionError: [Errno 13] Permission denied: '/.cache' (
|
38 |
RUN mkdir -p /content/demucscache
|
39 |
RUN chmod -R 777 /content/demucscache
|
40 |
RUN ln -s /content/demucscache /.cache
|
@@ -43,9 +43,9 @@ RUN ln -s /content/demucscache /.cache
|
|
43 |
WORKDIR /content
|
44 |
|
45 |
# set environment
|
46 |
-
# PYTORCH_NO_CUDA_MEMORY_CACHING
|
47 |
-
|
48 |
-
|
49 |
NUMBA_CACHE_DIR=/content/numbacache
|
50 |
|
51 |
# upgrade pip
|
|
|
34 |
RUN chmod -R 777 /content/numbacache
|
35 |
|
36 |
# try fix
|
37 |
+
# PermissionError: [Errno 13] Permission denied: '/.cache' (Demucs)
|
38 |
RUN mkdir -p /content/demucscache
|
39 |
RUN chmod -R 777 /content/demucscache
|
40 |
RUN ln -s /content/demucscache /.cache
|
|
|
43 |
WORKDIR /content
|
44 |
|
45 |
# set environment
|
46 |
+
# PYTORCH_NO_CUDA_MEMORY_CACHING can help users with even smaller RAM such as 2GB (Demucs)
|
47 |
+
ENV PYTORCH_NO_CUDA_MEMORY_CACHING=1 \
|
48 |
+
MPLCONFIGDIR=/content/mplconfig \
|
49 |
NUMBA_CACHE_DIR=/content/numbacache
|
50 |
|
51 |
# upgrade pip
|