> ## Content Index
> Fetch the complete content index at: https://orbiorbi.com/news/llms.txt
> Use this file to discover other available public pages before exploring further.

# Transformers 5.20.2 fixes generation input type handling
- URL: https://orbiorbi.com/news/en/hot/transformers-5-20-2-generation-input-fix-en/
- Published: 2026-10-19T17:45:37.000Z
- Updated: 2026-10-19T23:06:18.000Z
- Description: 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.
- Author: Orbis News
- Tags: #orbis-hot, #en

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\]](#hot-source-1)

## Sources and originals

- \[1\] Hugging Face · 2026-10-20 · [Read original](https://github.com/huggingface/transformers/releases/tag/v5.20.2?ref=orbiorbi.com)  
The patch fixes generation input types and issues including expert-parallel gradients.

{"version":2,"hot":{"event\_id":"transformers-5-20-2-generation-input-fix","group":"open-source","count":1,"heat":20,"verified":"confirmed","firstSeen":"2026-10-19T17:45:37.000Z","lastSeen":"2026-10-19T23:05:57.944Z","sources":\[{"n":"Hugging Face","publisher":"Hugging Face","u":"https://github.com/huggingface/transformers/releases/tag/v5.20.2","say":"The patch fixes generation input types and issues including expert-parallel gradients.","tier":"T0","at":"2026-10-19T17:45:37.000Z"}\],"signals":\[\],"facts":\["The patch also fixes zero expert gradients with bfloat16 expert parallelism when ep\_size is smaller than fsdp\_size."\]}}