Instructions to use coolthor/VoxCPM2-Q4_K_M-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- VoxCPM
How to use coolthor/VoxCPM2-Q4_K_M-GGUF with VoxCPM:
import soundfile as sf from voxcpm import VoxCPM model = VoxCPM.from_pretrained("coolthor/VoxCPM2-Q4_K_M-GGUF") wav = model.generate( text="VoxCPM is an innovative end-to-end TTS model from ModelBest, designed to generate highly expressive speech.", prompt_wav_path=None, # optional: path to a prompt speech for voice cloning prompt_text=None, # optional: reference text cfg_value=2.0, # LM guidance on LocDiT, higher for better adherence to the prompt, but maybe worse inference_timesteps=10, # LocDiT inference timesteps, higher for better result, lower for fast speed normalize=True, # enable external TN tool denoise=True, # enable external Denoise tool retry_badcase=True, # enable retrying mode for some bad cases (unstoppable) retry_badcase_max_times=3, # maximum retrying times retry_badcase_ratio_threshold=6.0, # maximum length restriction for bad case detection (simple but effective), it could be adjusted for slow pace speech ) sf.write("output.wav", wav, 16000) print("saved: output.wav") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use coolthor/VoxCPM2-Q4_K_M-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 coolthor/VoxCPM2-Q4_K_M-GGUF:Q5_K_M # Run inference directly in the terminal: llama cli -hf coolthor/VoxCPM2-Q4_K_M-GGUF:Q5_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf coolthor/VoxCPM2-Q4_K_M-GGUF:Q5_K_M # Run inference directly in the terminal: llama cli -hf coolthor/VoxCPM2-Q4_K_M-GGUF:Q5_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 coolthor/VoxCPM2-Q4_K_M-GGUF:Q5_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf coolthor/VoxCPM2-Q4_K_M-GGUF:Q5_K_M
Use Docker
docker model run hf.co/coolthor/VoxCPM2-Q4_K_M-GGUF:Q5_K_M
- Llama new
- LM Studio
- Jan
- Ollama
How to use coolthor/VoxCPM2-Q4_K_M-GGUF with Ollama:
ollama run hf.co/coolthor/VoxCPM2-Q4_K_M-GGUF:Q5_K_M
- Unsloth Desktop
- Docker Model Runner
How to use coolthor/VoxCPM2-Q4_K_M-GGUF with Docker Model Runner:
docker model run hf.co/coolthor/VoxCPM2-Q4_K_M-GGUF:Q5_K_M
- Lemonade
How to use coolthor/VoxCPM2-Q4_K_M-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull coolthor/VoxCPM2-Q4_K_M-GGUF:Q5_K_M
Run and chat with the model
lemonade run user.VoxCPM2-Q4_K_M-GGUF-Q5_K_M
List all available models
lemonade list
- Atomic Chat
VoxCPM2 BaseLM β protected 4-bit GGUF for llama.cpp-omni
The main file is a mixed 4-bit quantization: a Q4_K_S base with attention V and
FFN down-projection weights kept at Q6_K in all 28 layers. It replaces the previous
VoxCPM2-BaseLM-Q4_K_M.gguf release.
We encountered occasional whole-sentence breakdowns with the previous Q4_K_M in production, especially on long sentences: the voice became distant and the latter part became unintelligible. We withdrew that version from production. Its earlier short listening test did not catch this problem. The protected recipe is the smallest of the three replacements evaluated here; the results below support choosing it, but do not prove that rare failures have been eliminated.
These files contain the BaseLM for
llama.cpp-omni
(tools/omni/voxcpm2). The repository name retains Q4_K_M for continuity; the
protected file uses the different recipe described above.
Files
| File | Quantization | Size (MiB) | Notes |
|---|---|---|---|
VoxCPM2-BaseLM-Q4_K-protected.gguf |
Q4_K_S with all-layer V/down at Q6_K | 1001.06 | Recommended starting point; smallest replacement |
VoxCPM2-BaseLM-Q5_K_M.gguf |
Q5_K_M | 1109.50 | Higher-bit option |
VoxCPM2-BaseLM-Q6_K.gguf |
Q6_K | 1272.65 | Higher-bit option |
You also need VoxCPM2-Acoustic-F16.gguf from
DennisHuang648/VoxCPM2-GGUF.
The acoustic stack stays at F16 and is not re-hosted here. Sizes above are for
BaseLM only.
SHA-256:
86b880fc4999f2d80b3dcfb7d46e0c6c53df1d4bd23e30cc491ae2631de91fcb VoxCPM2-BaseLM-Q4_K-protected.gguf
d9882c87e1f2eec6fc38be53ed35ef7d75cd640508753d4faf62c98a95084f9f VoxCPM2-BaseLM-Q5_K_M.gguf
64faa6affba7dd14a15dc6346c8c439c46ea33117d8fc09d22bef14c8a9c98e0 VoxCPM2-BaseLM-Q6_K.gguf
Evaluation (RTX 5090, sm120)
Each recipe generated the same 47 sentences with seeds 42, 137 and 20261020: 141 takes per recipe, 423 in total. The set deliberately included previously troublesome sentences and long Mandarin sentences; it is not a random sample of production traffic. Generation ran on an RTX 5090 (Blackwell, sm120) under Ubuntu WSL on Windows, using CUDA 12.8.93 and the same F16 acoustic stack for every recipe.
The primary recognizer was MLX Whisper large-v3-turbo. Mandarin CER below is based on toneless pinyin syllables; English uses WER. Both are micro-averaged across all three seeds. SenseVoice Small int8 independently checked every seed-42 take, plus primary-ASR anomalies (CER >15% or WER >20%) and suspected acoustic breakdowns. The two recognizers sometimes disagreed; an ASR error alone is not proof of a synthesis failure.
| BaseLM | Acoustic breakdown proxy | Mandarin CER | English WER | Mean speaker cosine | Audio-weighted RTF | p95 RTF |
|---|---|---|---|---|---|---|
| Protected 4-bit | 0/141 | 8.89% | 5.00% | 0.9724 | 0.221 | 0.344 |
| Q5_K_M | 0/141 | 9.07% | 11.48% | 0.9721 | 0.225 | 0.348 |
| Q6_K | 0/141 | 7.98% | 9.26% | 0.9732 | 0.224 | 0.350 |
The three recipes sounded broadly alike in informal blind listening, and all were judged substantially better than the withdrawn Q4_K_M. Differences among the three new recipes were within the noise of this small listening comparison. The numerical scores are not identical and do not establish equivalence: for example, the 95% sentence-bootstrap interval for the Mandarin macro-CER difference between protected 4-bit and Q6_K spans zero (-0.78 to +3.81 percentage points), and a speaker-similarity advantage was not established. Higher bit depth did not establish a consistent quality advantage in this batch.
The acoustic breakdown proxy compares the first and last active thirds of each 16 kHz mono waveform, using 1024-sample frames and a 320-sample hop. A take is flagged if at least two conditions hold: active RMS falls by at least 10 dB, the spectral centroid ratio is at least 2 or at most 0.5, or pYIN F0 (55β450 Hz) changes by at least 8 semitones. A take is also flagged if trailing silence is at least 60%, initial silence is below 20%, and level falls by at least 15 dB; all-silent takes are flagged. This proxy has not been calibrated against human listening and can miss speech whose content breaks down while its loudness and pitch remain steady.
A supplementary screen counted takes where both recognizers had at least 50% error: protected 4-bit 0/141, Q5_K_M 1/141, Q6_K 2/141. These candidates all came from the same English sentence. They require listening and do not establish different failure rates between recipes. This screen was added after observing an anomaly, so it was not a prespecified primary endpoint. Zero acoustic flags therefore does not mean every take was correct.
Speaker cosine uses microsoft/wavlm-base-plus-sv against the same reference recording: 16 kHz audio, normalized embeddings from 10-second windows, averaged and normalized again; final windows shorter than 2 seconds are omitted. RTF is generation time divided by output duration, includes reference encoding, and excludes model loading, ASR and file transfers. The first take of each recipe is included (no warm-up take was discarded). Generation used the same 23.926-second voice reference and transcript, continuation-based cloning, 10 inference timesteps, CFG 2 and temperature 1.
These replacement files have not been validated on an RTX 2080 Ti. There was no Q8 comparison in this evaluation batch. The earlier 2080 Ti results for the withdrawn Q4_K_M do not validate these files. Speed, memory use and quality rankings may change across GPU architectures. Three seeds on a deliberately selected set cannot establish a real-world failure rate or prove superiority or non-inferiority to Q8.
Usage
Build voxcpm2-cli as described in the
llama.cpp-omni README, then pass the protected
file as the BaseLM:
hf download coolthor/VoxCPM2-Q4_K_M-GGUF VoxCPM2-BaseLM-Q4_K-protected.gguf --local-dir ./models
hf download DennisHuang648/VoxCPM2-GGUF VoxCPM2-Acoustic-F16.gguf --local-dir ./models
# Plain TTS
./voxcpm2-cli -t "Hello from a four-bit VoxCPM2." -o out.wav \
models/VoxCPM2-BaseLM-Q4_K-protected.gguf models/VoxCPM2-Acoustic-F16.gguf
# Zero-shot voice cloning
./voxcpm2-cli -t "Cloned voice." -r speaker.wav -o clone.wav \
models/VoxCPM2-BaseLM-Q4_K-protected.gguf models/VoxCPM2-Acoustic-F16.gguf
The BaseLM argument can also point to the Q5_K_M or Q6_K file. CLI flags are unchanged:
--cfg, --timesteps, --seed, --temperature, --stream, --cpu.
Output is 48 kHz mono.
Quantization details
Source weights: openbmb/VoxCPM2, snapshot
32279effe8c19989596f05d353d1447f51d9e915.
The BaseLM was converted from the original safetensors to F16, then quantized with
llama.cpp-omni commit 88bd37eb671f67cf8d747140ed100231756e0bc3 (GCC 14.4,
CUDA 12.8.93, sm120). No importance matrix was used.
These are the exact quantizer invocations used for the evaluated artifacts,
from the build directory containing build5090/bin/llama-quantize and models/:
build5090/bin/llama-quantize --tensor-type 'attn_v.weight=q6_k' --tensor-type 'ffn_down.weight=q6_k' models/VoxCPM2-BaseLM-F16.gguf models/VoxCPM2-BaseLM-D.gguf Q4_K_S 16
build5090/bin/llama-quantize models/VoxCPM2-BaseLM-F16.gguf models/VoxCPM2-BaseLM-Q5_K_M.gguf Q5_K_M 16
build5090/bin/llama-quantize models/VoxCPM2-BaseLM-F16.gguf models/VoxCPM2-BaseLM-Q6_K.gguf Q6_K 16
# Public filename for the first output; contents are unchanged.
mv models/VoxCPM2-BaseLM-D.gguf models/VoxCPM2-BaseLM-Q4_K-protected.gguf
The overrides protect 56 tensors: attn_v.weight and ffn_down.weight in each of
28 layers. The output tensor also uses Q6_K under the Q4_K_S default, for 57 Q6_K
tensors in total. The other per-layer matrices are Q4_K. The protected artifact
contains 141 Q4_K, 57 Q6_K and 59 F32 tensors. Q4_K alone is a Q4_K_M alias in
this quantizer, so the explicit Q4_K_S argument matters.
License and attribution
Weights are derived from openbmb/VoxCPM2 (Apache-2.0); their terms apply. Conversion tooling and inference engine: tc-mb/llama.cpp-omni. The companion acoustic GGUF and the F16/Q8_0 releases are published by DennisHuang648.
Made by Thor Lin. Full benchmarks, setup notes and the runs that failed are on ai-muninn.com. More quantized models: huggingface.co/coolthor.
Provenance
This section documents release 0acee30e684cc9221124c2efab5d048de9e33224, inspected on 2026-11-14. Where the exact upstream commit used at build time is unknown, it is listed as not recorded rather than backfilled with today's upstream HEAD.
Source lineage
| Source repository | Revision used for this build | Role |
|---|---|---|
| openbmb/VoxCPM2 | 32279effe8c19989596f05d353d1447f51d9e915 |
Original safetensors input; locally cached snapshot corroborates the card |
Build details
Tools and versions: tc-mb/llama.cpp-omni commit 88bd37eb671f67cf8d747140ed100231756e0bc3; GCC 14.4, CUDA 12.8.93, sm120, as recorded in the existing card.
The BaseLM safetensors were converted to F16 GGUF, then quantized without an importance matrix. The current main file uses Q4_K_S with attention-V and FFN-down tensors protected as Q6_K and is publicly named Q4_K-protected; the old plain Q4_K_M was withdrawn. The package also contains Q5_K_M and Q6_K BaseLM variants. The external acoustic GGUF is not part of this repository.
The existing records cover quantization and format conversion only; they don't mention any fine-tuning or merging by coolthor. That reflects the documentation, not an independent weight diff.
Build script (copied from the existing card, not re-run): The quantizer commands below use local files. The upstream model commit is recorded in the source table, but the initial safetensors-to-F16 conversion command is not recorded.
build5090/bin/llama-quantize --tensor-type 'attn_v.weight=q6_k' --tensor-type 'ffn_down.weight=q6_k' models/VoxCPM2-BaseLM-F16.gguf models/VoxCPM2-BaseLM-D.gguf Q4_K_S 16
build5090/bin/llama-quantize models/VoxCPM2-BaseLM-F16.gguf models/VoxCPM2-BaseLM-Q5_K_M.gguf Q5_K_M 16
build5090/bin/llama-quantize models/VoxCPM2-BaseLM-F16.gguf models/VoxCPM2-BaseLM-Q6_K.gguf Q6_K 16
# Public filename for the first output; contents are unchanged.
mv models/VoxCPM2-BaseLM-D.gguf models/VoxCPM2-BaseLM-Q4_K-protected.gguf
Weight file SHA-256 checksums
The values below are Hugging Face LFS object SHA-256 values for the pinned release above. File sizes and digests agree with pinned tree metadata. They identify full file contents, not LFS pointer text or Git blob IDs. Calibration imatrices are included when present.
| File | Bytes | SHA-256 |
|---|---|---|
VoxCPM2-BaseLM-Q4_K-protected.gguf |
1049683680 | 86b880fc4999f2d80b3dcfb7d46e0c6c53df1d4bd23e30cc491ae2631de91fcb |
VoxCPM2-BaseLM-Q5_K_M.gguf |
1163390688 | d9882c87e1f2eec6fc38be53ed35ef7d75cd640508753d4faf62c98a95084f9f |
VoxCPM2-BaseLM-Q6_K.gguf |
1334469984 | 64faa6affba7dd14a15dc6346c8c439c46ea33117d8fc09d22bef14c8a9c98e0 |
Verifying the files
Download the desired files from revision 0acee30e684cc9221124c2efab5d048de9e33224 and compare sha256sum <file> (Linux) or shasum -a 256 <file> (macOS) with the table. If cloning with Git LFS, hash the downloaded weight files, not the LFS pointer files. A matching hash confirms your files match this release; it does not prove the weights came only from the listed base model with no other changes.
Checking how the weights were derived requires the exact upstream commit, tool versions, recipe and any calibration or training data, then re-running the build and diffing the weights with a format-aware tool (or comparing file hashes where serialization is deterministic). Because of the gaps listed below, this build can't be reproduced exactly today. Quantized files are expected to differ numerically from BF16 sources, and a raw file hash cannot establish a base-to-quant weight diff. No quantization rerun or weight-diff audit was performed for this provenance review.
Known gaps: Initial safetensors β F16 GGUF conversion invocation; Build/runtime dependency lock and random/environment determinism beyond the recorded quantizer commands.
Sources: existing model card and HF metadata.
- Downloads last month
- 548
5-bit
6-bit
Model tree for coolthor/VoxCPM2-Q4_K_M-GGUF
Base model
openbmb/VoxCPM2