Release
Transformers 5.24 vs 5.23: Upgrade Now, Rename Later
The Brief
- Hugging Face tagged Transformers v5.24.0 on November 21, 2026.
- v5.24 renames the KV cache argument from past_key_values to cache across the library.
- Old argument names are auto-translated, so existing code is expected to keep working for now.
Why it matters
Code that passes past_key_values will still run after upgrading to 5.24 because the old names are translated automatically, but the rename will matter once that translation is removed.
Who’s affected
- Developers using Hugging Face Transformers
- Teams with code that passes past_key_values
What to do
- Upgrade to Transformers 5.24
- Leave past_key_values usage unchanged for now and plan a migration to cache
- Transformers 5.24.0
- Transformers 5.23
- #transformers
- #hugging-face
- #python
- #machine-learning
- #kv-cache
Verdict: move to Transformers 5.24 and leave your past_key_values code alone for now. Hugging Face tagged v5.24.0 on November 21, 2026 (maintainer Cyrilvallez), and it renames the KV cache argument to cache across the library while auto-translating the old names with a one-time…