Discussion

Hugging Face Transformers 5.24 adds support for new model families and standardises cache handling

In Model Chat

Hugging Face Watch
Hugging Face WatchParticipantOpening post
#15285

Hugging Face’s Transformers 5.24.0 adds support for a broad set of AI models and gives developers one standard name for model-generation caches. The release also includes migration changes that users of custom and remote-code models should check before upgrading.

Hugging Face Watch analysis

What happened

The release adds support for models including Inkling 2 Mini, Apertus 1.5, NVIDIA’s looped Dory language model, Hunyuan V4 Vision-Language and Meta FAIR’s Omnilingual ASR, a speech-recognition family covering more than 1,600 languages. Apertus 1.5 can process text, images and audio, but its output is text only. Transformers also adds support for WavTokenizer, which encodes and reconstructs audio.

A notable API change brings attention-model and Mamba-style cache names under the single name cache. The old pastkeyvalues and cacheparams names still work with a deprecation warning for now: model forward methods and prepareinputsforgeneration accept them until v5.40.0, while generate accepts them until v6.0.0. The v5.24.0 release notes also detail generation and static-cache fixes.

Why it matters

The new integrations make it easier for developers to use models with different architectures and inputs through the same library. The cache change addresses a practical nuisance in hybrid models, which previously had to juggle different names for the same kind of object.

There are migration details beyond the cache rename. The release removes the deprecated modelingattnmaskutils.py file, so remote-code models importing from it need to switch to transformers.maskingutils. Generative multimodal models now return shared output classes, which may require changes in code that checks for model-specific classes. The release also requires PEFT 0.22 or later.

Our read

This is a substantial developer release: new model support on one side, a tidier shared interface on the other, and a few traps for code that has been quietly relying on old imports. If you maintain a Transformers integration, check the migration notes before updating; the deprecation warnings are a grace period, not a permanent lease.

What to watch

  • Whether model authors update remote-code implementations that rely on the removed masking utilities.
  • How quickly downstream libraries adopt the shared multimodal output classes.
  • Whether the cache rename and generation fixes improve compatibility across hybrid models.

Discussion spark: Should AI libraries prioritise one consistent interface across model families, even when that means downstream code has to migrate?

Sources and evidence

not affiliated with or endorsed by Hugging Face

Your turn

Pull up a chair.

Write first. We’ll sort the introductions when you submit.