Views
No views yet
| Base model | mlx-community/Qwen3-TTS-12Hz-0.6B-Base-8bit |
| Pipeline | Language Adaptation (Pipeline 1) |
| LoRA rank | 8 |
| LoRA alpha | 16 |
| Target modules | q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj |
| Language conditioning | lang_code: auto (nothink prefix — no dedicated Hindi token) |
| Dataset | ~1900 Hindi speech samples (IndicVoices-R, CC-BY-4.0) |
| Epochs | 10 |
| Effective batch size | 32 (batch=2, grad_accum=16) |
| Learning rate | 2e-5 (cosine schedule) |
| Hardware | Apple Silicon (MLX) |
| Final val loss | 7.55 |
| Adapter size | ~24 MB |
1from mlx_audio.tts.utils import load_model
2from mlx_audio.tts.generate import generate_audio
3from train.lora import apply_lora, load_adapters, LoRAConfig
4
5# Load base model
6model = load_model("mlx-community/Qwen3-TTS-12Hz-0.6B-Base-8bit")
7
8# Apply and load LoRA adapter
9apply_lora(model, LoRAConfig(model_type="qwen3_tts", rank=8))
10load_adapters(model, "adapters.safetensors") # download from this repo
11
12# Generate Hindi speech (lang_code="auto" — this adapter was trained without a dedicated Hindi token)
13generate_audio(
14 text="नमस्ते! आज का दिन बहुत अच्छा है।",
15 model=model,
16 output_path="./output",
17 lang_code="auto",
18)1git clone https://github.com/akashicMarga/mlx-audio-train
2cd mlx-audio-train
3python scripts/demo.py
4# Select this adapter from the dropdown, set language to "hi"hi → 2051) in the codec embedding tablelang_code: auto (nothink prefix) — no dedicated Hindi token was used. The model learns Hindi from the audio data alone via LoRA weight updates. A future multilingual adapter (coming soon) will use a dedicated hi→2051 language token for stronger conditioning.lang_code in the config.