Qwen3-TTS Russian Stress - MLX 4-bit
An MLX 4-bit quantization of siriusfreak/qwen3-tts-12hz-1.7b-ru-stress-cf.
The source model is a fine-tune of Qwen/Qwen3-TTS-12Hz-1.7B-Base trained to follow Russian combining acute stress marks (U+0301), including marks that contradict the dictionary. This repository contains quantized weights, not a new fine-tune.
Quantization
- Format: MLX SafeTensors
- Talker weights: 4-bit quantization, group size 32
- Speech tokenizer and codec: not quantized
- Tested on: Apple M1 Max, 64 GB RAM
- License: Apache-2.0
Performance
This quantization was made to make the Russian-stress fine-tune practical on Apple Silicon: it uses less storage and gives faster local synthesis than the BF16 checkpoint in the tested configuration. Measurements were made on the same Apple M1 Max test machine, with the same voice, text, seed, runtime and generation parameters. RTF means audio generation time divided by generated audio duration; lower is faster.
| Variant | Model size | Load time | Warm RTF | Relative to BF16 |
|---|---|---|---|---|
| BF16 PyTorch/MPS | 4.5 GB | 42-60 s cold start | 1.8-2.9 | 1.0x |
| MLX 8-bit | 2.9 GB | 24-30 s | 0.66-1.22 | about 1.5-4.4x |
| MLX 4-bit | 2.3 GB | about 20 s | 0.74-0.95 | about 1.9-3.9x |
Example: a 10.8-second book chunk took 8.53 seconds with the 4-bit model. The first request includes model loading and is slower.
The 4-bit variant remained stable in the tested repeated book-synthesis workload, without NaNs or audio corruption. A full quantitative stress comparison for this 4-bit export has not been completed; users should validate their own voices and texts. The 8-bit comparison checkpoint is available at qwen3-tts-12hz-1.7b-ru-stress-cf-mlx8.
Reproduce the conversion
python -m mlx_audio.convert \
--hf-path /path/to/qwen3-tts-12hz-1.7b-ru-stress-cf \
--mlx-path /path/to/qwen3-tts-12hz-1.7b-ru-stress-cf-mlx4 \
-q --q-bits 4 --q-group-size 32 \
--dtype bfloat16 --model-domain tts
For 8-bit, use --q-bits 8 --q-group-size 64.
Working configuration
Install the runtime in a clean Python 3.12 environment:
python3.12 -m venv .venv
source .venv/bin/activate
pip install mlx mlx-audio soundfile numpy huggingface_hub
hf download 3Xj90Ibl4U/qwen3-tts-12hz-1.7b-ru-stress-cf-mlx4 \
--local-dir qwen3-tts-12hz-1.7b-ru-stress-cf-mlx4
The tested setup used Python 3.12, qwen-tts==0.1.1, MLX and mlx-audio,
Apple M1 Max with 64 GB RAM, a 24 kHz mono reference recording of 8-14
seconds, and an exact reference transcript.
{
"language": "Russian",
"temperature": 0.9,
"top_k": 50,
"top_p": 1.0,
"repetition_penalty": 1.05,
"max_tokens": 1024,
"seed": 160,
}
The included lightweight server can be started with:
MLX_MODEL_DIR="$PWD" MLX_PORT=8903 python mlx_tts_server.py
It accepts POST /synthesize with text, ref_audio, ref_text, and the
parameters above, and returns a WAV file. Text should already contain
combining acute marks such as за́мок; for automatic Russian stress, run
RUAccent first and convert its marker to U+0301 after the vowel. Keep
ref_text exactly equal to the reference recording transcript.
Russian stress fidelity
This checkpoint is derived from the Russian-stress fine-tune and uses the same
stress-mark convention: combining acute accents after the stressed vowel,
for example за́мок, замо́к, and звони́т. A full quantitative stress
comparison for this 4-bit export has not been completed yet; users should
validate their own voices and texts.
Voice cloning uses a reference recording and its exact transcript, with
language="Russian".
Usage
This checkpoint is intended for the MLX Qwen3-TTS runtime. It is not a
drop-in PyTorch checkpoint. See the source model card for the original
training details and the mlx_audio project for runtime installation.
Attribution and data notice
Please cite and follow the terms of the source model. The source card credits
Qwen, voicy, RUAccent, Russian LibriSpeech, and other contributors. It also
documents dataset and research-only licensing caveats, including
biggest-ru-book, meter2, and Silero-derived evaluation material. Check
those restrictions before commercial use.