What I Got Wrong Fine-Tuning F5-TTS for a New Writing System
From the publisher’s feed, collected in the ZeroLabs newsroom.
Five failures that cost GPU hours, and the measurements that found them.Views are my own. Not affiliated with or endorsed by my employer.F5-TTS is a flow-matching text-to-speech model with a property that makes it attractive for multilingual work: no duration model, no text encoder, no phoneme alignment. Alignment emerges from the flow-matching objective itself (Chen et al., 2024). Adapting it to a new writing system should be almost trivial — append the new characters to the vocabulary, point it at your data, and train.The mechanics are trivial. What is not trivial is knowing whether it worked. I spent most of my GPU budget discovering that four of my measurements were wrong.If you are fine-tuning F5-TTS (or any flow-matching TTS) for a new language, these are the failure modes that will cost you time. None of them raises an error.Setup: an Apache-2.0 licensed Arabic/English F5-TTS checkpoint (~150M parameters, 24 kHz), adapted to a Devanagari-script target language. Roughly 20 hours of aligned speech from openly licensed institutional corpora. A single mid-range GPU. The specific languages don’t matter below — the failure modes are architectural.Mistake 1: Loading the wrong copy of the weightsAn F5-TTS checkpoint contains two complete copies of the model — the raw weights and an exponential-moving-average copy. For flow-matching models the EMA copy is what you use at inference; it is meaningfully smoother.I built my warm-start base from the raw copy. The two differ by well under one percent on a typical tensor — small enough to pass every structural check: shapes match, counts match, and a “did the weights change?” assertion passes happily, because they did change, just to the wrong values.The cost, on a paired test where punctuation was the only variable: the comma-to-pause effect collapsed by 80%. I spent a day blaming the vocabulary before checking the checkpoint.The guard is two-sided. Assert the tensor matches the copy you intended, and that it does not match the one you didn’t. A fallback chain that quietly tries the other key will succeed with the wrong answer, and every downstream check will agree with it.Mistake 2: Blaming the vocabulary without diffing itMy hypothesis for that collapse: growing the text-embedding table for the new script had shifted token indices. Plausible mechanism. I wrote it up as the cause, and a second opinion from a different model agreed independently.Then I diffed the two vocabulary files. Zero indices differed. It was a clean append — punctuation and script marks in identical positions, and the new rows provably inert, initialized two orders of magnitude smaller than existing ones. The extended vocabulary produced bit-identical output to the original.Diff the artifacts before attributing a regression to a change. “The vocabulary grew, therefore indices shifted” is a hypothesis; diff is an answer, and it takes one second. And agreement is not evidence — two confident sources sharing an unverified premise produce a more persuasive error, not a truer one.Mistake 3: Measuring silence and calling it a pauseThis voided a week’s headline result.I measured interior pauses with an energy detector: per-frame level relative to peak, contiguous runs below a quiet threshold, edges excluded. Standard, and validated — on synthetic audio with a known half-second silence, it recovered the region exactly. Adding punctuation produced substantial interior silence where bare text produced almost none.Upon listening to the clip, found out that words were missing. Transcription showed character error up 29% relative with punctuation added, and in the worst case the share of lost characters roughly quintupled. One sample lost two words and merged two others — alongside a beautiful, clearly measurable second-long “pause.”An energy detector cannot distinguish an inserted pause from a deleted word. Both are absence of speech. Silence measured in dB is not evidence of a pause; every gap claim needs a paired intelligibility check.Mistake 4: Hardcoding the duration budgetF5-TTS has no duration model — you specify total output length, and it decides internally how to split frames between speech and silence. My first approach: word time from a corpus-average rate, plus a fixed allowance per punctuation mark.Three problems, each needing measurement to see.The rate double-counted. I derived it as characters over full clip duration, which already includes pause time. Measured against forced-alignment boundaries, the speech-only and inclusive rates differ by ~40%, because a quarter of a typical clip is not speech. Either measure speech-only and add pauses, or measure inclusive and add nothing — not a mixture.Extra duration does not buy pauses. Sweeping only the requested duration across a 40% range — over two seconds on one utterance — the longest pause stayed within a ±10% band and never trended up. Every extra frame went into speech. The model stretches words rather than inserting silence, so a generous multiplier just slows the voice down.No constant fits. Articulation rate spans ~2.5× from the 10th to 90th percentile, and ~3× within a single recording.Measure the reference clip instead. It already determines timbre and pacing, so it carries what you need — its own rate, gap sizes, and silent share. A speaker’s silence habit is itself the multiplier.Mistake 5: Declaring a null result at a fraction of the reference computeTwo dozen epochs in, the punctuation effect was flat and loss had barely moved. I concluded the approach had failed and recommended changing the mechanism.Then I did the arithmetic against the recipe I was following (Varadhan et al., 2025, fine-tuning F5-TTS for 11 Indian languages). Their run used a large cluster for six figures of steps; mine one GPU for a fraction of that. I had seen about a thousandth of their training frames — two dozen epochs against a precedent needing hundreds.At that ratio a flat result is the expected reading, not a refutation. I declared a null at a thousandth of the reference compute, then used it to argue against the fix it pointed toward.Copying their batch size would also have been wrong: it is a fraction of a percent of their corpus but would be a sixth of mine, leaving a handful of steps per epoch. Gradient accumulation cannot rescue that — it changes gradient quality, not frames processed.Epochs over your own corpus is the transferable quantity. Never report a null without stating achieved compute as a fraction of the reference recipe.The finding that mattered more than any of the fixesOnce the measurements were trustworthy, one result dominated.Whether the model produces interior pauses is determined by the reference clip, not by training. Same checkpoint, same text, same seed — the only variable is which reference conditions the generation:A reference whose speaker never pauses produces a generation that never pauses, regardless of the text or how long you train.Obvious in hindsight — F5-TTS is a voice-cloning model, so the reference carries pacing along with timbre. Easy to miss in practice: every probe I ran for a week used the same convenient clip, and it happened to have no interior pause. I was asking “can this model pause?” while conditioning it on a speaker who does not.Two consequences. Reference selection is an inference-time fix — in my corpus only about one clip in eight carried a usable interior pause at reference length, but screening costs no GPU time. And you cannot fake it with synthetic silence: I spliced digital silence into a pause-free clip in several variants matched to a working reference’s profile, and all produced essentially nothing — one slightly negative. The model responds not to silence but to the prosody around a real pause: the pre-pause decay, the breath, the pitch reset.What I would tell someone starting todayThe mechanics of adapting F5-TTS to a new script (Language) are genuinely easy: append characters to the vocabulary (never reorder — preserve existing indices), load the EMA weights, train. All five mistakes were in the measurement, not the model.A checklist, in the order the failures bit:Assert which state dict you loaded — and that you did not load the other one.Diff artifacts before blaming them. One minute beats one day.Never report a gap without a paired intelligibility check. Silence and a deleted word are indistinguishable to an energy detector.Derive duration from the reference clip. Speaking rate varies 2.5× across speakers and 3× within one recording; no constant fits.State achieved compute as a fraction of your reference recipe before calling anything a null result.Check whether your reference clip has the property you are testing for. This one would have saved me the most time.On one sample, automatic transcription scored a perfect character error rate , but upon listening it sounded robotic. Both facts were true. Only one mattered. Objective metrics tell you when something is definitely broken — not when it is good.If you are working on multilingual TTS or forced alignment and any of this is useful — or if you have hit these differently — I would be glad to compare notes.Disclaimer: The views, opinions, and technical content expressed in this article are entirely my own and do not represent, reflect, or imply endorsement by my employer. This work uses publicly available open-source models and openly licensed datasets. No proprietary or confidential data, code, or systems are described.What I Got Wrong Fine-Tuning F5-TTS for a New Writing System was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.