Reproducing the Speech Labels of Qwen3-Omni's Talker: Mimi in bf16, and a Last-Frame Pitfall
Yuxuan Chen in Training & fine-tuning
How can one unpadded frame make Qwen learn a noisy ending?
Reproducing the Speech Labels of Qwen3-Omni's Talker: Mimi in bf16, and a Last-Frame Pitfall
Matching labels make voice tuning possible
- 1
Audio becomes code labels
Qwen3-Omni uses 16 discrete code IDs per 80 ms frame (12.5 frames per second).
- 2
Talker and MTP split work
The Talker predicts codebook 0; its multi-token predictor (MTP) predicts the other 15.
- 3
The speech-label encoder is missing
The released checkpoint includes Talker, MTP and the Code2Wav decoder, but not the speech encoder that made their labels.
First, identify the codec family
Mimi is a public speech codec; shared code IDs should make its codebook vectors predict Qwen's learned embedding tables.
Ridge regression predicts every Talker, MTP and Code2Wav table from its matching Mimi layer, but not other layers or the same-shape Qwen TTS codec.
This rules out a different tokenizer, not a modified Mimi encoder.
Why the decoder probe is discarded
Code2Wav's code-swap test ranks the fp32 Mimi reference first, apparently supporting it as Qwen's label encoder.
Three fresh decoders rank fp32 first, including one trained on random-5% labels. Candidate codes are scored as targets (teacher forcing) under Talker/MTP; the last frame is excluded, and 13 known-label code models calibrate likelihoods.
With the last frame excluded, the Talker favors kyutai's moshi Mimi labels with bf16 weights among tested variants.
A padding mismatch corrupts one frame
- 1
Two padding paths
kyutai's Mimi pads the waveform before encoding; transformers' Mimi port pads inside strided convolutions, where zeros are not the network's response to silence.
- 2
Mismatch concentrates at the tail
On 512 CPU-fp32 utterances with 32 codebooks, 99.99% of earlier-frame tokens matched, versus 5.5% in the last frame.
- 3
Append zeros before encoding
Zero-padding input to a multiple of 1,920 samples made transformers match kyutai on all frames in 508 of 512 utterances.
A single output shows the noisy tail

One held-out Chinese example, same text and seed, different LoRA models: with unpadded transformers fp32 labels the final 80 ms jumps 36 dB; recipe labels end at −50 dB relative to the loudest 80 ms.
In these Qwen LoRA runs, padding mattered more than precision
Across two Qwen3-Omni LoRA voice adaptations, 44–55% of generated sentences had a final 80 ms above −20 dB relative to their loudest 80 ms.
Padding removed the burst; CER/WER and speaker similarity did not separate from recipe labels. On 160 VCTK utterances, CSM-1B's unpadded last-frame NLL was 119 nats above moshi fp32 labels (32 codebooks); padding erased it.
What this recipe cannot guarantee
Behavior, not exact weights
Likelihoods identify behavior among tested candidates; untested encoder changes may be invisible, so bit-exact Qwen weights aren't established.
Code outputs can drift
bf16 codes vary across GPUs, PyTorch versions and tensor shapes; Qwen's exact hardware and batching are unknown, so bit-for-bit reproduction is not promised.
LoRA scope is narrow
The Qwen study tested LoRA on two speakers and about 47 minutes; full fine-tuning, new languages and expressive styles remain untested.
Why it matters
- Qwen3-Omni behaves as if its labels came from kyutai's Mimi via moshi with bf16 weights; that is not proof of identical weights.
- For transformers Mimi labels, zero-pad the waveform tail before encoding so the final valid frame sees silence.
- Whether this fingerprint and fix generalize to full fine-tuning, new languages and expressive speech remains untested.
1 upvotes on Hugging Face 9 slides, 2 min
6 days ago