Hugging Face's new Transformers release, published on November 21, expands the choice of image, audio, and video models. Developers building services for multiple input types can use more models. Shared output formats and unified names for caches, which temporarily store reusable data, help streamline model integration code.

1. New image, audio, and video models

Apertus 1.5, added in v5.24.0, accepts text, images, and audio and generates text. It converts images and sound into tokens that can be processed alongside text and feeds them into a language model.

HY4-VL is a generative model that handles images, video, and text together. Meta's Omnilingual ASR transcribes speech in more than 1,600 languages. They add options for generating responses about visual material and recognizing multilingual speech, respectively.

WavTokenizer converts 24 kHz mono audio, which stores sound in one channel, into tokens and reconstructs it. Depending on the checkpoint, a file storing a trained model's state, it uses 40 or 75 tokens per second. Apertus 1.5 uses the 40-token-per-second variant for audio processing.

2. Repeating layers adjusts speed and quality

Thinking Machines Lab's Inkling 2 Mini takes images and text and outputs text. Decoder layers are neural network stages that generate output sequentially. Mini has fewer layers than the previously supported Inkling 2 Small and repeats some of them. It reuses certain stages rather than stacking more processing stages.

Table: Layer configurations of Inkling 2 Small and Mini

Conditions: Default configurations in the release notes, excluding research checkpoints with variable repetition

Units: Layer counts in layers, layer ranges as indices, repetitions in times

Repeating layers adjusts speed and quality
ItemValue
Inkling 2 Small decoder layer count48
Inkling 2 Mini decoder layer count24
Inkling 2 Mini repeated layer range6~17
Inkling 2 Mini repetition count3

Research checkpoints also allow the repetition count to be adjusted. The release notes say fewer repetitions are faster, while more improve quality. NVIDIA's Dory also adjusts speed and quality by changing how often layer groups repeat within the same checkpoint.

Recurrent models can pursue higher quality with the same weights, but at the cost of repeated computation for each token. Weights are the numerical parameters learned by a model.

Sarvam AI's SarvamMLA and SarvamMoE were also added. Both select a subset of experts for each token. Experts are submodules selected for computation based on the input. They select 8 and 6 out of 128 experts, respectively, and each uses one additional shared expert. Unlike repeatedly running the same layers, this approach selects which experts process each token.

3. Shared outputs connect multimodal inference

Generative multimodal models return shared output classes instead of model-specific ones. A class defines the structure and behavior of result data. Instead of each model using its own container for results, they now use shared containers.

Multimodal pipelines, execution flows connecting multiple processing stages, handle media-only inputs and assistant response prefixes specified as strings. When returning tensors, they place chat messages in input_text. Both input construction and result handling have been updated.

Image processing has also changed. SigLIP2 and LFM2-VL batch images together for tensor operations, which perform calculations on multidimensional numerical data.

4. Check code for shared outputs and cache names

Code that checks output types should use shared output classes rather than model-specific classes.

Attention models, which weight important parts of the input, used to call their cache past_key_values, while Mamba-style and linear attention models called it cache_params. These two names are now unified as cache. This reduces the inconvenience of handling the same object under two names in hybrid architectures. Old names are converted automatically with deprecation warnings, while new code can use the unified name.

# Before
outputs = model(input_ids, past_key_values=past_key_values, use_cache=True)
next_cache = outputs.past_key_values

# Now
outputs = model(input_ids, cache=cache, use_cache=True)
next_cache = outputs.cache

Model calls and generation input preparation accept the old names until v5.40.0. The generation API supports them until v6.0.0. Old output field names also remain available for cache access, allowing time to migrate existing code.

Passing both old and new names causes an error, and externally defined models may need argument names updated. Overridden cache update methods must be modified to accept additional kwargs arguments.

The minimum required peft version has risen to 0.22.0 to accommodate cache name compatibility changes. For developers using related tools, checking cache calls and dependency versions together is the starting point for migration.

5. Reusing implementations simplifies model adoption

EXAONE 3.0, 3.5, and Deep can now use the existing Llama implementation through automatic selection and loading of an implementation suited to the model type. Weight names are adapted to the existing implementation during loading and restored during saving.

These models can be used without trust_remote_code=True, the setting that permits separate model code. Reusing existing implementations also simplifies model adoption.

This release expands multimodal model choices while simplifying code integration across models through shared outputs and unified cache names.