huggingface/transformers 5.24.0 adds dozens of multimodal models and renames cache parameters
Version 5.24.0 introduces dozens of multimodal models such as Inkling 2 Mini and Apertus 1.5, adds static‑cache support for assisted decoding, and renames past_key_values and cache_params to cache.
The Transformers library released version 5.24.0 on 2026‑11‑21. The update brings a large set of new multimodal models and changes the naming of cache‑related parameters.
Inkling 2 Mini, a smaller multimodal model from Thinking Machines Lab, processes text and images with 24 decoder layers and repeats layers 6‑17 three times, uses a hidden size of 2304, and routes each token to 8 of 128 experts. The accompanying research checkpoint (TML-d24-varloop-research) permits a variable number of loop passes and includes NVFP4 and MXFP8 quantized layers that de‑quantize on load.
Apertus 1.5, contributed by the Swiss AI Initiative, accepts text, images and audio, employs the EMU3.5 vision tokenizer (a VQGAN‑based image tokenizer) and a WavTokenizer for audio, and generates only text output. The WavTokenizer converts 24 kHz mono audio into discrete tokens at 40 or 75 tokens per second, can reconstruct the audio, and its 40‑tps variant powers Apertus 1.5’s audio tokenization.
Dory, a looped latent‑recurrent language model from NVIDIA, uses a normalized‑GPT architecture with interleaved sliding‑window and full‑attention layers, and its loop count can be changed at inference to trade speed for quality. HY4‑VL combines the HYV4 mixture‑of‑experts text backbone with a vision encoder, supports dynamic‑resolution inputs, and uses multimodal rotary position embeddings for image‑text and video‑text generation.
The Omnilingual ASR suite from Meta FAIR covers more than 1,600 languages, offers CTC and audio‑language‑model heads, and is released in 300 M, 1 B, 3 B and 7 B parameter sizes. Lara Mini is a 7.2 B‑parameter multilingual base model with 0.6 B active parameters per token, built from linear‑time recurrent, sliding‑window, and global attention layers with fine‑grained MoE, and its weights are released under a CC BY‑NC‑SA 4.0 non‑commercial license.
SarvamMLA defines the architecture of the 105 B‑parameter Sarvam‑105B model, featuring 128 experts with 8 active per token, sigmoid routing, YaRN rotary embeddings for up to 131 K token context, and matches the DeepSeek‑V3 design. SarvamMoE describes the 30 B‑parameter Sarvam‑30B architecture, uses grouped‑query attention with QK normalization, 128 experts with 6 active per token, and shares implementation with GLM‑4‑MoE.
EXAONE models (3.0, 3.5, Deep) from LG AI Research use the standard Llama architecture, can be loaded with LlamaModel without requiring trust_remote_code, and automatically map checkpoint names to Llama names.
The release adds static‑cache support for assisted decoding, fixes generate with flex attention and static cache, restores KV sharing for Gemma 4 assistants, and ensures BigBird block‑sparse decoding works with a KV cache.
past_key_valuesandcache_paramsare renamed tocache; old names emit deprecation warnings and will be removed from model forward signatures after v5.40.0 and fromgenerateafter v6.0.0.peftversion must be >=0.22.0 for cache compatibility.- Multimodal models now return shared output classes
MultimodalBaseModelOutputWithPastandMultimodalCausalLMOutputWithPastinstead of model‑specific output classes.