This commit is contained in:
2026-08-16 17:48:41 +08:00
parent 773f14751f
commit c8581c72b4
3 changed files with 8 additions and 4 deletions

View File

@@ -12,8 +12,8 @@ services:
WHISPER__CPU_THREADS: ${WHISPER_CPU_THREADS:-4}
# -1 表示模型常驻显存;改为正数(秒)可让空闲模型自动卸载
WHISPER__TTL: ${WHISPER_TTL:--1}
# 服务器无法直连 Hugging Face 时取消注释(国内镜像):
# HF_ENDPOINT: https://hf-mirror.com
# 模型下载地址:国内默认走 hf-mirror.com 镜像;能直连 Hugging Face 时在 .env 里设 HF_ENDPOINT=(留空)
HF_ENDPOINT: ${HF_ENDPOINT:-https://hf-mirror.com}
volumes:
- hf-hub-cache:/home/ubuntu/.cache/huggingface/hub
deploy: