International
The Morning Dev

Only the news worth knowing

‹
 

Release

Transformers 5.24 vs 5.23: Upgrade Now, Rename Later

DEV · By Shamuddin ·

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

  1. Upgrade to Transformers 5.24
  2. Leave past_key_values usage unchanged for now and plan a migration to 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…

Timeline

  1. Hugging Face tagged Transformers v5.24.0

  2. DEV Community: python

    Transformers 5.24 vs 5.23: Upgrade Now, Rename Later

How do you feel about this?

0 Comments