ttf-VoxCPM2
VoxCPM2 (2B parameters, 30 languages, 48 kHz) with its language models in ternary weights: {-1, 0, +1} per weight and a scale per row. The model file is 827 MB, plus a 54-375 MB audio VAE file (100 MB recommended; the base model is 4.96 GB in bf16 with its audio VAE: 5.3x smaller). It runs in ttf-home, our own runtime, on an NVIDIA GPU or a CPU, without Python or PyTorch, zero-shot or cloning a voice from a short clip.
This version (17 Nov 2026) replaces the first release (13 Nov). In listening tests it sounds as natural as the full-precision model, and it fixes the first release's robotic and buzzy outputs:
- The language models are ternary. These are the text-semantic LM, the residual LM and the local encoder.
- The diffusion transformer (DiT) is the original VoxCPM2 DiT with its weights rounded to 8 bits. The DiT makes the
audio features from the LM's output. In the first release it was ternary too, and our listening tests traced the
buzz to it. In
split/ttf-VoxCPM2.ttfit is stored as Q8_0 (needs ttf-home from 17 Nov 2026 on); the single-file version keeps the same 8-bit values in bf16. - The ternary LMs were trained for 1500 more steps to work with that DiT, by distillation from the full-precision model.
The first release is still available at revision b493f92 of this repository; this version with its DiT stored in
bf16 at 6391b4c.
Run
Build the runtime (cmake, a C++17 compiler; for a GPU, the CUDA toolkit):
git clone https://github.com/oguzeldereli/ttf-home && cd ttf-home
cmake -S engine -B engine/build-cuda -DGGML_CUDA=ON -DCMAKE_BUILD_TYPE=Release # -DGGML_CUDA=OFF for CPU only
cmake --build engine/build-cuda -j --target ttf-home
hf download oguzeldereli/ttf-VoxCPM2 split/ttf-VoxCPM2.ttf split/ttf-VoxCPM2-vae-q8_0.ttf --local-dir models
engine/build-cuda/ttf-home models/split/ttf-VoxCPM2.ttf "Hello, this is a ternary model speaking." -o hello.wav
engine/build-cuda/ttf-home models/split/ttf-VoxCPM2.ttf --list jobs.tsv # one out.wav<TAB>text[<TAB>seed] per line
If cmake stops at Compiling the CUDA compiler identification source file "CMakeCUDACompilerId.cu" failed, your
gcc is newer than your CUDA toolkit supports (e.g. gcc 15+ with CUDA 12): add -DCMAKE_CUDA_HOST_COMPILER=g++-13 (or
another gcc your nvcc accepts) to the first cmake line, or install a newer CUDA toolkit. On a CPU, the runtime uses one
thread per physical core unless you pass --threads N.
The runtime finds the VAE file next to the model (MODEL-vae-*.ttf), or takes --vae FILE.
Options:
--seed S--timesteps Nand--cfg F: the diffusion sampler--max-len N--retry-badcase N: regenerate a reply that runs away, as VoxCPM2's ownretry_badcase--device cpu|cuda-v: timings
Without --ref the runtime speaks zero-shot: the voice comes from the model. With --ref clip.wav it clones the voice
of a 5-20 s clip (any WAV; no transcript needed), as VoxCPM2's reference mode:
engine/build-cuda/ttf-home models/split/ttf-VoxCPM2.ttf "Text in the cloned voice." --ref clip.wav -o clone.wav
On 20 LibriTTS-R test-clean speakers (text of one clip, reference = another clip of the same speaker), speaker
similarity (WavLM-base-plus-sv) is 0.933 against 0.926 for the full-precision PyTorch VoxCPM2 in the same mode and 0.936
between two real clips of the speaker (zero-shot: 0.670); WER (Whisper-large-v3) 1.9%, as full precision.
Cloning needs the VAE's encoder: the VAE files from 17 Nov 2026 on carry it (older ones speak, but --ref stops with
what to do).
Files
| file | size | |
|---|---|---|
split/ttf-VoxCPM2.ttf |
827 MB | the model without its audio VAE; the DiT in Q8_0 |
split/ttf-VoxCPM2-vae-f32.ttf |
375 MB | VAE decoder + encoder as trained |
split/ttf-VoxCPM2-vae-bf16.ttf |
188 MB | |
split/ttf-VoxCPM2-vae-q8_0.ttf |
100 MB | recommended |
split/ttf-VoxCPM2-vae-q4_k.ttf |
54 MB | smallest good one (cloning similarity 0.928 vs 0.933) |
split/ttf-VoxCPM2-vae-q4_0.ttf |
54 MB | Q4_K is better at the same size |
ttf-VoxCPM2.ttf |
1.40 GB | model (DiT in bf16) + fp32 VAE (decoder and encoder) in one file |
The VAE decoders are the same as in the first release; since 17 Nov 2026 the files also carry the encoder (for --ref).
Quality
Listening test. 16 clips per model (the same 8 sentences, two seeds), one listener, blind, marks mapped to a 1-4 score:
| model | mean score | buzzy / robotic | very good or perfect |
|---|---|---|---|
| VoxCPM2 (full precision) | 2.75 | 1/16 | 6/16 |
| ttf-VoxCPM2, this version | 3.02 | 1/16 | 7/16 |
| ttf-VoxCPM2, first release | 1.66 | 8/16 | 0/16 |
Clip by clip, this version beat the first release 14 times, lost once and tied once.
Automatic metrics (PyTorch, voice cloning through the base model's prompt-audio path):
- 100 English items and 20 Chinese, paired with the full-precision model on the same items and seeds.
- Naturalness by UTMOS, transcription by Whisper-large-v3, speaker similarity by WavLM.
- CER zh: a separate, longer zero-shot test (below the table).
| model | UTMOS en | WER en | speaker similarity | CER zh |
|---|---|---|---|---|
| VoxCPM2 (full precision) | 4.25 | 2.70% | 0.960 | 0.91% |
| ttf-VoxCPM2, this version | 4.31 | 2.61% | 0.956 | 1.48% |
CER zh: 30 sentences from the FLEURS Chinese test split (1049 characters, none with Latin letters or digits), zero-shot, 2 seeds each (2098 characters per model), Whisper-large-v3. Before scoring, Traditional characters are mapped to Simplified (Whisper sometimes writes 兩種 for 两种) and Arabic numbers to Chinese numerals. The difference, +0.57 points, is within the noise: 95% interval [-0.09, +1.41] (paired bootstrap over sentences). Counting only what the audio can decide (toneless pinyin, so homophones like 他 / 她 are not errors): 0.24% vs 0.62%.
The earlier figures here (0.72% / 2.5%, 20 short sentences) counted Whisper's script and number formatting as errors.
English naturalness is level with full precision: +0.06 [-0.01, +0.15] paired. On 100 new items it replicates at +0.01 [-0.05, +0.06].
Chinese naturalness is 0.1 below full precision, within the noise: [-0.44, +0.22].
The first release on the same items: UTMOS en 3.82, 0.50 below this version ([-0.57, -0.43]); Chinese 0.92 below.
Zero-shot, FLEURS. 30 languages x 8 dev sentences, Whisper-large-v3 with the language forced, character error rate (CER). km, lo and my fail for the full-precision model too (CER near or above 1), so the summary is over the other 27 languages. Both ttf-home rows use the same runtime build, sentences and seeds:
| model | median CER | mean CER |
|---|---|---|
| VoxCPM2 (full precision, PyTorch) | 0.031 | 0.061 |
| ttf-VoxCPM2, this version, DiT Q8_0 (ttf-home) | 0.043 | 0.057 |
| ttf-VoxCPM2, this version, DiT bf16 (ttf-home) | 0.054 | 0.062 |
| ttf-VoxCPM2, first release (ttf-home) | 0.080 | 0.181 |
- Q8_0 and bf16 DiT are the same within noise (Q8_0 better in 11 languages, worse in 12, median difference 0).
- This version is better than the first release in 23 of 27 languages.
- The first release's mean is pulled up by replies that run away: nb CER 1.69 and ja 0.86, against 0.12 and 0.20 here. Chinese: 0.004 (first release 0.10).
Speed (-v; real-time factor = generation time / audio length), 240 FLEURS sentences on an RTX 4070 Ti SUPER:
0.16 with the Q8_0 DiT on an idle card (the bf16 DiT measured 0.30 on a card shared with another job, so not a like-for-like
comparison). The first release was slower: its ternary DiT was the slowest part. Laptop RTX 4080: 0.24-0.34, with or
without --ref. CPU only, laptop i9-14900HX (7 cores): 0.8-1.1, about real time (the DiT's 8-bit matrices run through
an int8 kernel, AVX-VNNI; CPUs without VNNI are slower: i7-9800X 2.5).
How it was made
- Conversion. Converted from VoxCPM2 with ttf-conversion:
- the LM and local-encoder linear layers to ternary, with a per-row scale and a small ternary low-rank adapter beside each (rank about a tenth of the layer width);
- the embedding as 4-bit codes;
- orthogonal rotations folded into the weights, so the model runs with no extra ops.
- First recovery. 3000 steps of recovery training with TTF on multilingual speech: en 35%, zh 35%, and the 28 other languages about 1% each. This was the first release. TTF updates ternary weights directly, with no full-precision master weights or Adam states.
- This version. The original DiT (with the same folded rotation, rounded to 8 bits in blocks of 32), frozen. The ternary parts were trained 1500 more steps with TTF to match the full-precision model's outputs (distillation), the same data mix.
- Export. Exported to
.ttf: the ternary weights packed 5 per byte, bf16 elsewhere, with the model's graphs;ttf-home --split-vae ... --matmul-type q8_0 --matmul-prefix feat_decoder.stores the DiT in Q8_0.
Kept in floating point:
- the DiT (8-bit: Q8_0 in the split file, bf16 in the single file);
- the audio VAE, or 8 / 4-bit (the files above);
- the norms, the row and input scales, and the 4-bit embedding's group parameters.
Activations go through a per-token int8 quantiser before each ternary product, as in training.
License
Apache-2.0, as the base model. The runtime (ttf-home) has its own license: PolyForm Noncommercial 1.0.0.
Model tree for oguzeldereli/ttf-VoxCPM2
Base model
openbmb/VoxCPM2