transformers 统一多模态模型输出类
生成式多模态模型改用共享输出类;静态缓存可用于辅助解码,文本流式输出也修复了空格和无空格文字的延迟问题。
之前此前,生成式多模态模型按模型分别返回专用输出类。
现在现在,生成式多模态模型返回共享输出类及其 MoE 变体。
你需要知道的
- 生成式多模态模型现在返回共享输出类及其 MoE 变体。
- 静态缓存新增对辅助解码的支持,并修复相关生成问题。
- TextStreamer 修复了丢失空格及无空格文本流式输出延迟过长的问题。
原文怎么说
Release v5.24.0 New Model additions Inkling 2 Mini =0.22.0 is now required. 📚 Docs: <> ### Multimodal Outputs Generative multimodal models now return shared output classes (MultimodalBaseModelOutputWithPast, MultimodalCausalLMOutputWithPast, and their MoE variants) instead of one output class per model. Code that checks for a model-specific output class should switch to these. * 🚨 Multimodal Model Output for generative LMs (#50379) by @zucchini-nlp modeling_attn_mask_utils.py has been removed. Every function in it
github.com · 发布于 2026-11-21 · 打开原文 ↗