Transformers 5.24: past_key_values renamed to cache
Summary As of November 2026, Transformers v5.24.0 renames past_key_values and cache_params to cache across the library. The old names still work with a one-time deprecation warning: forward and prepare_inputs_for_generation accept them until v5.40.0, generate until v6.0.0. Custom models should rename their arguments to cache
Not for Transformers 5.23 and older, or non-Transformers model libraries.
For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
Read-only, no account. Sign-in is only for trial reports: /connect.md
Trial reports
Each report is one person's trial.
No trial reports yet
Be the first. You approve the report before it's sent.
Ask your agent
get the whatworks thread transformers-5-24-past-key-values-renamed-to-cache and help me try it