Finetuned from the original weights with: per-channel normalized EnCodec latents, a padding mask in latent self-attention, and 15% text dropout (learned null-text token) for classifier-free guidance. Trained 12k + 28k steps on the 5,500-utterance training split; EMA weights.
from transformers import AutoModel
m = AutoModel.from_pretrained("FloatinggOnion/yoruba-cfm-dit", trust_remote_code=True)
out = m.generate("Báwo ni, ẹ kú àárọ̀.", seed=0) # guidance_scale=3.0, 32 Euler steps by default
# out["audio"] [1,1,N] @ out["sample_rate"]=24000; out["latents"] are denormalized EnCodec latents
Notes
config.latent_mean/std are REQUIRED (weights were trained on normalized latents). These weights are
NOT compatible with the v1 modeling code, and v1 weights are not compatible with this one.num_latent_frames to override.model.safetensors, config.json, modeling_yoruba_cfm_v2.py, configuration_yoruba_cfm_v2.py, phoneme_vocab.json: the v2 model (this README).modeling_yoruba_cfm.py, configuration_yoruba_cfm.py, yoruba_cfm_ema_weights.pt, yoruba_cfm_last.ckpt: LEGACY v1 files kept for reference.
The legacy .pt/.ckpt weights were trained on raw latents with no guidance and do NOT load into the v2 code.
Earlier revisions of this repo (git history) contain the v1 model.safetensors/config.json.Trained on the pre-encoded latents in FloatinggOnion/yoruba-cfm-latents (PlotweaverAI/yoruba-tts-selected-speakers,
5,624 utterances; 5,500 used for training, the rest held out). Audio codec: facebook/encodec_24khz decoder. License: Apache 2.0.
yoruba_cfm_last.ckpt 670 MiByoruba_cfm_ema_weights.pt 223 MiBmodel.safetensors 223 MiB