#!/bin/bash
# --- Resident Swarm Mouth (Qwen3-TTS 1.7B) ---
# GPU Mapping: Shared with Node Matali on GPU 7

export HF_HOME=/mnt/nvme3n1/swarm/huggingface_cache
source /home/isnai/anaconda3/etc/profile.d/conda.sh
conda activate swarm-voice

# Explicitly lock to GPU 7
export CUDA_VISIBLE_DEVICES=7
export PYTHONPATH=$PYTHONPATH:/mnt/nvme3n1/swarm/Qwen3-TTS

echo "--- Launching Resident Swarm Mouth (Port 8002) ---"

# Move to the server directory
cd /mnt/nvme3n1/swarm/swarm-control/indra-tts-server

# Launching our Turbo-Mouth server
# Because CUDA_VISIBLE_DEVICES=7, the server will see GPU 7 as 'cuda:0'
python tts-server.py
