Parcourir la source

feat:Dockerfil添加环境变量PYTORCH_CUDA_ALLOC_CONF

zhaohaipeng il y a 3 jours
Parent
commit
02d815f6dc
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      docker/Dockerfile

+ 2 - 1
docker/Dockerfile

@@ -145,7 +145,8 @@ ENV BACKEND=${BACKEND} \
     PYTHONUNBUFFERED=1 \
     UV_HTTP_TIMEOUT=3600 \
     UV_INDEX_URL=http://mirrors.aliyun.com/pypi/simple/ \
-    UV_DEFAULT_INDEX=http://mirrors.aliyun.com/pypi/simple/
+    UV_DEFAULT_INDEX=http://mirrors.aliyun.com/pypi/simple/ \
+    PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True
 
 # System dependencies for audio processing
 ARG DEPENDENCIES=" \