Text-to-Speech
F5-TTS
Safetensors
Nepali
nepali
tts
voice-cloning
pruned

Tiny Swar

A smaller, faster Swar, a Nepali voice-cloning TTS model built on F5-TTS. We removed 6 of Swar's 22 transformer blocks and trained the remaining 16 on Nepali speech to recover.

Speed

Swar Tiny Swar
Transformer blocks 22 16
Parameters 337.1M 248.9M (26% fewer)
Real-time factor, all clips 0.445 0.329
Real-time factor, short phrases 0.649 0.486
Real-time factor, long sentences 0.298 0.217
Mean time per clip 1.63 s 1.21 s
Model load 2.5 s 1.6 s
Speed-up – 1.35× faster

Real-time factor is generation time divided by audio length, so lower is faster. At 0.329, one minute of speech takes about 20 seconds to generate.

Setup:

  • Apple M2 Ultra GPU (PyTorch MPS), fp32, the same recipe for both models: 16 flow steps, CFG 2.0, sway −1, 2 s minimum length, seed 0.
  • 29 Nepali clips (20 short phrases, 9 long sentences), run in alternating order so both models saw the same machine load.
  • Both models produce audio of identical length per clip, because F5-TTS sets the length from the text. The speed-up is therefore the same in wall time and in RTF.
  • Timing covers sampling plus the vocoder, not model loading.
  • The machine was also serving a live voice agent; timings paused during its calls are excluded.
  • Raw per-clip timings, the skip list and the script are in benchmark/.

Trade-off: pruning costs some accuracy. On our 80-item Nepali dev set, long-text CER is 8.6% against Swar's 5.5%, and voice similarity is 0.04 lower.

Use

pip install f5-tts==1.1.22
from load_tiny_swar import load

tts = load("model.safetensors", "vocab.txt", device="cuda")
tts.infer(ref_file="reference.wav", ref_text="transcript of reference.wav",
          gen_text="नमस्ते, आज मौसम राम्रो छ।",
          nfe_step=16, cfg_strength=2.0, seed=0, file_wave="out.wav")

load_tiny_swar.py builds F5-TTS with 16 blocks instead of 22. For best results with Nepali text, use Swar's text front end and chunking from the original Swar release.

Files

File What
model.safetensors Weights, float16 (0.50 GB). Upcast to fp32 at load.
config.json Architecture, which Swar blocks were kept, recommended inference settings
vocab.txt Swar's character vocabulary (unchanged)
load_tiny_swar.py Loader for the stock f5-tts package
benchmark/ Speed benchmark script and results

Licence and credits

  • Licence: CC BY-SA 4.0, inherited from Swar. You may share and adapt this model, including commercially, with attribution and under the same licence.
  • Base model: Swar (CC BY-SA 4.0).
  • Training data:
    • Rasa, Nepali, 43 h (CC BY 4.0, AI4Bharat);
    • IndicVoices-R, Nepali, 89 h (CC BY 4.0, AI4Bharat).
  • Built on: F5-TTS and the Vocos vocoder.

Voice cloning can imitate real people. Only clone voices with the speaker's permission.

Made by Ampixa.

Downloads last month
23
Safetensors
Model size
0.2B params
Tensor type
F16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for ampixa/tiny-swar

Quantized
Aarjan/swar
Finetuned
(1)
this model

Datasets used to train ampixa/tiny-swar