‹ Back to Orbis News

Transformers 5.20.2 fixes generation input type handling

Orbis News

According to Hugging Face, Transformers 5.20.2 fixes inputs losing their original types inside prepare_inputs_for_generation during generate, which could cause problems with multimodal models.

  • The patch also fixes zero expert gradients with bfloat16 expert parallelism when ep_size is smaller than fsdp_size. [1]

Sources and originals

  • [1] Hugging Face · · Read original

    The patch fixes generation input types and issues including expert-parallel gradients.