--- license: apache-2.0 # Zyphra's model files in gguf/; the patches, voices, studio and servers are MIT (see licenses/) base_model: Zyphra/ZONOS3-Mini pipeline_tag: text-to-speech tags: - omnispace - intel-arc - vulkan - cuda - metal - text-to-speech - streaming - gguf --- # ZONOS3-Mini Turbo ZONOS3-Mini Turbo is a serving recipe for Zyphra's [ZONOS3-Mini](https://huggingface.co/Zyphra/ZONOS3-Mini) that produces output faster. For Mac, NVIDIA and Intel. A perfect addition to your personal radio station, for DJ and news. On an Intel Arc Pro B70, the serving recipe handles about four times as many requests at once without stalling, makes nearly three times as much audio per second, and starts speaking in about half the time. On a DGX Spark, an RTX 4080 and a Mac mini, it handles a quarter to a half more requests at once. The model weights are Zyphra's own GGUFs, unchanged. All credit for the model goes to Zyphra. Special thanks to Zyphra for making ZONOS3-Mini open source. ## Runs on Each row is stock zonos3.cpp against the same commit with these patches. Both use the same model files, the same held-out prompts, the same server flags (`--batch 40`) and the same benchmark script, and run alternately. The count is the most requests at once with no stall in any of 4 rounds. | Machine | Backend | Requests at once with no stalls, stock → turbo | |---|---|---| | Intel Arc Pro B70 | Vulkan | 8 → 33 | | NVIDIA DGX Spark (GB10) | Vulkan | 16 → 20 | | NVIDIA DGX Spark (GB10) | CUDA | 16 → 16 | | NVIDIA RTX 4080 | Vulkan | 8 → 12 | | NVIDIA RTX 4080 | CUDA | 8 → 12 | | Mac mini, Apple M4 Pro (24 GB) | Metal | 12 → 16 | | NVIDIA RTX 3090 | | not run for this release | Word error rate was 0.0% for stock and turbo on every machine above (48 takes per side, 16 requests at once). Each machine's raw results are in `results/runs-on/`; the B70 card run is `results/clean-v4-2026-11-23/`. ## How to run This repo is ready to run: Zyphra's model files and voices, and a ready-built Turbo server for each machine below. Download it and start the server: ```bash pip install -U huggingface_hub hf download Frosty40/ZONOS3-Mini-Turbo --local-dir zonos3-turbo sh zonos3-turbo/run.sh ``` Then open http://127.0.0.1:1919 for Zyphra's studio, or send it text: ```bash curl -fsS http://127.0.0.1:1919/v2/generate \ -d '{"text":"Hello from Zonos.","stream":false,"format":"wav","seed":1}' -o hello.wav ``` | Server | Machine | Needs | |---|---|---| | `bin/linux-x86_64-vulkan` | Linux PC with an Intel Arc or NVIDIA GPU | a Vulkan driver (Mesa or NVIDIA), the Vulkan loader (`libvulkan1`), glibc 2.38 or newer | | `bin/linux-arm64-vulkan` | NVIDIA DGX Spark | the same | | `bin/macos-arm64-metal` | Mac with Apple silicon | macOS 14 or newer | `run.sh` picks the server for the machine it runs on and passes any extra flags through, for example `sh zonos3-turbo/run.sh --port 8080`. These servers were each run from this layout on an Arc Pro B70, an RTX 4080, a DGX Spark and a Mac mini M4 Pro. ### Build from source You need git, CMake, a C++ compiler, a Rust toolchain (cargo), and the Vulkan development files plus glslc (the LunarG Vulkan SDK, or your distro's packages such as `libvulkan-dev` and `glslc`). ```bash git clone https://github.com/Zyphra/ZONOS3-Mini.git && cd ZONOS3-Mini git checkout a50e14117d99181ba7f28047b451ba03ba1a09a9 git submodule update --init servers/ggml/ggml third_party/zyphra-textnorm hf download Frosty40/ZONOS3-Mini-Turbo --include "patches/*" --local-dir turbo cp turbo/patches/turbo-ggml.patch servers/ggml/patches/ # applied by CMake at configure time git apply turbo/patches/turbo-runtime.patch cd servers/ggml cmake -B build -DGGML_VULKAN=ON -DCMAKE_BUILD_TYPE=Release cmake --build build -j hf download Zyphra/ZONOS3-Mini gguf/backbone-ptq.gguf gguf/zac-keep2.gguf gguf/spk-encoder.gguf gguf/steer.gguf --local-dir zonos3 ./build/zonos3-server zonos3/gguf/backbone-ptq.gguf --gpu --batch 40 --port 1919 curl -fsS http://127.0.0.1:1919/v2/generate \ -d '{"text":"Hello from Zonos.","stream":false,"format":"wav","seed":1}' -o hello.wav ``` The server speaks Zyphra's HTTP API, including streaming and the OpenAI-compatible `/v1/audio/speech`. The first launch on a machine compiles GPU shaders (about 40 seconds); later launches start in about two seconds. For an NVIDIA GPU with CUDA, configure with `-DGGML_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES=native` instead of `-DGGML_VULKAN=ON`. On a Mac, leave both out (Metal is the default). The other steps are the same. ## Results on the Arc Pro B70 Measured on an Arc Pro B70 (Mesa 26.2.6, Vulkan SDK 1.4.363.1, Linux 7.0) in a Ryzen 9 5950X machine. Zyphra's server with `--batch 40`, streaming, `zac-keep2` decoder, a speaker embedding on every request. Stock and turbo use the same zonos3.cpp commit (a50e141), the same model files and the same prompts. They ran alternately in one session (stock, turbo, stock, turbo), two rounds each. All requests start at once. Turbo was built by the steps above from a fresh clone. A stall is a gap in playback for a listener whose player keeps 200 ms of audio buffered. | Requests at once | Stock: longest stall (4 rounds) | Turbo: longest stall (4 rounds) | |---|---|---| | 8 | none | none | | 12 | 286 ms | none | | 16 | 486 ms | none | | 24 | 878 ms | none | | 32 | 1,196 ms | none | | 33 | 1,166 ms | none | | 34 | 1,225 ms | 98 ms | | 36 | 1,237 ms | 133 ms | | 40 | 1,395 ms | 215 ms | | | Stock | Turbo | |---|---|---| | Requests at once with no stalls in every round | 8 | 33 | | Seconds of audio made per second, 16 requests at once (mean of 4 rounds) | 18.3 | 53.0 | | Time to first audio, one request (median of 10) | 43 ms | 23 ms | | Word error rate, 48 takes, 16 requests at once | 0.0% | 0.0% | Speech is checked by transcribing every take with Whisper large-v3 (faster-whisper, int8) and comparing it with the prompt text after Whisper's English normalizer. The held-out prompts in `prompts_heldout_v1.jsonl` were never used to tune the patches. Raw results and the scripts that produced them are in `results/` and `scripts/`. ## What the patches change - `turbo-ggml.patch` (ggml, mostly its Vulkan backend): - Batches between 16 and 40 requests run at their own width instead of being padded up to the next large graph. - The matrix-vector and matrix-multiply kernels are shaped for the B70's Xe2 cores: - fewer accumulators per row for wide batches; - small projections split into more workgroups so they fill the GPU. - Each mixture-of-experts layer runs as one GPU dispatch for the whole batch. - Attention for many requests runs in one dispatch and sums in the same order as for a single request. - The next command buffer is queued before the GPU finishes the previous one. - `turbo-runtime.patch` (zonos3.cpp runtime): - The audio decoder reuses its GPU graphs from chunk to chunk and runs several decoder lanes at once. - The decoder starts each stream with a short ramp of small chunks, then streams in full chunks. Its work is scheduled by playback deadline, and a new stream's first chunks always go first. - Large sampling batches are split across two CPU threads. Top-k sampling finds its candidates faster and draws the same tokens from the same scores. - The 44.1 kHz resampler skips the filter taps that are zero and runs vectorized on Linux. - The language model reads every request's output in one transfer. ## Licence The model files in `gguf/` are Zyphra's, unchanged, under Apache 2.0. The voices and studio come from Zyphra's zonos3.cpp repo and are MIT, like the patches and the ready-built servers (zonos3.cpp and ggml are MIT). The full licence and notice texts are in `licenses/`. Voice cloning should only be used with the voice owner's consent. Built by OmniSpace Technologies.