Text-to-Speech
ONNX
GGUF
Chinese
English
onnxruntime
tts
on-device
jetson
telephony
vits
mb-istft-vits
multi-speaker
mandarin
taiwanese-mandarin
imatrix
conversational
Instructions to use Luigi/PrimeTTS 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 Luigi/PrimeTTS 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 Luigi/PrimeTTS:F32 # Run inference directly in the terminal: llama cli -hf Luigi/PrimeTTS:F32
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Luigi/PrimeTTS:F32 # Run inference directly in the terminal: llama cli -hf Luigi/PrimeTTS:F32
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf Luigi/PrimeTTS:F32 # Run inference directly in the terminal: ./llama-cli -hf Luigi/PrimeTTS:F32
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf Luigi/PrimeTTS:F32 # Run inference directly in the terminal: ./build/bin/llama-cli -hf Luigi/PrimeTTS:F32
Use Docker
docker model run hf.co/Luigi/PrimeTTS:F32
- LM Studio
- Jan
- Ollama
How to use Luigi/PrimeTTS with Ollama:
ollama run hf.co/Luigi/PrimeTTS:F32
- Unsloth Studio
How to use Luigi/PrimeTTS with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Luigi/PrimeTTS to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Luigi/PrimeTTS to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Luigi/PrimeTTS to start chatting
- Atomic Chat new
- Docker Model Runner
How to use Luigi/PrimeTTS with Docker Model Runner:
docker model run hf.co/Luigi/PrimeTTS:F32
- Lemonade
How to use Luigi/PrimeTTS with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Luigi/PrimeTTS:F32
Run and chat with the model
lemonade run user.PrimeTTS-F32
List all available models
lemonade list
Publish v2 deployment variant / card update: README.md
Browse files
README.md
CHANGED
|
@@ -47,7 +47,19 @@ Two model generations:
|
|
| 47 |
| **Sample rate** | 16 kHz |
|
| 48 |
| **Voice** | female Mandarin, "Xinran" |
|
| 49 |
| **Eval (36 held-out zh/mix/en sentences)** | X-ASR CER **0.027** overall β zh 0.033 Β· code-mix 0.039 Β· en 0.008 (below its 7B teacher's 0.043 on the same eval) |
|
| 50 |
-
| **Runtime** | single ONNX (`primetts_v2_xinran.onnx`, ORT-CPU
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
|
| 52 |
**Training:** distilled from a **VibeVoice-Large** (MIT) teacher speaking the `zh-Xinran_woman` preset β
|
| 53 |
29k utterances over the same entity-rich zh-TW corpus as v1, per-utterance speaker-consistency QC
|
|
@@ -147,8 +159,10 @@ and a small brand lexicon. Text past `max_frames` is auto-chunked at punctuation
|
|
| 147 |
## Model files
|
| 148 |
|
| 149 |
```
|
| 150 |
-
v2_mbistft_16k/primetts_v2_xinran.onnx
|
| 151 |
-
v2_mbistft_16k/primetts_v2_xinran.gguf
|
|
|
|
|
|
|
| 152 |
v1b_16k/{acoustic_encoder,acoustic_decoder,vocoder}.onnx + meta.json β v1 16 kHz (~5.0M, CPU)
|
| 153 |
v1b_8k/ {acoustic_encoder,acoustic_decoder,vocoder}.onnx + meta.json β v1 leanest on-device (4.09M, 8 kHz, Nano CPU)
|
| 154 |
{acoustic_encoder,β¦}.onnx + meta.json Β· v3_4.6M/ β legacy 24 kHz variants (6.85M / 4.63M), for record
|
|
|
|
| 47 |
| **Sample rate** | 16 kHz |
|
| 48 |
| **Voice** | female Mandarin, "Xinran" |
|
| 49 |
| **Eval (36 held-out zh/mix/en sentences)** | X-ASR CER **0.027** overall β zh 0.033 Β· code-mix 0.039 Β· en 0.008 (below its 7B teacher's 0.043 on the same eval) |
|
| 50 |
+
| **Runtime** | single ONNX (`primetts_v2_xinran.onnx`, ORT-CPU) Β· `primetts_v2_xinran.gguf` for the ggml-CUDA Jetson-Nano runtime ([RapidSpeech.cpp](https://github.com/vieenrose/RapidSpeech.cpp), `mbistft-vits` arch) |
|
| 51 |
+
|
| 52 |
+
### On-device deployment (measured on a Jetson Nano gen-1, Tegra X1)
|
| 53 |
+
|
| 54 |
+
Two runtime tiers, both real-time. RTF = compute-time / audio-time (lower is faster; <1.0 = real-time).
|
| 55 |
+
|
| 56 |
+
| Tier | Runtime | Precision | RTF | Quality |
|
| 57 |
+
|---|---|---|---|---|
|
| 58 |
+
| **GPU** | RapidSpeech.cpp ggml-CUDA, 1 CPU thread | fp32 / fp16 | **0.42** (2.4Γ RT) | full (parity 0.9998) |
|
| 59 |
+
| **CPU** | onnxruntime, 4 threads | **fp32** | **0.52** (1.9Γ RT) | full β voice-cos 0.916, CER 0.033 |
|
| 60 |
+
| **CPU** | onnxruntime, 4 threads | **q8** (int8) | **0.27** (3.7Γ RT) | fast/small, but reduced voice fidelity (voice-cos 0.748, CER 0.048) β a **QAT int8** build to restore identity is in progress |
|
| 61 |
+
|
| 62 |
+
Notes: the GPU RTF is launch-overhead-bound on Maxwell (sm_53, no CUDA-graph replay) β 0.42 is the practical floor there; the **GPU is not required** β CPU-only fp32 clears real-time with full fidelity. `q8` beats the GPU on speed but shifts timbre (int8); `fp16` ONNX is half-size but ORT-CPU casts it to fp32 so it gives **no CPU speedup** (size only). Pick fp32 for fidelity, q8 for smallest/fastest.
|
| 63 |
|
| 64 |
**Training:** distilled from a **VibeVoice-Large** (MIT) teacher speaking the `zh-Xinran_woman` preset β
|
| 65 |
29k utterances over the same entity-rich zh-TW corpus as v1, per-utterance speaker-consistency QC
|
|
|
|
| 159 |
## Model files
|
| 160 |
|
| 161 |
```
|
| 162 |
+
v2_mbistft_16k/primetts_v2_xinran.onnx β PrimeTTS v2 FLAGSHIP fp32 (34.7M, 16 kHz) β full quality, the demo serves this
|
| 163 |
+
v2_mbistft_16k/primetts_v2_xinran.gguf β fp32 weights for the ggml-CUDA Jetson-Nano runtime (RapidSpeech.cpp)
|
| 164 |
+
v2_mbistft_16k/primetts_v2_xinran_fp16.onnx β fp16 ONNX (55 MB, half size, lossless quality; ORT-CPU no speedup β size only)
|
| 165 |
+
v2_mbistft_16k/primetts_v2_xinran_q8.onnx β static-int8 ONNX (28 MB, fastest CPU RTF 0.27; reduced voice fidelity β QAT build coming)
|
| 166 |
v1b_16k/{acoustic_encoder,acoustic_decoder,vocoder}.onnx + meta.json β v1 16 kHz (~5.0M, CPU)
|
| 167 |
v1b_8k/ {acoustic_encoder,acoustic_decoder,vocoder}.onnx + meta.json β v1 leanest on-device (4.09M, 8 kHz, Nano CPU)
|
| 168 |
{acoustic_encoder,β¦}.onnx + meta.json Β· v3_4.6M/ β legacy 24 kHz variants (6.85M / 4.63M), for record
|