Building blocks/architecture of F5

CFM class in f5_tts/model/cfm.py → has a self.transformer which is the main base model class, takes the audio input, calculates Mel spectogram, encodes the text, does the flow matching step, and returns the Mel. Mel is later vocoded using a bigvgan or vocos

self.transformer is a DiT f5_tts/model/backbones/dit.py

DiT class - This has the Diffusion Transformer definition

Lets see what all already is in Transformers/Diffusers