18 lines
611 B
Plaintext
18 lines
611 B
Plaintext
# 模型选择:
|
||
# Systran/faster-whisper-large-v3 准确率最高(float16 约 6 GB 显存)
|
||
# Systran/faster-whisper-large-v3-turbo 速度快约 8 倍(float16 约 3 GB 显存)
|
||
WHISPER_MODEL=Systran/faster-whisper-large-v3
|
||
|
||
# 服务只监听本机,避免暴露公网
|
||
WHISPER_PORT=9000
|
||
|
||
WHISPER_DEVICE=cuda
|
||
WHISPER_COMPUTE_TYPE=float16
|
||
WHISPER_CPU_THREADS=4
|
||
|
||
# -1 表示模型常驻显存;空闲自动卸载可改为 600
|
||
WHISPER_TTL=-1
|
||
|
||
# 模型下载地址:国内默认走 hf-mirror.com 镜像;能直连 Hugging Face 时改为空值(HF_ENDPOINT=)
|
||
HF_ENDPOINT=https://hf-mirror.com
|