The order of chunked values in AdaLayerNorm_Final
Author: JohnHerryCreated Mar 5, 2026Updated Mar 5, 2026
https://github.com/SWivid/F5-TTS/blob/4533426c7278fd519e8302b313dae55729ed206e/src/f5_tts/model/modules.py#L340
The code above, it makes: scale, shift order, This is fine and worked when both training and inference have the same module.
But when I want to load the pretrained F5-TTS module here, with huggingace/diffusers, where:
https://github.com/huggingface/diffusers/blob/20364fe5a2afbddbf2ec5097ec5d483ce0cc689a/src/diffusers/models/normalization.py#L74 that keeps shift first and scale second in both AdaLayerNorm and AdaLayerNorm_Final, it will make bad result.
suggest to keep an identical order.
Source: SWivid/F5-TTS