#!/usr/bin/env bash # External models the runtime needs (all public HF repos). The Aiden checkpoint and # the base model are already in this repository (or fetched by run.sh). set -euo pipefail ROOT=$(cd "$(dirname "$0")/.." && pwd) HF="$ROOT/.venv-thinker/bin/hf" [ -x "$HF" ] || HF="huggingface-cli" "$HF" download Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice --local-dir "$ROOT/models/qwen3-tts" "$HF" download mobiuslabsgmbh/faster-whisper-large-v3-turbo --local-dir "$ROOT/models/whisper" # Mimi-8 codec used for causal prosody. The exact tokenizer we trained with lives in # the public moshiko repos (kyutai/mimi ships a different architecture and will not load). "$HF" download kyutai/moshiko-pytorch-bf16 \ --include "tokenizer-e351c8d8-checkpoint125.safetensors" --local-dir "$ROOT/models/mimi" MIMI="$ROOT/models/mimi/tokenizer-e351c8d8-checkpoint125.safetensors" EXPECT=09b782f0629851a271227fb9d36db65c041790365f11bbe5d3d59369cf863f50 if [ -f "$MIMI" ]; then GOT=$(sha256sum "$MIMI" | cut -d' ' -f1) if [ "$GOT" = "$EXPECT" ]; then echo "Mimi tokenizer verified" else echo "WARNING: Mimi tokenizer checksum differs (params may shift)" fi fi echo "External models ready."