Instructions to use moonbox-dev/s2-pro-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use moonbox-dev/s2-pro-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf moonbox-dev/s2-pro-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf moonbox-dev/s2-pro-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf moonbox-dev/s2-pro-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf moonbox-dev/s2-pro-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf moonbox-dev/s2-pro-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf moonbox-dev/s2-pro-GGUF:Q4_K_M
Use Docker
docker model run hf.co/moonbox-dev/s2-pro-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- Ollama
How to use moonbox-dev/s2-pro-GGUF with Ollama:
ollama run hf.co/moonbox-dev/s2-pro-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use moonbox-dev/s2-pro-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf moonbox-dev/s2-pro-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "moonbox-dev/s2-pro-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use moonbox-dev/s2-pro-GGUF with Docker Model Runner:
docker model run hf.co/moonbox-dev/s2-pro-GGUF:Q4_K_M
- Lemonade
How to use moonbox-dev/s2-pro-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull moonbox-dev/s2-pro-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.s2-pro-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use moonbox-dev/s2-pro-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf moonbox-dev/s2-pro-GGUF:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default moonbox-dev/s2-pro-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use moonbox-dev/s2-pro-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf moonbox-dev/s2-pro-GGUF:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "moonbox-dev/s2-pro-GGUF:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf moonbox-dev/s2-pro-GGUF:# Run inference directly in the terminal:
llama cli -hf moonbox-dev/s2-pro-GGUF:Build from source code
git clone https://github.com/ggml-org/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-app# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama serve -hf moonbox-dev/s2-pro-GGUF:# Run inference directly in the terminal:
./build/bin/llama cli -hf moonbox-dev/s2-pro-GGUF:Use Docker
docker model run hf.co/moonbox-dev/s2-pro-GGUF:Fish Audio S2 Pro GGUF
GGUF builds of Fish Audio S2 Pro, made by Moonbox for on-device use with llama.cpp
(Metal, CUDA, Vulkan, CPU). Every file is at the root of this repository: one model file per precision, plus the
mmproj-*.gguf file that holds the model's encoder (audio, vision or codec) when it has one. That file is shared by
every precision. Pick a precision by the memory you have.
Files
The last column is the benchmark: the task score of each file on Moonbox's evaluation set for this kind of model (details under How to run), and how often it gives exactly the same output as the BF16 file. The BF16 file holds the original weights unchanged.
| Precision | File | Size | sha256 | Benchmark |
|---|---|---|---|---|
| F16 | fish-audio-s2-pro-F16.gguf |
8.07 GB | 1d638459a96e |
WER 0.0 % / CER 0.0 %, similarity 0.953 / 0.957, DNSMOS 3.25 / 2.95; RTF 4.4 (half the layers on the CPU) |
| all | mmproj-fish-audio-s2-pro-BF16.gguf |
2.05 GB | 26040daf4415 |
encoder file, used with every precision |
| BF16 | fish-audio-s2-pro-BF16.gguf |
8.07 GB | 4e0ae497ba0a |
WER 0.0 % / CER 0.0 % (original 0.0 / 0.0), similarity 0.957 / 0.949 (0.958 / 0.945), DNSMOS 3.30 / 2.92 (3.28 / 2.62); RTF 4.7 (CUDA, half the layers on the CPU) |
| Q8_0 | fish-audio-s2-pro-Q8_0.gguf |
4.29 GB | 5e8e7b85525a |
WER 0.0 % / CER 0.0 %, similarity 0.956 / 0.952, DNSMOS 3.29 / 2.96; RTF 0.85 (CUDA) |
| Q6_K | fish-audio-s2-pro-Q6_K.gguf |
3.31 GB | 7b0d86a9ee15 |
WER 0.0 % / CER 0.0 %, similarity 0.953 / 0.953, DNSMOS 3.29 / 2.88; RTF 0.81 |
| Q5_K_M | fish-audio-s2-pro-Q5_K_M.gguf |
2.90 GB | 795b5dd104da |
WER 0.0 % / CER 0.0 %, similarity 0.949 / 0.957, DNSMOS 3.30 / 3.04; RTF 0.79 |
| Q4_K_M | fish-audio-s2-pro-Q4_K_M.gguf |
2.51 GB | 17284f4365e9 |
WER 0.0 % / CER 0.0 %, similarity 0.953 / 0.950, DNSMOS 3.28 / 2.93; RTF 0.77 |
How to run
The model file holds the 4B slow AR (a Qwen3 backbone). mmproj-fish-audio-s2-pro-BF16.gguf holds the 4-layer fast
AR and the codec (codec.pth): its encoder half for voice cloning and its decoder half for the audio. It is in BF16,
as llama.cpp advises for this model, with the codec encoder in F16 / F32, and it is the same file for every precision.
Both files are needed. With llama.cpp b12621 or newer:
llama-tts -m fish-audio-s2-pro-Q8_0.gguf -mm mmproj-fish-audio-s2-pro-BF16.gguf \
--tts-speaker-file reference.wav --tts-speaker-text "The words spoken in reference.wav." \
-p "Hello, this is a cloned voice." -n 2000 --output out.wav
Speaker tags (<|speaker:0|> ...) and inline instructions in brackets ([laughing], [whisper]) work as in the
original. llama-server serves the same through /tts (input, speaker_ref_b64, speaker_ref_text, seed).
llama.cpp samples the frames with the original's own settings.
The converter changes the layout of three kinds of tensor (llama.cpp's conversion/fish_s2.py), and the values stay
the same:
- The fused
wqkvweights are split into q / k / v. - The q / k rows (and the q / k norms) are reordered from the checkpoint's interleaved rotary layout to llama.cpp's.
- The fast AR's output head keeps its first 1024 rows, the codebook size.
All 358 tensors of the original checkpoint were found with the same values in these files.
Benchmark.
- Set: Moonbox's TTS set, 6 English and 4 Chinese sentences, seeds 0-3.
- Task: voice cloning with the set's prompt clip and its transcript.
- Run:
llama-server/ttson CUDA (RTX 3080 Laptop). BF16 and F16 ran with 18 of the 36 layers on the GPU, to fit the laptop, hence their RTF. - Scores:
- word / character error rate of Whisper large-v3-turbo's transcript (English / Chinese);
- WavLM speaker similarity to the prompt;
- DNSMOS.
- Original:
fish-speechin bf16 on CUDA on the same set: error 0.0 % / 0.0 %, similarity 0.958 / 0.945, DNSMOS 3.28 / 2.62. - Pass mark: error at most 2 points above the original, similarity at most 0.03 below it, DNSMOS at most 0.2 below it.
How these were made
From Fish Audio S2 Pro at revision 1de9996b6b, with llama.cpp b12621:
convert_hf_to_gguf.pywrote the BF16 model file and themmprojfile.llama-quantizemade the other precisions from the BF16 file, with its standard mixes.- No importance matrix was used.
Before upload, every tensor of the original checkpoint was found with the same values in the BF16 model file and the
mmproj file. The sha256 column above is what the files must hash to.
License
other (Fish Audio research license). These files are a derivative of the original model and carry its license. The license is copied in this repository, and it governs your use of these files. The original model card follows unchanged.
Fish Audio S2 Pro
Technical Report | GitHub | Playground
Fish Audio S2 Pro is a leading text-to-speech (TTS) model with fine-grained inline control of prosody and emotion. Trained on over 10M+ hours of audio data across 80+ languages, the system combines reinforcement learning alignment with a dual-autoregressive architecture. The release includes model weights, fine-tuning code, and an SGLang-based streaming inference engine.
Architecture
S2 Pro builds on a decoder-only transformer combined with an RVQ-based audio codec (10 codebooks, ~21 Hz frame rate) using a Dual-Autoregressive (Dual-AR) architecture:
- Slow AR (4B parameters): Operates along the time axis and predicts the primary semantic codebook.
- Fast AR (400M parameters): Generates the remaining 9 residual codebooks at each time step, reconstructing fine-grained acoustic detail.
This asymmetric design keeps inference efficient while preserving audio fidelity. Because the Dual-AR architecture is structurally isomorphic to standard autoregressive LLMs, it inherits all LLM-native serving optimizations from SGLang โ including continuous batching, paged KV cache, CUDA graph replay, and RadixAttention-based prefix caching.
Fine-Grained Inline Control
S2 Pro enables localized control over speech generation by embedding natural-language instructions directly within the text using [tag] syntax. Rather than relying on a fixed set of predefined tags, S2 Pro accepts free-form textual descriptions โ such as [whisper in small voice], [professional broadcast tone], or [pitch up] โ allowing open-ended expression control at the word level.
Common tags (15,000+ unique tags supported):
[pause] [emphasis] [laughing] [inhale] [chuckle] [tsk] [singing] [excited] [laughing tone] [interrupting] [chuckling] [excited tone] [volume up] [echo] [angry] [low volume] [sigh] [low voice] [whisper] [screaming] [shouting] [loud] [surprised] [short pause] [exhale] [delight] [panting] [audience laughter] [with strong accent] [volume down] [clearing throat] [sad] [moaning] [shocked]
Supported Languages
S2 Pro supports 80+ languages.
Tier 1: Japanese (ja), English (en), Chinese (zh)
Tier 2: Korean (ko), Spanish (es), Portuguese (pt), Arabic (ar), Russian (ru), French (fr), German (de)
Other supported languages: sv, it, tr, no, nl, cy, eu, ca, da, gl, ta, hu, fi, pl, et, hi, la, ur, th, vi, jw, bn, yo, xsl, cs, sw, nn, he, ms, uk, id, kk, bg, lv, my, tl, sk, ne, fa, af, el, bo, hr, ro, sn, mi, yi, am, be, km, is, az, sd, br, sq, ps, mn, ht, ml, sr, sa, te, ka, bs, pa, lt, kn, si, hy, mr, as, gu, fo, and more.
Production Streaming Performance
On a single NVIDIA H200 GPU:
- Real-Time Factor (RTF): 0.195
- Time-to-first-audio: ~100 ms
- Throughput: 3,000+ acoustic tokens/s while maintaining RTF below 0.5
Links
Technical Report
If you find our work useful, please consider citing our report:
@misc{liao2026fishaudios2technical,
title={Fish Audio S2 Technical Report},
author={Shijia Liao and Yuxuan Wang and Songting Liu and Yifan Cheng and Ruoyi Zhang and Tianyu Li and Shidong Li and Yisheng Zheng and Xingwei Liu and Qingzheng Wang and Zhizhuo Zhou and Jiahua Liu and Xin Chen and Dawei Han},
year={2026},
eprint={2603.08823},
archivePrefix={arXiv},
primaryClass={cs.SD},
url={https://arxiv.org/abs/2603.08823},
}
License
This model is licensed under the Fish Audio Research License. Research and non-commercial use is permitted free of charge. Commercial use requires a separate license from Fish Audio โ contact business@fish.audio.
- Downloads last month
- 722
4-bit
5-bit
6-bit
8-bit
16-bit
Model tree for moonbox-dev/s2-pro-GGUF
Base model
fishaudio/s2-pro
Install (macOS, Linux)
# Start a local OpenAI-compatible server with a web UI: llama serve -hf moonbox-dev/s2-pro-GGUF:# Run inference directly in the terminal: llama cli -hf moonbox-dev/s2-pro-GGUF: