- Qwen2 500M + WavTokenizer, torch cu128 GPU, 전용 venv 워커(8003) - 한국어 프리셋 4종(male/female), 속도·피치 librosa 후처리 - transformers 4.49로 torchvision 강제 import 회피, soundfile 저장 - scenema-audio는 VRAM 24GB+/Gemma12B 게이트로 8GB GPU에선 불가 → 미포함
25 lines
972 B
Bash
25 lines
972 B
Bash
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
# Supertonic 워커(전용 venv)를 백그라운드로 기동 — 모델을 1회 로드해 상주
|
|
if [ -n "$SUPERTONIC_URL" ] && [ -x /opt/supertonic-venv/bin/python ]; then
|
|
echo "[entrypoint] starting Supertonic worker on :8002"
|
|
/opt/supertonic-venv/bin/python -m uvicorn worker:app \
|
|
--app-dir /opt/supertonic_worker \
|
|
--host 127.0.0.1 --port 8002 \
|
|
> /tmp/supertonic_worker.log 2>&1 &
|
|
fi
|
|
|
|
# OuteTTS 워커(전용 venv, 개인용) — 모델을 1회 로드해 상주
|
|
if [ -n "$OUTETTS_URL" ] && [ -x /opt/oute-venv/bin/python ]; then
|
|
echo "[entrypoint] starting OuteTTS worker on :8003"
|
|
/opt/oute-venv/bin/python -m uvicorn worker:app \
|
|
--app-dir /opt/outetts_worker \
|
|
--host 127.0.0.1 --port 8003 \
|
|
> /tmp/outetts_worker.log 2>&1 &
|
|
fi
|
|
|
|
# 메인 앱(글로벌 파이썬, MeloTTS 인프로세스)
|
|
echo "[entrypoint] starting main app on :8788"
|
|
exec uvicorn app.server:app --host 0.0.0.0 --port 8788
|