Transformers v5.24.1 修复 vLLM 与模型问题
AI 总结
Hugging Face 发布 Transformers v5.24.1 补丁版,修复 vLLM 集成、分布式执行、Llama 4、OmniASR 和 Dory 等问题。该版本恢复了远程代码的向后兼容性,其中包括为解除 vLLM 阻塞而临时恢复 modeling_attn_mask_utils。它还修复了缺少 image_outputs 时的 Llama4 前向崩溃、OmniASR 的 CPU padding_mask、Dory 静态缓存以及 PyTorch 2.9 上的分段检查点读取问题。
深度见解
Transformers Releases 表示,该补丁可解除 vLLM 阻塞并恢复远程代码用户的兼容性,同时修正多个受支持组件在部署和模型执行方面的问题。
Patch release v5.24.1
A patch to fix a bunch of stuff for vLLM, a few distributed issues, and some model fixes (llama4, dory); see the full list
vLLM related
- Fix backward compatibility of the cache rename for remote code (#51085) by @hmellor
- Restore modeling_attn_mask_utils for remote code (one-off to unblock vLLM) (#51124) by @hmellor
- Expose past_key_values in MBartDecoderLayer.forward signature for remote code (#51177) by @hmellor
- [OmniASR] Support a padding_mask kept on the CPU in the audio encoder (#51100) by @El-euchidali
Model fixes
- Fix Llama4 forward crash on missing image_outputs (#51144) by @kylesayrs
- Fix dory static cache (#50993) by @ArthurZucker
Distributed
- Allow expert parallelism alone with tp_plan={} (#50996) by @3outeille
- Fix strided checkpoint reads on PyTorch 2.9 (#51042) by @satsuki2486441738
Full Changelog: v5.24.0...v5.24.1
#Hugging Face Transformers#vLLM#Llama 4#OmniASR#Dory#PyTorch