Instructions to use mlx-community/fish-audio-s2-pro-bf16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use mlx-community/fish-audio-s2-pro-bf16 with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir fish-audio-s2-pro-bf16 mlx-community/fish-audio-s2-pro-bf16
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
# Local LoRA fine-tuning pipeline for Fish-Speech S2 Pro on Apple Silicon (MLX)
#4
by brickheadbs - opened
Hi everyone,
For those using this base model on Apple Silicon Macs, here is a local training and fine-tuning pipeline for Fish-Speech S2 Pro using the MLX framework. It was co-authored with an AI developer crew (Fable 5, ChatGPT 5, Claude 4, and Gemini 3).
Since the official training suite is CUDA-only, this pipeline allows you to run the training loop (from raw audio to merged weights) locally on macOS Sonoma (14.0+).
Core Architecture Changes
- Dual-AR Causal Alignment: Resolves the off-by-one training alignment issue in the Fast-AR decoder. Applying the causal shift (
seq[:-1]predictingseq[1:]) to both slow and fast loss components ensures the training targets match inference behavior, preventing slurring and pacing issues. - Trainable Slow Transformer: Unlocks LoRA fine-tuning for the 36-layer slow transformer (semantic tokens) so custom voices can adapt their accent, identity, and prosody.
Features
- Automated Setup: The
setup_mlx_training.shscript configures a virtual environment, downloads the base model via Hugging Face Hub, and executes a 1-step dummy training smoke test. - Memory Autotuning: Configures batch sizes and cache limits based on your Mac's unified memory size to prevent swapping.
- Weight Merging: Merges both slow-AR layers and fast-AR layers back into the base safetensors shards.
- Validation: Generates test clips and computes MFCC similarity stats to objectively score voice quality against the training dataset.
Accessing the Code
The code is hosted publicly at: github.com/brickheadbs/mlx-fish-speech-finetuning
Feel free to open issues or check out the code to run it locally on your own voice datasets.