Kleineres Modell

This commit is contained in:
2026-06-19 17:22:28 +02:00
parent a5230964cb
commit 404c632cfc
20 changed files with 66 additions and 60 deletions

45
scripts/start_clone.sh Executable file
View File

@@ -0,0 +1,45 @@
#!/bin/bash
set -euo pipefail
cd "$(dirname "$0")/.."
HEALTH_URL="http://localhost:8091/health"
MAX_WAIT="${MAX_WAIT:-180}"
[ -f .env ] && source .env
MODEL="${QWEN3_TTS_CLONE_MODEL:-Qwen/Qwen3-TTS-12Hz-1.7B-Base}"
t0=$SECONDS
printf "TTS-Container stoppt..."
docker compose stop qwen3-tts >/dev/null 2>&1 || true
docker compose rm -f qwen3-tts >/dev/null 2>&1 || true
printf " [%ds]
" $(( SECONDS - t0 ))
printf "Clone-Container startet..."
docker compose --profile clone up -d qwen3-tts-clone >/tmp/qwen3-tts-clone-compose.log 2>&1
printf " [%ds]
" $(( SECONDS - t0 ))
printf " Modell %s
" "$MODEL"
printf " API http://localhost:8091
"
while (( SECONDS - t0 < MAX_WAIT )); do
if curl -sf "$HEALTH_URL" >/dev/null 2>&1; then
printf "✓ Clone bereit: http://localhost:8091 [%ds]
" $(( SECONDS - t0 ))
exit 0
fi
if ! docker ps --filter "name=qwen3-tts-clone" --filter "status=running" -q | grep -q .; then
printf "✗ Clone-Container abgestürzt. Logs:
" >&2
docker logs --tail=40 qwen3-tts-clone 2>&1 >&2 || true
exit 1
fi
sleep 2
done
printf "✗ Timeout nach %ss. Logs: docker logs qwen3-tts-clone
" "$MAX_WAIT" >&2
exit 1