Files
container-qwen3-tts/docker-compose-customer.yml
2026-01-29 14:14:24 +08:00

32 lines
735 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

services:
qwen3-tts:
image: qwen3-tts-custom:${QWEN_TTS_VERSION:-1.2.1}
container_name: qwen3-tts
restart: unless-stopped
gpus: all
environment:
# HF cache 仍然保留Tokenizer 可能还会用到)
HF_HOME: /cache/hf
HUGGINGFACE_HUB_CACHE: /cache/hf/hub
TRANSFORMERS_CACHE: /cache/hf/transformers
volumes:
# HF 缓存(可选,但推荐)
- ./cache:/cache
# ✅ 你的本地模型目录,挂载进容器
- ./qwen3-tts-customer:/models/qwen3-tts:ro
ports:
- "8000:8000"
command: >
bash -lc "
qwen-tts-demo /models/qwen3-tts
--ip 0.0.0.0
--port 8000
--no-flash-attn
"