Irodori-TTS-v4.1-Small-SUN
Quality-safe weight-space modification of Aratako/Irodori-TTS-v4.1-Small. No retraining: this checkpoint is the Yomi task vector applied to v4.1, plus a conservative CPU speed patch and a 24-step rectified-flow sampler.
This model was modified and benchmarked entirely on a Grok Bot VM (CPU-only, 8 cores).
The companion turbo model is summerAIO/Irodori-TTS-v4.1-Small-LUNA (MeanFlow + Yomi transplant, all-bf16). This repo contains Final A (Quality-safe) only.
License: MIT, matching the base models.
Overview
| Item | Value |
|---|---|
| Checkpoint | model.safetensors (official Irodori-TTS tensor names, unfused) |
| Sampler | Rectified flow, 24 steps (official default is 40) |
| Intended use | Best quality / conservative speed-up |
Speed-ups (QKV/gate concat, SwiGLU w1|w3 concat, weight-norm folding, real RoPE, DiT bf16, codec left in fp32) are applied at load time by speed_patch.py.
Audio samples
Each clip concatenates two plain (no-reference) sentences and one voice-clone sentence, with 0.8 s of silence between them:
- plain_00: こんにちは、今日はいい天気ですね。
- plain_08: 吾輩は猫である。名前はまだ無い。
- clone_00: こんにちは、今日はいい天気ですね。 (same text as plain_00, synthesized with a reference speaker)
SUN is the 24-step Quality-safe model; LUNA is the 4-NFE Turbo model.
Methods
All weight-space work is a linear combination of existing public checkpoints. No new gradient updates were run.
- Weights. (W = \text{v4.1} + 1.0 \cdot (\text{Yomi} - \text{v4.1})), which is identical to takuma104/Irodori-TTS-v4.1-Small-Yomi.
- Why Yomi. On a screening set (10 plain + 6 clone), Yomi improved UTMOS vs the base model (3.543 vs 3.328) and lowered clone CER (4.4% vs 6.2%).
- Speed patch. Fold DACVAE
weight_norminto ordinary conv weights (exact); fuse JointAttentionwq|wk|wv|gateand SwiGLUw1|w3; replace complex RoPE with real arithmetic; use an in-place Snake activation in the codec; cast the DiT to bf16. The codec stays fp32. - Sampler. 24 RF steps instead of 40. On a 12-plain + 4-clone screen with this patch, CER held and RTF went from about 3.30 to 1.15.
- Required code patch. Official Irodori-TTS rejects CPU bf16 and keeps the ODE state in the model dtype. Apply
code_patches/cpu_bf16_ode_fp32.patchso CPU bf16 is allowed and the ODE / CFG combination stay in fp32. Without it, CPU bf16 will fail or drift numerically.
How to run
- Install the official Irodori-TTS Python package.
- Apply the code patch at the package root:
cd /path/to/irodori-tts
patch -p1 < /path/to/Irodori-TTS-v4.1-Small-SUN/code_patches/cpu_bf16_ode_fp32.patch
- Download this repo and synthesize. The codec and tokenizer are resolved from checkpoint metadata / the official Hub.
pip install -U huggingface_hub
hf download summerAIO/Irodori-TTS-v4.1-Small-SUN --local-dir ./Irodori-TTS-v4.1-Small-SUN
python ./Irodori-TTS-v4.1-Small-SUN/synthesize.py --code-root /path/to/irodori-tts \
--text "こんにちは、今日はいい天気ですね。" --out a.wav --threads 4
# Voice cloning: add --ref /path/to/ref.wav
Pass model.safetensors to InferenceRuntime.from_key, then call speed_patch.apply(rt, snake=True, fold_codec=True, rope=True, fuse=True, model_dtype="bf16") and sample with num_steps=24.
Repository layout
| Path | Contents |
|---|---|
model.safetensors | Final A (Yomi task vector, official keys, unfused, RF) |
codec_folded_fp32.safetensors | DACVAE with weight_norm folded (optional; runtime fold also works) |
speed_patch.py | Runtime fold / fuse / RoPE / dtype / Snake patch |
code_patches/cpu_bf16_ode_fp32.patch | Official irodori_tts patch for CPU bf16 + fp32 ODE |
synthesize.py | Example synthesis script |
benchmark.md | Full benchmark write-up (original vs this model) |
samples/ | Listening MP3s (original / SUN / LUNA) |
images/ | Benchmark plots |
LICENSE | MIT |
Benchmark

Conditions: run entirely on a Grok Bot VM (CPU-only, 8 cores); 4 threads; 40 plain + 10 clone utterances from bench/sentences.json.
Metrics: RTF total and model-only; CER and kana CER via kotoba-whisper-v2.0-faster; UTMOS22-strong; WavLM-base-plus-sv speaker similarity. Watermarking off. Original uses official defaults (40-step RF, fp32, no speed patch).
Turbo (Final B) numbers are in Irodori-TTS-v4.1-Small-LUNA.
| Model | RTF total | RTF model | CER | kana CER | MOS | clone CER | clone kana CER | clone MOS | spk sim |
|---|---|---|---|---|---|---|---|---|---|
| Original (v4.1-Small) | 2.959 | 2.170 | 1.5% | 0.8% | 3.431 | 6.2% | 5.0% | 2.956 | 0.937 |
| SUN / Final A (Quality-safe) | 1.110 | 0.550 | 1.7% | 1.0% | 3.452 | 4.9% | 4.4% | 2.891 | 0.934 |
Relative speed (RTF total vs original):
- Original (v4.1-Small): 1.00×
- SUN / Final A (Quality-safe): 2.67×
Step-count study
The table below compares the official 40-step RF original, SUN at 24 and 40 RF steps, and LUNA at 4 and 8 MeanFlow NFE, under the same conditions as the main benchmark (Grok Bot VM, CPU-only, 8 cores, 4 threads, 40 plain + 10 clone).

| Model | RTF total | CER | MOS | clone CER | clone MOS | spk sim |
|---|---|---|---|---|---|---|
| Original | 2.959 | 1.5% | 3.431 | 6.2% | 2.956 | 0.937 |
| SUN-24 | 1.110 | 1.7% | 3.452 | 4.9% | 2.891 | 0.934 |
| SUN-40 | 1.245 | 1.5% | 3.421 | 6.2% | 2.905 | 0.937 |
| LUNA-4 | 0.602 | 2.0% | 3.128 | 4.1% | 2.970 | 0.941 |
| LUNA-8 | 0.585 | 1.7% | 3.338 | 4.8% | 3.111 | 0.934 |
SUN is recommended at 24 steps: 40 steps closes the small plain-CER gap to the original but gives back the clone-CER improvement and is slower. LUNA at 8 NFE improves MOS and CER while total RTF stays about the same, because codec decode still dominates wall time.
Credits and license
This work redistributes and combines the following public MIT checkpoints. Thanks to the original authors.
| Role | Model |
|---|---|
| Base (rectified flow, 40 steps) | Aratako/Irodori-TTS-v4.1-Small |
| Quality source (Yomi task vector) | takuma104/Irodori-TTS-v4.1-Small-Yomi |
| Audio codec | Aratako/Semantic-DACVAE-Japanese-32dim |
| Sibling turbo model | summerAIO/Irodori-TTS-v4.1-Small-LUNA |
Use the official Irodori-TTS inference code. This repository provides the derived weights and the CPU speed / numerical-stability patches only.
License: MIT (see LICENSE).