Views
No views yet
quantization_config in config.json. When you load the model, it will automatically be quantized to 4-bit using bitsandbytes NF4 quantization.pip install qwen-tts bitsandbytes>=0.42.0 accelerate1from qwen_tts import Qwen3TTSModel
2import torch
3
4# Model will be automatically quantized when loaded
5model = Qwen3TTSModel.from_pretrained(
6 "YOUR_USERNAME/Qwen3-TTS-12Hz-1.7B-Base-BNB-4bit",
7 device_map="auto",
8)
9
10# Voice cloning example
11import soundfile as sf
12
13wavs, sr = model.generate_voice_clone(
14 text="Hello, this is a test of the quantized model.",
15 language="English",
16 ref_audio="path/to/reference.wav",
17 ref_text="Transcript of your reference audio.",
18)
19sf.write("output.wav", wavs[0], sr)| Setting | Value |
|---|---|
| Method | bitsandbytes |
| Bits | 4 |
| Quant Type | NF4 (Normalized Float 4) |
| Compute Dtype | bfloat16 |
| Double Quant | Yes |