Instructions to use Lucasgitguy-co/LvW-Ming-TTS-0.5B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Lucasgitguy-co/LvW-Ming-TTS-0.5B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-speech", model="Lucasgitguy-co/LvW-Ming-TTS-0.5B", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForSeq2SeqLM model = AutoModelForSeq2SeqLM.from_pretrained("Lucasgitguy-co/LvW-Ming-TTS-0.5B", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
LvW-Ming-TTS-0.5B
Ming-3.0-tts-0.5B after one round of self-training aimed at fewer word errors and fewer missed stops. Same architecture, same files, same usage as the base model.
Release gate: FAILED. This fine-tune is not better than the base model on the held-out test. It is published as-is so the result can be inspected; for real use, the base model is the safer choice.
Rule (set before training) Base This model Result Mean error lower than base 6.99% 7.11% FAIL Stop failures not higher 2/420 3/420 FAIL No language more than 10% (+0.5 pt) worse es worse FAIL
| Version | Repo |
|---|---|
| PyTorch (this repo) | Lucasgitguy-co/LvW-Ming-TTS-0.5B |
| MLX bf16 / 8-bit / 4-bit | LvW-Ming-TTS-0.5B-MLX-bf16, LvW-Ming-TTS-0.5B-MLX-8bit, LvW-Ming-TTS-0.5B-MLX-4bit |
| GGUF (audio.cpp) | LvW-Ming-TTS-0.5B-GGUF |
| Browser (ming-wasm) | LvW-Ming-TTS-0.5B-web |
Results
Held-out sentences never used in training (420 clips: 30 sentences per language, 2 seeds each, identical seeds and voices for both models). Whisper large-v3-turbo transcripts; WER for en/de/es/fr, CER for zh/ja/ko. A stop failure is a clip with a noise tail longer than 0.6 s or more than twice the base model's median length per word. SIM is CAM++ cosine similarity to the voice's reference clip.
| Language | Metric | Base | This model | Base stop failures | This model stop failures | Base SIM | This model SIM |
|---|---|---|---|---|---|---|---|
| de | WER | 1.54% | 1.70% | 0/60 | 0/60 | 0.8645 | 0.8625 |
| en | WER | 3.68% | 3.68% | 0/60 | 1/60 | 0.8198 | 0.8139 |
| es | WER | 0.94% | 2.70% | 0/60 | 0/60 | 0.8638 | 0.8638 |
| fr | WER | 19.39% | 19.16% | 0/60 | 0/60 | 0.8315 | 0.8286 |
| ja | CER | 6.76% | 5.81% | 0/60 | 0/60 | 0.8717 | 0.8624 |
| ko | CER | 7.07% | 6.67% | 0/60 | 0/60 | 0.8431 | 0.8376 |
| zh | CER | 9.58% | 10.01% | 2/60 | 2/60 | 0.8201 | 0.8151 |
| ALL | MIXED | 6.99% | 7.11% | 2/420 | 3/420 | 0.8449 | 0.8406 |
Use
Exactly like the base model, with the Ming-3.0-tts code:
git clone https://github.com/inclusionAI/Ming-3.0-tts.git && cd Ming-3.0-tts
pip install -r requirements.txt
hf download Lucasgitguy-co/LvW-Ming-TTS-0.5B --local-dir LvW-Ming-TTS-0.5B
from ming_tts import MingTTS
model = MingTTS("LvW-Ming-TTS-0.5B") # device="cuda:0" by default
model.synthesize(task="IP", controls={"ip": "US_Emma"}, use_zero_spk_emb=True,
text="The evening wind blew in from the mountain pass.", output_path="out.wav")
On Apple silicon (device="mps") the upstream code needs one change: in modeling_bailingmm.py
replace torch.autocast(device_type='cuda', ...) with torch.autocast(device_type=self.device.type, ...).
How it was made
Self-training (rejection-sampling fine-tuning). No outside audio was used.
- Text: Common Voice sentence-collector sentences (CC0) in English, Chinese, German, Spanish, French, Korean and Japanese, without digits.
- The base model spoke each sentence twice (different seeds) with the official Ming-3.0-tts pipeline: built-in voices for English and Chinese, and cloned voices (references made by the model itself) for all seven languages.
- Whisper large-v3-turbo transcribed every clip. A clip was kept only with a perfect transcript (0 WER/CER), no clipping, a clean stop (no noise tail) and a normal speaking rate; per sentence the best surviving clip was kept: 705 of 2100 clips (1050 sentences). Rejections: {"words": 755, "rate": 10, "stop_tail": 1}.
- A LoRA (r 8 on q/k/v/o) plus the audio heads (aggregator, flow head, stop head, speaker head)
was trained with the official
sft/code for one epoch (67 steps) on a cloud GPU (Modal). The LoRA was merged and the weights were written back into the original release layout (same tensor names, shapes and dtypes).
Training config
# Self-training LoRA (sft/configs/dense_lora.yaml with 1 epoch, lower LR, 1 kept checkpoint)
mode: lora
model_path: /Volumes/Untitled/ming-post/base
train_data: /Volumes/Untitled/ming-post/data/train_prepared.jsonl
output_dir: /Volumes/Untitled/ming-post/ckpt/lora
train_heads: [linear_proj_audio, flowloss, stop_head, spk_head]
lora:
r: 8
lora_alpha: 16
lora_dropout: 0.05
target_modules: [q_proj, k_proj, v_proj, o_proj]
gradient_checkpointing: true
speaker_dropout: 0.5
min_duration: 1.0
max_duration: 30.0
max_sequence_length: 1024
max_tokens_per_batch: 2048
epochs: 1
learning_rate: 0.000005
min_learning_rate: 0.000001
warmup_steps: 20
weight_decay: 0.01
gradient_clip: 1.0
save_every_steps: 50
keep_last_checkpoints: 1
log_every_steps: 10
seed: 42
Limits
- Everything listed on the base model card still applies (speaker similarity weaker than content accuracy, multi-tag paralinguistics, pitch control).
- Training text had no digits; text normalization was off during data generation.
- Measured on 210 held-out sentences (2 seeds each) with one ASR model; it is not a full benchmark run.
Responsible use
Inherited from the base model: voice cloning and built-in voices are for research and legitimate creative use. Do not impersonate a real person without consent, deceive, or break the law. Label synthetic speech as synthetic where it could be mistaken for a real recording.
License
MIT, as the base model (inclusionAI/Ming-3.0-tts).
- Downloads last month
- 23
Model tree for Lucasgitguy-co/LvW-Ming-TTS-0.5B
Base model
inclusionAI/Ming-3.0-tts-0.5B