# Hugging Face patches Transformers for vLLM and model issues

Published 2026-11-25 · AI.info Team · AI.info

> Transformers 5.24.1 restores an attention-mask module and addresses cache compatibility for remote code used by vLLM. The patch also covers Llama4, Dory and distributed workloads.

[Hugging Face](https://github.com/huggingface/transformers/releases/tag/v5.24.1)’s Transformers 5.24.1 patch addresses compatibility issues affecting remote code used by vLLM, alongside model and distributed-computing fixes. The Nov. 24 release follows version 5.24.0, which changed cache names and removed an attention-mask module.

## Remote-code compatibility

Transformers 5.24.0 renamed the `past_key_values` and `cache_params` arguments to `cache` across the library. The old names continued to work with a deprecation warning, according to that release’s notes.

A pull request included in the patch says the rename nevertheless caused two backward-compatibility breaks that stopped some remote code from running on 5.24.0. The patch addresses how mask-function signatures expose the old name and how output classes handle old cache fields that they still declare.

Version 5.24.1 also restores `modeling_attn_mask_utils` for remote code. Version 5.24.0 had removed the module after its functions were deprecated in favor of `transformers.masking_utils`.

The restoration was a one-off exception intended to unblock vLLM, the pull request states. It says remote code served by vLLM still imports the module when loading, and identifies MiniCPM and Nanbeige checkpoints that could not load their configurations on 5.24.0.

Another change exposes `past_key_values` in the `MBartDecoderLayer.forward` signature for remote code.

## Model and distributed fixes

The patch fixes a Llama4 forward-pass crash when `image_outputs` is missing. It also fixes Dory’s static cache; Dory support was added in 5.24.0 for the [NVIDIA](https://ai.info/companies/nvidia) language model.

For OmniASR, the release adds support for a `padding_mask` kept on the CPU in the audio encoder. The preceding release added Omnilingual ASR, a suite of speech-recognition models from [Meta](https://ai.info/companies/meta) FAIR.

In distributed workloads, 5.24.1 allows expert parallelism on its own with `tp_plan={}`. The patch also fixes strided checkpoint reads on PyTorch 2.9.

## Sources

1. Original source · Release notes [Hugging Face](https://github.com/huggingface/transformers/releases/tag/v5.24.1) “Release Patch release v5.24.1” github.com

Other pages read

2. [Hugging Face](https://github.com/huggingface/transformers/releases/tag/v5.24.0) “Release Release v5.24.0” github.com
3. [Hugging Face · page 3](https://github.com/huggingface/transformers/pull/51085) github.com
4. [Hugging Face · page 4](https://github.com/huggingface/transformers/pull/51124) github.com
5. [PyPI](https://pypi.org/project/transformers/5.24.1/) “transformers 5.24.1 on PyPI (uploaded 24 Nov 2026)” pypi.org

## Companies in this story

- [Hugging Face Inc.](https://ai.info/companies/hugging-face-inc)
- [HuggingFace](https://ai.info/companies/huggingface)

## Related stories

- [Transformers 5.23 adds support for Inkling 2 Small](https://ai.info/news/transformers-5-23-inkling-2-small-support)
- [Hugging Face switches language-model routing to OpenRouter](https://ai.info/news/hugging-face-openrouter-inference-routing)
- [Google Research says residual-connection design speeds model training](https://ai.info/news/google-research-deepcrossattention-transformer-residual-connections)
- [Baidu's ERNIE 5.5 Flash Preview weights run on stock vLLM through a new plugin](https://ai.info/news/vllm-ernie-5-5-flash-preview-plugin-support)
- [vLLM details opt-in FlyDSL MonoKernels for faster decode on AMD GPUs](https://ai.info/news/vllm-flydsl-monokernels-agent-inference)

## Explore

[More articles](https://ai.info/news)

---

Canonical: https://ai.info/news/hugging-face-transformers-5-24-1-patch
