transformers>=5 stops forwarding text-model attributes from the composite Qwen2_5_VLConfig, drops the 'default' ROPE_INIT_FUNCTIONS entry, and requires flash-attn functions to be preloaded before _flash_attention_forward. Flatten text_config at model entry, replicate the 4.x default rope init, and preload flash-attn (falling back to SDPA). Fixes Kandinsky5 and Cosmos 2.5 encoder loading under the transformers>=4.57.3 pin. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>