Back Home

開源模型與框架

Transformers 5.17 Integrates Six Model Architectures, Vision RoPE Refactor Requires Custom Model Migration

The new release brings HYV4, KimiLinear, NeoMME, and three speech architectures into the standard `from_pretrained` path while reducing device synchronization overhead in the generation loop. Meanwhile, 2D/3D Vision RoPE has been consolidated into a shared module, potentially breaking custom models that depend on legacy grid and frequency calculations.

Andrew Wippler from Lancaster, USA · CC BY 2.0 · Image source
zh-Hant

Hugging Face uploaded [Transformers 5.17.0](https://pypi.org/project/transformers/5.17.0/) on September 9, bringing six architectures that previously required specialized or remote code into the framework. The language models include HYV4 Preview and KimiLinear. According to the official documentation, the former is a 780B-parameter MoE that activates approximately 49B parameters per token, while the latter combines predominantly Kimi Delta Attention layers with periodic full-attention MLA layers. The multi-token prediction layers in HYV4 checkpoints are not currently executed, and their associated weights are ignored during loading. Therefore, “loadable” should not be equated with a complete reproduction of the original inference stack.

On the multimodal side, NeoMME uses a single bidirectional Transformer to encode text tokens and raw image patches, and includes a variant with joint late-interaction and dense objectives for document retrieval. New speech integrations include VibeVoice, Fun-ASR-Nano, and Canary-1B-v2, covering long-form multi-speaker synthesis; recognition of Mandarin, English, Japanese, dialects, and accents; and multilingual transcription and speech translation, respectively. The practical value of these integrations lies in their shared AutoClass, processor, and deployment interfaces—not in any claim that the framework team has independently validated each model’s quality.

The most important breaking change in this release is Vision RoPE. The framework has consolidated model-specific 2D/3D rotary frequency calculations for vision models into `modeling_rope_utils.py`. Downstream models that override attention layers, construct their own positional grids, or depend on legacy parameter shapes may encounter loading errors after upgrading—or even subtle output drift. Deployers should run regressions using fixed images, position indices, and logits snapshots rather than merely confirming that weights load successfully.

The generation layer also removes unnecessary accelerator synchronization at each decoding step and fixes issues involving remote file downloads, VibeVoice quantization caches, and cacheless paged attention. These fixes may improve latency and correctness, but no end-to-end benchmarks across hardware platforms are currently available. Engineering teams should next monitor support for specialized inference backends for the newly integrated models, as well as compatibility reports following the Vision RoPE migration.

Sources

  1. Transformers 5.17.0 package and publication provenance
  2. Transformers 5.17.0:六種架構與 Vision RoPE 重構
  3. Transformers releases