多模态模型核心,AI 模型开发基石
为transformers打分
给出您宝贵的评分:
相关产品
手机端可长按图片保存,分享到朋友圈 / 社群
使用 transformers,你可以:
顶尖机器学习模型定义框架,支持文本、视觉、音频及多模态模型的训练与推理,是大模型开发的核心工具。
用户评论 (0)
2025年03月26日
2022年03月11日
2022年03月21日
2025年03月26日
v5.22.2
2026年11月06日
Patch release v5.22.2
Some in between patch for security and distributed fixes. See the included commits 🤗
- [Distributed] Set device_id only for NCCL (#50281) by @michaelbenayoun and @3outeille
- Harden our Jinja sandboxing (#50431) by @Rocketknight1
Full Changelog: v5.22.1...v5.22.2
详细ChangeLogv5.22.1
2026年10月30日
Patch release v5.22.1
We just had to fix the documentation!
** [Fix] Remove WIP doc for Ml4 (#50124) from @remi-or
详细ChangeLogv5.22.0
2026年10月29日
New Models
Mistral Large 4 (Le Chonk)
Mistral Large 4 is Mistral's largest and most capable model to date: a 1 trillion-parameter natively multimodal Mixture-of-Experts model with 49 billion active parameters per token (52 billion including embeddings and output layers), trained from scratch on 3,800 NVIDIA Grace Blackwell GPUs in Mistral's own datacenters in Europe.
Mistral Large 4 unifies instruction following, reasoning, coding, and agentic workflows in a single set of weights. While a generalist model, it shows especially good performance on workloads such as cybersecurity, finance, and law, and it surpasses frontier closed models on visual grounding. It is natively fluent in 160+ languages, including every official language of the European Union.
Key Features
Mistral Large 4 includes the following architectural choices:
- ~1T total / ~52B active parameters: granular Mixture-of-Experts with 128 routed experts (4 active per token) and 1 shared expert.
- 1M context length, for long-context workloads.
- Multimodal input: accepts text and image input, with text output. Pixtral-style vision encoder trained to handle variable image sizes and aspect ratios.
- Instruct and Reasoning functionalities with function calls, reasoning effort configurable per request.
Mistral Large 4 offers the following capabilities:
- Reasoning Mode: three reasoning efforts —
low,medium,high(default) — so the same model can answer a quick chat reply or work through a complex agentic run. - Vision: analyzes images, charts, technical drawings, and documents, with state-of-the-art visual grounding among open weights.
- Multilingual: natively fluent in 160+ languages, including all official languages of the European Union.
- System Prompt: strong adherence and support for system prompts.
- Agentic: native function calling, JSON output, and strict JSON schema enforcement.
- Cybersecurity: state of the art among open-weight models for security work, while refusing malicious requests.
- Large Context Window: supports a 1M context window.
The model is released under the Mistral Ecosystem Open-Weight License: a modified version of the MIT license, for both commercial and non-commercial use — operating a Model-as-a-Service business requires a separate commercial license with Mistral.
Recommended Settings
- Reasoning Effort:
'low'/'medium'/'high'— default is'high'.- Use
reasoning_effort="high"for complex prompts and agentic usage,'low'for fast chat replies and'medium'for day to day usage.
- Sampling: for all reasoning efforts, we recommend the following sampling parameters:
temperature=1.0top_p=0.95
- System Prompt: define a clear environment and use case, including guidance on how to effectively leverage tools in agentic systems.
- Tools: keep the set of tools well-defined and limit their number to the minimum required for the use case.
- Context: the checkpoint supports a 1M context window.
Breaking changes
- 🚨 Separate EP logic into its own file (#49679) by @3outeille
Quantization
FP8 quantized models can now be used for adapter training (such as LoRA with PEFT). Backward passes were added to the dense and grouped FP8 matmuls, and is_trainable is now True. Backward also dequantizes experts in chunks and skips autograd at inference, which cuts peak memory in the MoE layer backward from about 28.9 GiB to 2.8 GiB at 8k tokens. Separately, the AMD CI image now install
- FP8 backward: chunked expert dequant, skip autograd.Function at inference (#50117) by @ArthurZucker in [#50117]
- Train adapters on top of FP8 weights (#50031) by @qgallouedec in [#50031]
- [AMD CI] Install onnxscript, bitsandbytes and peft in the AMD image (#50046) by @Abdennacer-Badaoui in [#50046]
Bugfixes and improvements
- Processor unnecessary warnings (#49812) by @zucchini-nlp in [#49812]
- Fix boolean padding in ClapFeatureExtractor (#23648) (#49960) by @rudy-07 in [#49960]
- [Fix] Count cropping of an uninitialized layer as a no-op (#50104) by @remi-or in [#50104]
- [loading] Allow
PermuteForRopeto act on single tensors while renaming (#50092) by @Cyrilvallez in [#50092] - Add Nemotron 3.5 Transcribe (#50084) by @eustlb in [#50084]
- [Nemotron3Diarization] add left context support (#49283) by @eustlb in [#49283]
- [Janus] Fix processor iterating a string prompt character by character (#50044) by @tarekziade in [#50044]
- fix(config): forward token kwarg to get_config_dict in PreTrainedConfig.from_pretrained (#50081) by @ydshieh in [#50081]
- Fix
rope_scalingsetter for configs that assign it during init (#50080) by @hmellor in [#50080] - [timesfm] Fix fp16 overflow on pad_val in _forward_transform (#50021) by @tarekziade in [#50021]
- Update dev version (#50068) by @albertvillanova in [#50068]
- Pin the shared Hub MIC fleet dataset (#49802) by @tarekziade in [#49802]
- [docs] NVIDIA/Intel/CPU (#49650) by @stevhliu in [#49650]
- Document how to handle non-persistent buffer initialization in custom models (#49880) by @Tialo in [#49880]
- Remove legacy benchmark/ and disable automatic benchmark runs (#50040) by @tarekziade in [#50040]
- Remove deprecation cycle for candidate generators (#50034) by @Cyrilvallez in [#50034]
- Fix test pil import leak (#49915) by @guarin in [#49915]
- fix: preserve NumPy integer label dtypes in default data collators (#49900) by @BlazeSR10hawk in [#49900]
- [ESMFold2] Don't build the MSA encoder for checkpoints without one (#49890) by @jimburtoft in [#49890]
- [minimax_m3_vl] Gate the integration tests on total accelerator memory (#50025) by @tarekziade in [#50025]
- Fix: Add kwargs in LFM2.5 conv layers (#50022) by @younesbelkada in [#50022]
- Forward code_revision to every pipeline loader (#49832) by @Rocketknight1 in [#49832]
- [moshi] Skip Moshiko integration tests whose checkpoint is gone (#50017) by @tarekziade in [#50017]
- Keep a capturing group's escapes when reversing a conversion pattern (#49772) by @IlyasMoutawwakil in [#49772]
- perf(ci): skip the lazy blob fetch in
git blameon a partial clone (#50007) by @nrenvo in [#50007] - fix(canary): set layerdrop=0.0 in test tester to prevent flaky test (#50012) by @ydshieh in [#50012]
- add a WA to Dockerfile for XPU (#50008) by @kaixuanliu in [#50008]
- pipelines: defer eager model imports in text_to_audio and token_classification (#50001) by @ydshieh in [#50001]
- [exporters] resolve @register_patch paths lazily to avoid eager model imports (#50000) by @ydshieh in [#50000]
- [Fix] Remove useless kwargs (#49966) by @remi-or in [#49966]
- Fix model's config attr naming (#49898) by @zucchini-nlp in [#49898]
Significant community contributions
The following contributors have made significant changes to the library over the last release:
- @tarekziade
- Fix
_init_weightsgaps in 7 audio models and enabletest_can_init_all_missing_weightsfor them (#49386) - Fix image backend equivalence tests for Pillow 13 (#50105)
- [Janus] Fix processor iterating a string prompt character by character (#50044)
- [timesfm] Fix fp16 overflow on pad_val in _forward_transform (#50021)
- Pin the shared Hub MIC fleet dataset (#49802)
- Remove legacy benchmark/ and disable automatic benchmark runs (#50040)
- [minimax_m3_vl] Gate the integration tests on total accelerator memory (#50025)
- [moshi] Skip Moshiko integration tests whose checkpoint is gone (#50017)
- Fix
- @eustlb
v5.21.1
2026年10月29日
Patch release v5.21.1
** Fix rope_scaling setter for configs that assign it during init (#50080 )
We broke remote code loading in vllm, this fixes it sorry everyone!
详细ChangeLogv5.21
2026年10月27日
Release v5.21.0
New Model additions
MiniCPM-OCR
MiniCPM-OCR is a document-understanding model from OpenBMB's MiniCPM-V family. It keeps the MiniCPM-V 4.6 architecture, which pairs a SigLIP vision encoder and a window-attention merger with a Qwen3.5 language model. It is specialized for reading text-dense images such as scanned pages, screenshots, receipts and tables.
Links: Documentation | Paper
Flint
Flint is Recursive's mixture-of-experts language model. Compared to a standard SwiGLU MoE transformer such as Qwen3-MoE, it uses hybrid attention (sliding-window attention with rotary embeddings over the current token and the previous 512 tokens in most layers, and full attention without positional encoding in the remaining layers). It also has learned attention sinks, as in GPT-OSS, with per-head RMS-normalized queries and keys. Each sparse layer routes a token to 6 of 256 experts by sigmoid score and adds an ungated shared expert, and the first two layers are dense.
Links: Documentation
- Add Flint model support. (#49824) by @lovishmadaan in #49824
UltraVBert
UltraVBert extends ModernVBert by pairing the UltraBERT text encoder with a SigLIP vision encoder for visual document understanding and retrieval. Its image processor splits each page into 512-pixel tiles plus a global view. The connector merges each 4 x 4 block of vision patches into one token, so a tile becomes 64 image tokens, and RMS-normalizes them to the scale of UltraBERT's token embeddings. The max_image_tiles setting (27 by default) caps the number of tiles per page.
Links: Documentation
- Add UltraVBERT (#49685) by @athrael-soju in #49685
Gradium Phonon TTS
Gradium Phonon TTS is Gradium's family of on-device text-to-speech models, trained with the Pocket TTS recipe. A causal transformer reads a voice prompt and the text, then emits one continuous 32-dimensional audio latent per step at 12.5 Hz through a one-step flow head, and an end-of-speech head decides when the utterance ends. The latents are decoded to 24 kHz audio by a Pocket TTS audio tokenizer. Unlike Pocket TTS, voice conditioning uses 512-dimensional latents from a separate, unreleased speaker codec, so voices come as precomputed latents and cannot be cloned from a recording.
Links: Documentation
Pocket TTS
Pocket TTS is Kyutai's 100M-parameter text-to-speech model, built as a Continuous Audio Language Model that runs faster than real time on CPU. A causal transformer emits one continuous audio latent per frame (12.5 Hz) through a one-step flow head, and an end-of-speech head decides when to stop. A Mimi-based audio tokenizer encodes voice prompts and decodes the generated latents to 24 kHz audio. Two flow heads are released, Lagrangian self-distillation (default) and drifting, and voices can be cloned from a recording, passed as precomputed latents, or loaded from cached KV states.
Links: Documentation | [Paper](https://huggingface.co/papers/2509.06926 (the Continuous Audio Language Models paper, arXiv 2509.06926). It is the only paper the documentation links, and it describes the architecture family Pocket TTS belongs to. The docs do not cite a separate Pocket TTS technical report.) | [Blog Post](NONE. The documentation links no official blog post. It points only to the original code repository at https://github.com/kyutai-labs/pocket-tts.)
Pocket TTS Audio Tokenizer
The Pocket TTS audio tokenizer is the codec used by Pocket TTS. It has Mimi's architecture (SEANet convolutions plus a small causal transformer on each side), but its residual vector quantizer is replaced by a continuous 32-dimensional bottleneck, the VAE-GAN from Continuous Audio Language Models. It converts 24 kHz audio into latents at 12.5 Hz and decodes them back to audio. It serves as the audio_tokenizer of PocketTTSProcessor, encoding voice prompts and decoding generated latents, and its encoder and decoder can also be loaded on their own.
Links: Documentation | Paper
Breaking changes
Fixed Gemma4 processor imports (the Gemma4, Gemma4 unified and EmbeddingGemma2 processors) so from transformers import * no longer fails in environments that have PIL but not torch; no user action is needed.
- 🚨 Fix gemma4 cross imports resulting in import failing without
torchbut withPIL(#49748) by @Sai-Suraj-27
Added an "fp8" backend to QuantizedCache, alongside quanto and hqq, that stores KV states in torch.float8_e4m3fn with a single scale per tensor; enable it with cache_implementation="quantized" and cache_config={"backend": "fp8"}.
- 🚨Add an FP8 backend to
QuantizedCache(#48677) by @jiqing-feng
Tensor parallelism now has a dedicated embedding style, shards every model's input embeddings by default, and supports widths that aren't divisible by the TP size, so ColwiseParallel and RowwiseParallel now apply only to linear layers; custom TP plans that applied them to embeddings must switch to the new embedding style.
- 🚨 TP: give embeddings their own style, shard input embeddings by default, and shard widths that don't divide by the TP size (#49570) by @IlyasMoutawwakil
Every MoE TP and EP plan now shards its experts, so models no longer keep all experts on every rank, and a new test_moe_parallel_plans_shard_experts test enforces this; custom or downstream MoE parallel plans must add expert sharding to pass it and to avoid wasted memory.
- 🚨 MoE: shard the experts in every TP/EP plan, and test for it (#49206) by @IlyasMoutawwakil
Cache
This release improves cache handling across the library. Flash Attention now works with static caches, BLOOM no longer crashes with static cache or compiled generate, chunked prefill supports cache continuation, and the Qwen4-Exp indexer's position history stays aligned with its cached keys. Linear-attention caches also gain new getters (is_recording_past, get_recurrent_state, conv-state access) that stop exposing cache internals and prepare for paged-c
- [FA] Fix FA with static cache (#49998) by @Cyrilvallez in [#49998]
- [docs] CB cache behavior (#49025) by @stevhliu in [#49025]
- [CB] Reduce warmup time by not computing attention over full cache (#49853) by @remi-or in [#49853]
- Fix Qwen4-Exp indexer position cache lifecycle (#49840) by @taking-lying-flat in [#49840]
- [Cache] Linear attn cache: use new getters (#49375) by @remi-or in [#49375]
- [Cache] Get conv states (#49309) by @remi-or in [#49309]
- [Cache] Add get_recurrent_state (#49306) by @remi-or in [#49306]
- [Cache] Add is_recording_past (#49305) by @remi-or in [#49305]
- Fix BLOOM crash with static cache / compiled generate (#49481) by @kaixuanliu in [#49481]
- Allow Cache continuation for chunked prefill (#49662) by @Cyrilvallez in [#49662]
Vision
Vision image processors now composite PNG transparency onto white instead of exposing black pixels, and background_color is preserved correctly across the DeepSeek-VL and Janus processors. Model fixes cover SmolVLM's inputs_merger when image tokens aren't a multiple of the patch size, HunYuan-VL image assignment during batched beam search, and Ernie4.5-VL-MoE expert sharding under TP/EP. The DETR
- Composite transparency in shared RGB conversion and image processors (#49079) by @Nikhi00718 in [#49079]
- [Fetcher] Fix missing test deps for dynamically-resolved image processors (#49826) by @ydshieh in [#49826]
- fix(vision): Route the DETR conversion scripts through from_pretrained (#49830) by @harshaljanjani in [#49830]
- Fix background_color handling across DeepSeek-VL and Janus image processors (#49767) by @tritsystem in [#49767]
- Move the MI300 docker image to ROCm 10.1 and update test expectations (#49460) by @Abdennacer-Badaoui in [#49460]
- docs: fix 'allows to' grammar in Vision Encoder Decoder docs (#48730) by @mrchatam in [#48730]
- Fix SSH runner: add /opt/venv/bin to PATH for Python 3.11 images (#49759) by @ydshieh in [#49759]
- Fix SmolVLM inputs_merger when image tokens are not a multiple of patch_size (#49725) by @albertvillanova in [#49725]
- Ernie4.5-VL-MoE: shard the text and vision experts under TP and EP (#49462) by @IlyasMoutawwakil in [#49462]
- Fix HunYuan-VL image assignment during batched generation (#49557) by @Arnav66692 in [#49557]
Generation
This release fixes a range of generation bugs: BLOOM crashes with static cache or compiled generate, generate dropping the type of dict-like inputs such as ModelOutput, and incorrect image assignment or placeholder handling in batched or beam-search generation for HunYuan-VL and Idefics2/3. It also fixes Qwen3-Omni audio generation mode handling, SAM mask-generation multi-zoom crops, empty frame s
- fix: prevent empty frame sampling for short videos (#49908) by @BlazeSR10hawk in [#49908]
- Fix Windows path separators breaking relative imports of Hub custom-generate modules (#48951) by @dltsum in [#48951]
- Fix multi-zoom crops in the SAM mask-generation pipeline and related bugs (Fixes #35530) (#49689) by @stlukyanenko in [#49689]
- update speculative decoding docs (#49697) by @merveenoyan in [#49697]
- fix idefics3 generation issues (#49738) by @molbap in [#49738]
- fix tests for generation (#49740) by @molbap in [#49740]
- Fix inputs dict casting in
generate(#49731) by @Cyrilvallez in [#49731] - [fix][Qwen3-Omni] Respect generation_mode in audio generation (#49505) by @Sunt-ing in [#49505]
Parallelization
This release extends parallelism support and fixes several related bugs. It adds a tensor-parallel plan for Nemotron and makes Ernie4.5-VL-MoE shard its text and vision experts under TP and EP. It also restores expert-parallel token-dispatch gradients on torch 2.7–2.10, fixes a Molmo2 model-parallel device mismatch, and corrects base_model_prefix in several model families (PP-OCR detectors
- Add tensor parallel plan for Nemotron (#48780) by @Siddhant231xyz in [#48780]
- fix model parallel bug for molmo2 model (#49816) by @kaixuanliu in [#49816]
- Fix
base_model_prefixin the PP-OCR detectors, CLIPSeg, TimesFM, CLIP and VideoPrism heads so base checkpoints load (#48871) by @blipbyte in [#48871] - Fix expert-parallel token dispatch gradients on torch 2.7 to 2.10 (#49710) by @digit50 in [#49710]
- Skip Muse TP (#49717) by @remi-or in [#49717]
Quantization
Quantization now handles DeepSeek-V4.1's FP4 experts correctly: FineGrainedFP8Config gains an expert_dtype option ("fp8" by default, or "fp4") that the FP8 experts read instead of allocating them as FP8. TimesFM 2.5 no longer casts float inputs to an integer weight dtype when loaded with quantization such as bitsandbytes 4/8-bit. A broader cleanup
- Fine-grained FP8: DeepSeek-V4's expert_dtype in the quantization config (#49848) by @IlyasMoutawwakil in [#49848]
- Fix dtype cast in TimesFM 2.5 ResidualBlock for quantized weights (#46942) by @JOhnsonKC201 in [#46942]
- Quantization cleanpup (#49548) by @ArthurZucker in [#49548]
Bugfixes and improvements
- [Fix] Fix CSM codebook embedding tying (#49197) by @orrangetabby17 in [#49197]
- [tests_fetcher] fix missing .as_posix() in preprocessor_patterns path keys (#49994) by @ydshieh in [#49994]
- fix(ci): skip bot suggestion if a maintainer already posted run-slow: (#49992) by @ydshieh in [#49992]
- [loading] Allow Renaming and Converter to work on the sume subkeys (#49928) by @Cyrilvallez in [#49928]
- [Fix] Fix NUMA and cpuset detection in CB (#49980) by @remi-or in [#49980]
- [Refactor] Make CB utils depend on no CB import (#49968) by @remi-or in [#49968]
- chore: improve typing in modeling_rope_utils.py (#49831) by @RyanMullins in [#49831]
- is_fouroversix_available() returned an (available, version) tuple. Ev… (#49894) by @sywangyi in [#49894]
- Match a skip-list entry from the start only up to a module boundary (#49771) by @IlyasMoutawwakil in [#49771]
- [pocket_tts, gradium_phonon_tts] use sub_configs_defaults (#49868) by @eustlb in [#49868]
- Fixes a dtype mismatch in flash_attn test (#49912) by @kaixuanliu in [#49912]
- [Fix] Remove duplicate assignment in DeepseekV3.2 config (#49896) by @remi-or in [#49896]
- add XPU Expectations for 4 new model tests (#49815) by @kaixuanliu in [#49815]
- Make sub-config-defaults easier (#49906) by @zucchini-nlp in [#49906]
- Fix out-of-bounds index bug in musicgen_melody model (#49842) by @kaixuanliu in [#49842]
- test: add parity check to the CPU-only continuous batching test (#49728) by @nrenvo in [#49728]
- [CB] Reduce the max_memory_percent in case of a CPU model (#49844) by @remi-or in [#49844]
- Improve clarity and grammar in Auto Classes documentation (#44550) by @himani27301 in [#44550]
- [gradium_phonon_tts] point to the released Hub repos (#49867) by @eustlb in [#49867]
- [EmbeddingGemma2] update integration tests (#49576) by @eustlb in [#49576]
- Fix a comment (#44872) by @IvanFan-Van in [#44872]
- Fix hardcoded torch.float64 crashing on MPS (#46723) (#46730) by @Abhijeet1815 in [#46730]
- fixup metadata workflow (#49854) by @vasqu in [#49854]
- docs(whisper): cast input features to model dtype in AutoModel example (#49837) by @Kayvan-Zahiri in [#49837]
- Fix torch_float casting to int instead of float (#47468) by @rahulrshetty45 in [#47468]
- Upgrade Python Min version to
3.11(#49251) by @Sai-Suraj-27 in [#49251] - skip
sdpa_can_dispatch_on_flashtests for 3 models (#49809) by @kaixuanliu in [#49809] - [LED][Longformer] Replace for-loop with unfold in _chunk ONNX-export path (#46169) by @guinik in [#46169]
- logits_to_keep bool mask for all ForXXX classes (#48825) by @jp1924 in [#48825]
- Fix several object detection models/loader fix for module tying (#49827) by @molbap in [#49827]
- Fix encoder logits processors when precomputed encoder_outputs lack token IDs (#49696) by @kunalsanga in [#49696]
- Defer some imports (#49663) by @jayzuccarelli in [#49663]
- refactor CTC loss (#49833) by @ebezzam in [#49833]
- Add Intel XPU CI (#49254) by @regisss in [#49254]
- fix(mask2former): register input_projections as nn.ModuleList (fixes #49698) (#49703) by @Omarinho12345 in [#49703]
- Only tie MM Grounding DINO decoder heads when the config shares them (#49552) by @ in [#49552]
- [Docs] Add Marathi (मराठी) translation of README (#48746) by @shreeyadav06 in [#48746]
- Fix CLVP
c_projresidual scaled-init silently never applied (#47478) by @ShamSaleem in [#47478] - fix failed test cases for unlimited_ocr model (#49806) by @kaixuanliu in [#49806]
- Fix transformers env when requests is not installed (#48412) by @panshularora in [#48412]
- Apply EXIF orientation in load_image_as_tensor with torchvision (#49794) by @digit50 in [#49794]
- Fix Fuyu processor test (#49821) by @zucchini-nlp in [#49821]
- use torchcodec-xpu and upgrade torch to 2.14.1 (#49814) by @sywangyi in [#49814]
- update some case to add xpu expectation (#49807) by @sywangyi in [#49807]
- [serge] Fix 2 integration tests regressed by commit c48824e (PR #49404) (#49705) by @sergereview[bot] in [#49705]
- docs: fix OOM/hang for Qwen dynamic resolution models by setting min_pixels and max_pixels (#46007) by @poojansatani in [#46007]
- docs: fix 'allows to' grammar in DPT docs (#48728) by @mrchatam in [#48728]
- docs: fix 'allows to' grammar in LiLT docs (#48731) by @mrchatam in [#48731]
- docs: fix prompt formatting and code alignment in Gemma model doc (#48775) by @Rattan344 in [#48775]
- docs: fix grammar typo in ALBERT model card (#48774) by @Rattan344 in [#48774]
- Deprecate old input names (#49424) by @zucchini-nlp in [#49424]
- Fix NameError in CI comment workflows: missing section marker variables (#49801) by @ydshieh in [#49801]
- [CI] Improve run-slow PR comments and remove CI recap (#49782) by @ydshieh in [#49782]
- Show the actual accelerate version for
transformers env(#49668) by @Sai-Suraj-27 in [#49668] - [CI] fix perceriver old regression (#49792) by @molbap in [#49792]
- mimi moshi output capturing (#49670) by @eustlb in [#49670]
- Remove the resolved prototype Whisper MIC expected failure (#49785) by @tarekziade in [#49785]
- Fix CohereCompass text RoPE to use Qwen3-VL interleaved M-RoPE (#49715) by @mmangkad in [#49715]
- Alias thinking -> reasoning_content (#49535) by @Rocketknight1 in [#49535]
- [vLLM] Add Qwen-Omni Thinker base models and Gemma 3n per-layer inputs (#49437) by @harshaljanjani in [#49437]
- Update MIC fleet references and documentation (#49768) by @tarekziade in [#49768]
- [CI] no split modules for SAM (#49766) by @molbap in [#49766]
- Enable tests forgotten in idefics3 (#49758) by @molbap in [#49758]
- Fix tests_fetcher backbone step (never worked since introduction) (#49742) by @ydshieh in [#49742]
- [modular] Extend the "del self.xxx" pattern to match typed assignments (#49735) by @remi-or in [#49735]
- Xpu add (#49757) by @sywangyi in [#49757]
- Deprecate rope_scaling assignment and normalize legacy RoPE keys (#49515) by @jinwukong in [#49515]
- Make longrope compileable (#49555) by @jiqing-feng in [#49555]
- Fix stack_frames > 1 wiring bug in MiniCPMV4_6VideoProcessor (#49752) by @airlsyn in [#49752]
- fix moshi failing tests (#49750) by @eustlb in [#49750]
- [docs] Gaudi (#49618) by @stevhliu in [#49618]
- [serge] Fix 2 integration tests for model
convnextv2failing withoutput_mismatch(tensor values differ (2)) (#48838) by @sergereview[bot] in [#48838] - [serge] Fix 2 integration tests for model
eomt_dinov3failing withoutput_mismatch(tensor values differ (2)) (#48882) by @sergereview[bot] in [#48882] - [serge] Fix 4 integration tests for model
lw_detrfailing withoutput_mismatch(tensor values differ (4)) (#49040) by @sergereview[bot] in [#49040] - [serge] Fix 2 integration tests for model
nemotronfailing withoutput_mismatch(list output differs (2)) (#48945) by @sergereview[bot] in [#48945] - multi device fix for molmo2 (#49736) by @molbap in [#49736]
- Fix the rest of VLMs (#49720) by @zucchini-nlp in [#49720]
- Fix ValueError when loading a fusion-enabled checkpoint twice (#49412) by @kaixuanliu in [#49412]
- Avoid a host-to-device copy in
eager_mask(#49684) by @hmellor in [#49684] is_tracing()now recognizes XPU stream capture, alongside the exist… (#49722) by @sywangyi in [#49722]- Document how to avoid the Metaspace prefix after added tokens (#45822) by @qflen in [#45822]
- Declare the input modalities of the VLMs that report text only (#49677) by @qgallouedec in [#49677]
- Fix zero expert gradients in bfloat16 with expert parallelism and ep_size < fsdp_size (#49688) by @qgallouedec in [#49688]
- Fix test selection for virtual module imports (#49690) by @tarekziade in [#49690]
- [docs] add Google TPU hardware guide (#49642) by @tengomucho in [#49642]
- Copy default response parser args (#49370) by @Rocketknight1 in [#49370]
- Make
DtensorShardOperationwork on torch 2.6 and 2.7 (#49657) by @hazelxue in [#49657] - Fix from_pretrained on torch 2.7: require torch>=2.8 for distributed checkpointing (#49652) by @naveecode in [#49652]
- Fix DeepGEMM Mega MoE under expert parallelism (#49428) by @IlyasMoutawwakil in [#49428]
- Fix flaky Evolla tests producing NaN outputs (#49660) by @tarekziade in [#49660]
- [rocm] Add ROCm expectations to Kolibri-1 logits test (#49661) by @ericschreiber in [#49661]
- [CB] Various small fixes for MPS (#49654) by @remi-or in [#49654]
- Aligns test expectations with the accelerator path under test: (#49653) by @sywangyi in [#49653]
- [docs] Processor config (#49643) by @stevhliu in [#49643]
- post release stuff (#49646) by @vasqu in [#49646]
Significant community contributions
The following contributors have made significant changes to the library over the last release:
- @ydshieh
- [tests_fetcher] fix missing .as_posix() in preprocessor_patterns path keys (#49994)
- fix(ci): skip bot suggestion if a maintainer already posted run-slow: (#49992)
- [Fetcher] Fix missing test deps for dynamically-resolved image processors (#49826)
- Fix NameError in CI comment workflows: missing section marker variables (#49801)
- [CI] Improve run-slow PR comments and remove CI recap (#49782)
- Fix tests_fetcher backbone step (never worked since introduction) (#49742)
- Fix SSH runner: add /opt/venv/bin to PATH for Python 3.11 images (#49759)
- @remi-or
- [Fix] Fix NUMA and cpuset detection in CB (#49980)
- [Refactor] Make CB utils depend on no CB import (#49968)
- [Fix] Remove duplicate assignment in DeepseekV3.2 config (#49896)
- [CB] Reduce warmup time by not computing attention over full cache (#49853)
- [CB] Reduce the max_memory_percent in case of a CPU model (#49844)
- [modular] Extend the "del self.xxx" pattern to match typed assignments (#49735)
- [Cache] Linear attn cache: use new getters (#49375)
- [Cache] Get conv states (#49309)
- [Cache] Add get_recurrent_state (#49306)
- [Cache] Add is_recording_past (#49305)
- [Kernels] Add MPS to supported device types (#49655)
- Skip Muse TP (#49717)
- [CB] Various small fixes for MPS (#49654)
- @Nikhi00718
- Composite transparency in shared RGB conversion and image processors (#49079)
- @eustlb
- [pocket_tts, gradium_phonon_tts] use sub_configs_defaults (#49868)
- [gradium_phonon_tts] point to the released Hub repos (#49867)
- [EmbeddingGemma2] update integration tests (#49576)
- Add GradiumPhononTTS (#49791)
- add PocketTTS (#49589)
- add PocketTTSAudioTokenizer (#49588)
- 🟡 [mimi] separate encoder and decoder (#49577)
- mimi moshi output capturing (#49670)
- fix moshi failing tests (#49750)
- @jp1924
- logits_to_keep bool mask for all ForXXX classes (#48825)
- @molbap
- Fix several object detection models/loader fix for module tying (#49827)
- [CI] fix perceriver old regression (#49792)
- [CI] no split modules for SAM (#49766)
- Enable tests forgotten in idefics3 (#49758)
- fix idefics3 generation issues (#49738)
- fix tests for generation (#49740)
- multi device fix for molmo2 (#49736)
- @athrael-soju
- Add UltraVBERT (#49685)
- @harshaljanjani
- @lovishmadaan
- Add Flint model support. (#49824)
- @tarekziade
- @yonigozlan
- Fix small bug in auto mappings (#49664)
- @ArthurZucker
- Quantization cleanpup (#49548)
v5.20.2
2026年10月20日
Patch release: v5.20.2
This patch notably solves an issue where some inputs could loose their original type inside prepare_inputs_for_generation in generate, leading to problems with multimodal models. It also fixes some other issues listed on the below commits.
It contains the following commits:
- Fix inputs dict casting in generate (#49731) by @Cyrilvallez
- Fix zero expert gradients in bfloat16 with expert parallelism and ep_size < fsdp_size (#49688) by @qgallouedec
- Declare the input modalities of the VLMs that report text only (#49677) by @qgallouedec
- Avoid a host-to-device copy in eager_mask (#49684) by @hmellor
v5.20.1
2026年10月16日
Release v5.20.1
Special surprise including the new model Beam from Reflection AI 🥳
Beam is a token-efficient, frontier-scale model focused on coding and agentic use cases. It is built for teams that want to run a powerful model on their own hardware, infrastructure, or cloud, and customize it to their specific needs.
Links: Documentation
- Fix small bug in auto mappings (#49664) by @yonigozlan in #49664
Some real patch fixes
We broke loading models on older torch versions 😢 should be fixed now. But here is the full list of fixes
- Fix HunYuan-VL image assignment during batched generation (#49557) by @Arnav66692
- Fix DeepGEMM Mega MoE under expert parallelism(#49428) by @IlyasMoutawwakil
- Fix from_pretrained on torch 2.7: require torch>=2.8 for distributed checkpointing (#49652) by @naveecode
- Make DtensorShardOperation work on torch 2.6 and 2.7 (#49657) by @hazelxue
Full Changelog: v5.20.0...v5.20.1
详细ChangeLogv5.20.0
2026年10月16日
Release v5.20.0
New Model additions
Muse Spark Open
Muse Spark Open is a multimodal mixture-of-experts model from Meta that takes text, images, audio, and video as input and generates text. It has 816B total parameters (42B active per token) and a context window of up to 1,048,576 tokens shared across modalities. It is trained for agentic coding tasks such as multi-file editing, debugging, and tool use. Checkpoints are available in BF16 and NVFP4 formats.
Links: Documentation | Blog Post
Ling 3.0
Ling 3.0 Flash is a hybrid Mixture-of-Experts language model from InclusionAI. Its decoder groups five Kimi Delta Attention (KDA) layers with one Multi-head Latent Attention (MLA) layer. The MLA blocks use interleaved rotary embeddings and a head-wise output gate, and the feed-forward blocks combine routed and shared experts. It is natively supported in Transformers as BailingHybridForCausalLM, so it loads without trust_remote_code=True.
Links: Documentation
Kolibri1
Kolibri 1 is Aleph Alpha's mixture-of-experts reasoning model, focused on German and English. Each of its 50 layers routes every token to 6 of 384 experts using sigmoid routing, and adds one shared expert. Four sliding-window attention layers alternate with one full-attention layer, and RoPE is applied only in the sliding-window layers.
Links: Documentation
MiniCPM-V 4.7
MiniCPM-V is a series of efficient multimodal large language models developed by OpenBMB. Like MiniCPM-V 4.6, the MiniCPM-V 4.7 architecture pairs a SigLIP vision encoder that has a window-attention merger with a Qwen3.5 language model backbone, and supports both 4x and 16x visual downsampling modes.
The main addition over 4.6 is canvas M-RoPE: instead of numbering visual tokens along a single 1-D sequence, the model lays every image out on a 2-D canvas and assigns each visual token a (temporal, height, width) position, so slices of the same image keep their spatial relationship and video frames keep their temporal order.
- Fix more stuff (#48979) by @zucchini-nlp in #48979
UnlimitedOcr
UnlimitedOcr is a single 3B-parameter OCR model from Baidu with a standard 32,768-token context length. It builds on DeepSeek OCR and replaces all decoder attention layers with Reference Sliding Window Attention (R-SWA). This keeps the KV cache constant during decoding, so the model can transcribe dozens of pages in a single forward pass. It supports "gundam" mode (640x640 tiles with dynamic cropping) and "base" mode (a single 1024x1024 view), and it can output region detections with bounding boxes.
Links: Documentation | Paper
UltraBERT
UltraBERT is a family of bidirectional text encoders trained with a combination of masking ratios, pruning, and distillation for classification and retrieval tasks. The released encoders support sequences of up to 32,768 tokens. They use rotary position embeddings, RMSNorm, SwiGLU feed-forward layers, and alternating local and global attention (every third layer is global). Checkpoints include UltraBERT-150M and UltraBERT-380M for masked language modeling and fine-tuning, and UltraBERT-Embed-150M for text embeddings.
Links: Documentation | Paper
- Integrate the UltraBERT architecture (#49596) by @tomaarsen in #49596
MOSS-Transcribe-Diarize
MOSS-Transcribe-Diarize 0.9B is an end-to-end audio understanding model for long-form multi-speaker transcription, speaker diarization, and timestamps. It combines a Whisper-style encoder, a 4× frame merge step, a multi-modal projector, and a Qwen3 language model. It produces joint transcription and diarization in a single pass, with segments formatted as [start][S01]text[end]. It supports long-form audio through Whisper-window chunking in the processor, promptable transcription with hotword biasing, and 50+ languages.
Links: Documentation
Breaking changes
🚨 General breaking notice that inference with EP has regressions in speed; we are working on fixing this ASAP! 🚨
Deprecated checks and methods have been removed from cache_utils.py (affecting models such as minimax_m3_vl and pi0), so any code still calling those deprecated cache methods must switch to the current cache API.
Accidental imports from other models were removed from several model files (e.g. embedding_gemma2, ijepa, lightglue), and the modular converter now avoids adding such cross-model imports. If you imported these names through those model modules, import them from their original modules instead.
The minimum kernels version is now 0.17.2, which allows use_fallback=KernelizeFallback.ALL so that a failed kernel load falls back to the original implementation instead of raising an error. Upgrade kernels to 0.17.2 or later.
A new SubConfigSpec centralizes the initialization of sub-configs, so default sub-configs are collected from dataclass fields instead of by instantiating the class, and this touches the configuration utilities and many model configs. Custom or existing nested configs may need to be updated to declare their sub-configs through this mechanism.
- 🚨 SubConfigSpec for centralized init of subconfigs (#48282) by @zucchini-nlp
The LUKE and mLUKE tokenizers now treat entity special tokens such as <ent> as special tokens (not split, honored by skip_special_tokens, normalized) while keeping the same spacing as regular vocabulary tokens when decoding. Tokenization and decoding output involving these tokens may therefore differ from before, so check any code or saved outputs that depend on the old behavior.
Exporters
Transformers exporters now support quantization directly during export across Dynamo, ONNX, OpenVINO, and ExecuTorch. The new unified quantization API integrates PT2E, ONNX Runtime, and NNCF quantizers, enabling static and dynamic quantization as well as weight-only compression (INT8/INT4), with configurable calibration workflows. This makes it easier to export optimized models for efficient inference across different backends.
For more information see the docs: https://huggingface.co/docs/transformers/exporters_quantization
Parallelization
This release improves distributed training and inference. FSDP × TP model and optimizer checkpoints can now be saved and loaded across different parallel configurations, and expert-parallel dispatch, tensor-parallel plans, static-cache generate(), and the caching allocator's byte count were fixed. Tied LM heads in composite models now get their own TP plan entry, enable_expert_parallel applies the EP plan alone again, TPU loading uses the `tor
- FSDP x TP Saving / Loading, Optimizer (#49256) by @michaelbenayoun in [#49256]
- FSDP x TP Saving / Loading (#48802) by @michaelbenayoun in [#48802]
- Don't set a device per rank for gloo tensor-parallel tests (#49636) by @IlyasMoutawwakil in [#49636]
- fix(distributed): keep enable_expert_parallel as EP alone (#49633) by @dacorvo in [#49633]
- Fix a port allocation race in FSDP tests (#49455) by @icavan in [#49455]
- Expert-parallel dispatch hands the experts the received rows, not the all-to-all's pending result (#49421) by @IlyasMoutawwakil in [#49421]
- Fix static-cache generate() with host-side inputs and under TP (#49317) by @dacorvo in [#49317]
- Composite lm head tp plan (#49080) by @IlyasMoutawwakil in [#49080]
- Fix: use torch.accelerator device APIs so TP loading works again on TPU (#49502) by @tengomucho in [#49502]
- Count ep and fsdp in caching_allocator_warmup byte calculation (#49384) by @3outeille in [#49384]
- Do not wrap the model in FSDP for expert-parallel token dispatch (#49383) by @3outeille in [#49383]
Generation
This release fixes static-cache generate() bugs with host-side inputs and under tensor parallelism. It also speeds up Whisper generation on TPU by cutting device syncs and recompilation, and fixes Whisper batched timestamp decoding for tensor and NumPy inputs. Pipelines get a cleanup of generation-argument handling that removes spurious warnings.
- Add job to automatically generate Intel CPU Docker image (#49560) by @regisss in [#49560]
- Image decoding moves to torchcodec (#47963) by @zucchini-nlp in [#47963]
- Optimize Whisper generation for TPU and device sync (#49426) by @tengomucho in [#49426]
- Generation cleanup in pipelines (#49269) by @Rocketknight1 in [#49269]
- Fix Whisper batch timestamp decoding for tensors (#49419) by @Kingofbooks in [#49419]
Vision
Vision processing was updated in several places. Image decoding now uses torchcodec, Molmo2's image and video kwargs follow the library's standard conventions, and Pixtral Flash Attention no longer detects false image boundaries after the axial RoPE refactor, which had caused CUDA illegal memory access errors and incorrect output. Several CI and Docker changes also shipped: GPU images moved to Python 3.11, a numpy/pyarrow conflict
- Fix numpy/pyarrow conflict in the XPU Docker image (#49582) by @jiqing-feng in [#49582]
- CI: Move GPU images to python 3.11 (#49352) by @tarekziade in [#49352]
- Update molmo2 processing images/videos kwargs (#49563) by @guarin in [#49563]
- Fix Pixtral Flash Attention image boundaries after axial RoPE refactor (#49373) by @oliverholworthy in [#49373]
Kernels
This release improves kernel support across hardware. flash_attention_2 now falls back to the AITER kernel on ROCm when flash-attn isn't installed, and T5-style models get a contiguous SDPA position-bias mask so they use fused kernels again. The Hub rotary kernel is now limited to CUDA inference because its backward pass gave incorrect gradients. The Atlas Inference Gated DeltaNet kernels for Strix Halo and
- Fall back to the AITER kernel for flash_attention_2 on ROCm (#49608) by @Abdennacer-Badaoui in [#49608]
- Make the SDPA position_bias mask contiguous so T5-style models use fused kernels (#49517) by @IvenHsu01 in [#49517]
- Use the Hub rotary kernel for inference only on CUDA (#49439) by @qgallouedec in [#49439]
- [Atlas Inference] Enable torch.compile for the Strix Halo Gated DeltaNet hub kernel (#49453) by @AzeezIsh in [#49453]
- [Atlas Inference] Fix GB10 Gated DeltaNet hub kernel for transformers 5.17+ and enable torch.compile (#49452) by @AzeezIsh in [#49452]
Cache
This release fixes several cache-related bugs: static-cache generate() now handles host-side nested inputs and tensor parallelism correctly, the offloaded cache prefetch no longer races with the offloading copy, and Phi3 LongRoPE cache rebuilds at the context boundary now receive the full prefix. It also counts the query token in MiMo-V2-Flash's sliding window and corrects the quantized cache (hqq/quanto) documentation exam
- Fix offloaded cache prefetch racing with the offloading copy (#49363) by @qgallouedec in [#49363]
- docs: update quantized cache hqq/quanto examples and documentation (#47212) by @DavidJohnQuinlan in [#47212]
- [MiMo-V2-Flash] Count the query token in the sliding window (#49170) by @guapisolo in [#49170]
- Fix Phi3 LongRoPE cache rebuild at the context boundary (#49361) by @LE0-Lin in [#49361]
Bugfixes and improvements
- [docs] Hardware docs template (#49575) by @stevhliu in [#49575]
- Add MIC contract lock files for PR CI integration (#49631) by @ydshieh in [#49631]
- Use aiter-rope version 3 on ROCm (#49595) by @Abdennacer-Badaoui in [#49595]
- Remove missing methods from docs (#49637) by @guarin in [#49637]
- Translate
torch.mm(..., out_dtype=...)to ONNX (#49635) by @IlyasMoutawwakil in [#49635] - [docs] Hardware section (#49541) by @michaelbenayoun in [#49541]
- Raise when a torch fallback would drop packed-sequence boundaries (#49474) by @qgallouedec in [#49474]
- Fa packed sequence decode (#49610) by @SunMarc in [#49610]
- fix nested set_attn_implementation (#49138) by @eustlb in [#49138]
- feat: Add MTP support to Mellum2/2.1 (#49531) by @shadeMe in [#49531]
- extend onnx exporters tests to non-cuda devices (#49627) by @kaixuanliu in [#49627]
- Document video processor backends (#49470) by @DimensionSTP in [#49470]
- Make sinusoidal position embeddings compileable (#49482) by @jiqing-feng in [#49482]
- Save the PEFT adapter of a load-time sharded model from its own parameters (#49500) by @qgallouedec in [#49500]
- fix: Pass the MTP layer type to per-layer-type rotary embeddings (#49468) by @shadeMe in [#49468]
- Add LFM2 to the GGUF loading path (#49400) by @francip in [#49400]
- Add
MtpModelhelpers for frameworks that own the drafting loop (#49544) by @hmellor in [#49544] - Build docs with the Python version from .python-version (#49603) by @tarekziade in [#49603]
- Use mlp_layer_types for AXK1 so the MoE layer layout honours moe_layer_freq (#49518) by @hmellor in [#49518]
- Combine Nvidia+AMD run-slow CI comments into one (#49598) by @ydshieh in [#49598]
- Fix flaky streamer timeout tests (#49583) by @tarekziade in [#49583]
- Fix TPU related tests issues (#49568) by @tengomucho in [#49568]
- fix(distributed): bind TPU ranks to device index 0, not LOCAL_RANK (#49543) by @tengomucho in [#49543]
- Use transformers init everywhere (#49573) by @guarin in [#49573]
- [docs] Context parallelism during eval (#48663) by @stevhliu in [#48663]
- Remove examples (#49357) by @SunMarc in [#49357]
- Accept whole-number floats for integer tool arguments in parse_response (#49547) by @yonigozlan in [#49547]
- update Intel CPU Dockerfile (#49408) by @jiqing-feng in [#49408]
- Add missing video processor auto docstrings (#49569) by @guarin in [#49569]
- Add chat input sanitization (#47386) by @Rocketknight1 in [#47386]
- Fix
create_chunked_causal_mask()crashing withblock_sequence_ids(#49457) by @kaixuanliu in [#49457] - Fix SinglePositionMultiTokenCandidateGenerator signature (#49413) by @jiqing-feng in [#49413]
- Minicpm 4.7 update integration tests (#49565) by @zucchini-nlp in [#49565]
- Stop treating HunYuan's DynamicNTKAlpha RoPE as dynamic (#49445) by @jiqing-feng in [#49445]
- Fix Gemma3nVision2TextModelTest::test_model_parallelism split (#49562) by @tarekziade in [#49562]
- Fix UnboundLocalError in SuperPoint forward under torch.compile (#49409) by @kaixuanliu in [#49409]
- Preserve resolved remote backend references in AutoVideoProcessor (#49511) by @DimensionSTP in [#49511]
- Fix PR slow CI suggestion: install transformers in a venv (#49558) by @tarekziade in [#49558]
- Fix PR slow CI suggestion: install transformers, fail on script errors (#49549) by @ArthurZucker in [#49549]
- Remove deprecated data helpers (#49360) by @SunMarc in [#49360]
- Fix test_all_params_have_gradient for intentionally frozen parameters (#49264) by @thillai-c in [#49264]
- Flex attn fix for molmo2 test (#49530) by @molbap in [#49530]
- fix bridgetower cross-attn mask shape bug (#49447) by @kaixuanliu in [#49447]
- Use Siglip2Tokenizer when the Hub tokenizer_class is GemmaTokenizer (#49245) by @jayzuccarelli in [#49245]
- Fix mixed BOS prefix validation in WatermarkDetector (#49496) by @dangruiyuan in [#49496]
- Deprecate unused get_uniform_frame_indices (#49464) by @archiep867-sys in [#49464]
- [tests] Some fixes for test suite failures on TPU (#49425) by @tengomucho in [#49425]
- Second phase of torch 2.6 cleanups (#49396) by @Rocketknight1 in [#49396]
- Guard the checks for current_accelerator() and bump Torch version (#49395) by @Rocketknight1 in [#49395]
- Use one static Transformers CI badge in PR descriptions (#49471) by @tarekziade in [#49471]
- fix: treat every declared field of the config class as a default fixes #49456 (#49466) by @tarekziade in [#49466]
- Keep AutoVideoProcessor class lookup lazy (#49458) by @DimensionSTP in [#49458]
- Add Molmo2 (#43451) by @SangbumChoi in [#43451]
- Ci fetches multimodal models recursively (#49389) by @zucchini-nlp in [#49389]
- Recurse for all subconfigs (#49461) by @zucchini-nlp in [#49461]
- Aria, Ernie4.5-VL-MoE, Gemma4, Inkling, MiniMax-M3-VL, Qwen3.5-MoE: run the model tests on the VLM/ALM testers (#49404) by @IlyasMoutawwakil in [#49404]
- Fix CI slack reporting: surface crashed/missing model jobs in model_results.json (#49427) by @ydshieh in [#49427]
- [Qwen3VLMoe] Update expected text in test_small_model_integration_test_expand (#49301) by @ydshieh in [#49301]
- Fix backend attribute in documentation and default backend in MistralCommonBackend (#49149) by @samyuktahegde in [#49149]
- More RoPE simplification, TF32 fixes (#49328) by @Rocketknight1 in [#49328]
- Complete PR #49228: remove unused device=None from rope init in 11 model families (#49285) by @ydshieh in [#49285]
- Revert "[CI] Temporarily disable AMD scheduled CI trigger" (#49433) by @ydshieh in [#49433]
- Fix QuantizedCache residual flushing for multi-token updates (#49418) by @LE0-Lin in [#49418]
- Fix data-dependent branch in _ignore_causal_mask_sdpa under compile (#49354) by @dacorvo in [#49354]
- Fix Inkling moe_intermediate_size when dense_intermediate_size is present (#49416) by @Talhax55z in [#49416]
- fix bug for DebertaV2ForMaskedLM non-legacy load issue (#49152) by @kaixuanliu in [#49152]
- This PR fixes Gemma3n fp16 loading when missing weights need to be in… (#49147) by @sywangyi in [#49147]
- PR CI: grant actions: read to the reusable workflow (#49417) by @tarekziade in [#49417]
- [Bugfix] [Modeling] Fix DSV4 norm (#47486) by @kylesayrs in [#47486]
- [docs] Update Spaces (#49242) by @stevhliu in [#49242]
- handle empty precompiled charsmap in spm converter (#49211) by @itazap in [#49211]
- [CI] Temporarily disable AMD scheduled CI trigger (#49394) by @ydshieh in [#49394]
- [tests] Fix flaky CMVN tests in Speech2TextFeatureExtractionWithoutTorchaudioTest (#49374) by @ydshieh in [#49374]
- Let token dispatch run with
ep_size != tp_size(#49368) by @qgallouedec in [#49368] - [tests] Skip onnx.exactness for BitForImageClassification (ORT fp32 drift) (#49366) by @ydshieh in [#49366]
Significant community contributions
The following contributors have made significant changes to the library over the last release:
- @itazap
- @ydshieh
- Add MIC contract lock files for PR CI integration (#49631)
- Combine Nvidia+AMD run-slow CI comments into one (#49598)
- Fix CI slack reporting: surface crashed/missing model jobs in model_results.json (#49427)
- [Qwen3VLMoe] Update expected text in test_small_model_integration_test_expand (#49301)
- Complete PR #49228: remove unused device=None from rope init in 11 model families (#49285)
- Revert "[CI] Temporarily disable AMD scheduled CI trigger" (#49433)
- [CI] Temporarily disable AMD scheduled CI trigger (#49394)
- [tests] Fix flaky CMVN tests in Speech2TextFeatureExtractionWithoutTorchaudioTest (#49374)
- [Docker] Upgrade to torch 2.14/CUDA 13.0 and optimize FA2 build from source (#49381)
- [tests] Skip onnx.exactness for BitForImageClassification (ORT fp32 drift) (#49366)
- @icavan
- @tarekziade
- Build docs with the Python version from .python-version (#49603)
- Fix flaky streamer timeout tests (#49583)
- CI: Move GPU images to python 3.11 (#49352)
- Fix Gemma3nVision2TextModelTest::test_model_parallelism split (#49562)
- Fix PR slow CI suggestion: install transformers in a venv (#49558)
- Use one static Transformers CI badge in PR descriptions (#49471)
- fix: treat every declared field of the config class as a default fixes #49456 (#49466)
- PR CI: grant actions: read to the reusable workflow (#49417)
- @lucamotz
- Add Kolibri 1 (#49463)
- @SangbumChoi
- Add Molmo2 (#43451)
- @maxiaolong03
- [Model] Add PP-DocLayoutV4 Model Support (#48387)
v5.19.0
2026年10月07日
Release v5.19.0
New Model additions
EmbeddingGemma2
EmbeddingGemma 2 is a multimodal embedding model from Google built on the Gemma 4 architecture. It encodes text, images, audio, and video, individually or combined in one input, into a shared 768-dimensional vector space for cross-modal retrieval, semantic similarity, clustering, and classification. It uses Matryoshka Representation Learning, so embeddings can be truncated to 512, 256, or 128 dimensions. It also offers configurable visual and video token budgets, and unused vision or audio towers can be disabled at load time to save memory.
Links: Documentation
Breaking changes
All MoE models whose routers compute logits now return them when output_router_logits=True, following the Qwen3-MoE pattern (a router_logits recorder on the base model, MoeModelOutputWithPast from the backbone, and a MoE causal LM output from the head), so code that relied on the previous outputs or their absence should read the router logits from these output classes.
- 🚨 Return router logits from every MoE model that computes them (#48920) by @qgallouedec
Owlv2ForObjectDetection.embed_image_query now selects the query box with the highest objectness score, as in the original OWLv2 notebook, instead of the OWL-ViT heuristic, so image-guided query embeddings and detections may differ from earlier releases.
- 🚨 Select the OWLv2 image query by objectness (#49200) by @qgallouedec
The "paged|" prefix for SDPA and flash attention implementations is deprecated, so users should set the regular attention implementation (e.g. sdpa or flash_attention_2) for continuous batching instead of paged|sdpa or paged|flash_attention_2.
The regular flash and SDPA attention functions (flash_attention.py, sdpa_attention.py) now support continuous batching directly, and "paged|..." implementations for these are redirected to them, while eager still requires the "paged|eager" prefix.
In continuous batching, the cache update for the index-based and block-table paths is now fused into a single call, which slightly changes the cache update function's behavior and affects any custom code that calls the separate update paths.
Continuous batching internals changed in preparation for removing "paged": `max
Parallelization
Expert parallelism gains a token-dispatch implementation, selected via the new ep_dispatch_experts plan rule and now the default for Qwen3 MoE and Mellum, which removes the requirement that EP size equal TP size. The Trainer was also adapted to work with expert parallelism, and the docs now note that PEFT adapters support tensor parallelism. A CI-related fix for pipeline-parallel chart2table inference was also included.
- [
distributed]: adapt Trainer to work Expert Parallel (#48873) by @3outeille in [#48873] - [
distributed] Add expert-parallel token dispatch, default for Qwen3 MoE (#48865) by @3outeille in [#48865] - Fix pp chart2table inference (#49225) by @zucchini-nlp in [#49225]
- [docs] TP for PEFT adapters (#49060) by @stevhliu in [#49060]
Cache
This release fixes quantized cache handling: generate no longer mutates the user's cache_config, and QuantizedLayer.reorder_cache is repaired. It also adds per-layer cache configuration, so DynamicCache and StaticCache initialize each layer from its own config (sliding window, attention chunk size, conv states, and attention head counts) to better support heterogeneous models. Separately, the deprecation cycle on mask and cache
- Fix quantized cache (#48700) by @jiqing-feng in [#48700]
- [CI] check_bad_commit: use EFS cache to avoid Xet FUSE OOM (exit 137) (#49273) by @ydshieh in [#49273]
- Support per-layer cache configuration (#48178) by @eladsegal in [#48178]
- Remove deprecation cycle on mask and cache (#49231) by @Cyrilvallez in [#49231]
Bugfixes and improvements
- Revert "[CI] Temporarily disable AMD scheduled CI trigger" (#49271) (#49362) by @ydshieh in [#49362]
- ALM testx fIxing... (#49355) by @zucchini-nlp in [#49355]
- Fix DataCollatorForLanguageModeling ignoring seed=0 (#49349) by @akanyaani in [#49349]
- Fix explicit kernelization modes for evaluation models (#49339) by @DimensionSTP in [#49339]
- fix(cohere_compass): add video to input_modalities (#49320) (#49323) by @destopianpirate in [#49323]
- GPT-OSS: read the clamped SwiGLU's alpha and limit from the config (#49346) by @IlyasMoutawwakil in [#49346]
- [
distributed] Default MoEep_plansto token dispatch (#49160) by @3outeille in [#49160] - Move CI to Python 3.11, with the version set in
.python-version(#49311) by @tarekziade in [#49311] - Bump doc-builder main docs workflow pin (#49350) by @paulinebm in [#49350]
- [
distributed] decoupled tp_plan and ep_plan (#48859) by @3outeille in [#48859] - [
distributed] Add dense and expert device mesh (#48857) by @3outeille in [#48857] - Bump doc-builder workflow pin (#49342) by @paulinebm in [#49342]
- Allow registering new processing backends (#48984) by @zucchini-nlp in [#48984]
- Fix WatermarkDetector repeated-ngram counting (#49315) by @LE0-Lin in [#49315]
- Fix minicpm 4.6V video batching and CI (#49259) by @zucchini-nlp in [#49259]
- remove colwise_gather_output for lm_head for DeepseekV4 (#49314) by @3outeille in [#49314]
- Fix the
labelsdocstring of CLIPSegForImageSegmentation (#49001) by @qgallouedec in [#49001] - [CI] Temporarily disable AMD scheduled CI trigger (#49271) by @ydshieh in [#49271]
- Remove the unused pandas entry from setup.py deps (#49329) by @tarekziade in [#49329]
- Fix run_glue.py label ids becoming strings with pandas>=3 (#49326) by @tarekziade in [#49326]
- [Fix] Remove old test file with two ancient tests (#49280) by @remi-or in [#49280]
- Fix chunked prefill with multi-axis position ids (Qwen3-VL) (#49319) by @dacorvo in [#49319]
- Why override when you can fix in
Mixin(#49105) by @zucchini-nlp in [#49105] - Do RoPE with mul instead of matmul (#49265) by @Rocketknight1 in [#49265]
- Deprecated pipelines should redirect; removed pipelines should raise (#49308) by @LysandreJik in [#49308]
- Enable model test on upcoming
torch_tpubackend (#49207) by @tengomucho in [#49207] - Fix encoder repetition penalty source rows after batch expansion (#49262) by @gitedmond in [#49262]
- Preserve masked EOS scores in exponential decay length penalty (#49260) by @gitedmond in [#49260]
- [CI] Avoid fetching all artifacts when only specific ones are needed (#49282) by @ydshieh in [#49282]
- Revert "[CI] ssh-runner: add optional cache_type input to switch between bucket and EFS runners (#49159)" (#49270) by @ydshieh in [#49270]
- Add Trainer.loss_is_scaled_for_ga to declare whether compute_loss already scales for gradient accumulation (#49240) by @qgallouedec in [#49240]
- fix precomputed flash kwargs clashing (#47928) by @IlyasMoutawwakil in [#47928]
- Reapply modular examples (#49230) by @Cyrilvallez in [#49230]
- Remove some stuff that does not exist (#49232) by @Cyrilvallez in [#49232]
- Remove rotaries deprecation cycle (#49228) by @Cyrilvallez in [#49228]
- [
GTE] Add memory mixin (#49234) by @vasqu in [#49234] - [CB] Make CB more device agnostic and add support for XPU (#49156) by @remi-or in [#49156]
- correct final metrics due to resuming from checkpoint (#49208) by @SunMarc in [#49208]
- [ESM/Persimmon/NllbMoe/ESMFold] use safetensors repos to fix Xet FUSE SIGBUS/IOError on bucket CI runners (#49194) by @ydshieh in [#49194]
- Dev update (#49212) by @vasqu in [#49212]
Significant community contributions
The following contributors have made significant changes to the library over the last release:
- @vasqu
- @remi-or
- [Fix] Remove old test file with two ancient tests (#49280)
- [CB] Make CB more device agnostic and add support for XPU (#49156)
- 🚨 Attention 🚨 Deprecate "paged|" prefix for SDPA and flash (#49112)
- 🚨 Attention 🚨 Make regular attention support CB (#49101)
- 🚨 [CB] 🚨 Fuse update for index and block table path (#49088)
- [Refactor] Make some flash-attention utils more readable (#49071)
- 🚨 [CB] 🚨 Little fixes before removing "paged" (#49069)
v5.18.0
2026年10月01日
New Model additions
Nemotron 3 Diarization
Nemotron 3 Diarization is an open-weight streaming speaker diarization model designed to determine "who spoke when" in real-world audio. It supports both streaming and offline inference, handles up to eight speakers, and orders speaker outputs by each speaker's first arrival in the input audio.
The model uses the Arrival-Order Speaker Cache (AOSC) 1 and FIFO queue introduced for Streaming Sortformer 1, 2. A single checkpoint supports configurable latency profiles, from an 80 ms input buffer to a 30.4 s offline-style buffer, and configurable output frame resolution in multiples of 10 ms. With chunked inference, the maximum audio duration is not limited.
Links: Documentation
NemotronH Omni
NemotronH Omni is a multimodal reasoning model from NVIDIA that pairs the NemotronH hybrid
Mamba-Transformer language model with a RADIO vision encoder and an optional Parakeet-based sound encoder.
Image (and video) patches are projected through a RADIO tower and a pixel-shuffle MLP into the language model's
embedding space at the <image> / <video> context-token positions; audio clips are projected in the same way at
<audio> positions. The result is a single autoregressive model that reasons jointly over text, images, video and
sound.
Links: Documentation
- Add support for Nemotron Omni (#46509) by @meatybobby in #46509
HyperCLOVAX Vision V2
HyperCLOVAX Vision V2 is a multimodal vision-language model developed by NAVER. It combines the HyperClovaX language model backbone with a Qwen2.5-VL vision encoder. The model supports text, image, and video inputs and is capable of chain-of-thought reasoning via built-in thinking tokens (<think>...</think>).
Links: Documentation
GTE
GTE was proposed in mGTE: Generalized Long-Context Text Representation and Reranking Models for Multilingual Text Retrieval by Xin Zhang, Yanzhao Zhang, Dingkun Long, Wen Xie, Ziqi Dai, Jialong Tang, Huan Lin, Baosong Yang, Pengjun Xie, Fei Huang, Meishan Zhang, Wenjie Li and Min Zhang.
GTE is a BERT-style bidirectional encoder that replaces absolute position embeddings with RoPE, uses a gated MLP, and applies layer normalization after each residual connection. The same architecture backs Alibaba's gte-*-v1.5, gte-multilingual-* and gte-en-mlm-* checkpoints as well as Snowflake's snowflake-arctic-embed-m-v2.0.
Links: Documentation
- model: Add GTE to Transformers (#48416) by @harshaljanjani in #48416
Breaking changes
- 🚨 [ROCm] gpt-oss: route FA3 to aiter-flash-attn, generate ROCm fixtures (#46837) by @Abdennacer-Badaoui
- 🚨 Speed up detr image processing (#48066) by @guarin
- 🚨 Remap indexers layer_type (#48974) by @Cyrilvallez
- 🚨 [vLLM] Fix video token counting for Transformers backend video inputs (Part 1) (#48894) by @harshaljanjani
- 🚨 🚨Bring some dinos to modern standards (#46266) by @molbap
- 🚨 [
Kernels] Bump version (#48714) by @vasqu
Bugfixes and improvements
- fix incorrect hub tokenizer class (#48641) by @itazap
- [CI] Deduplicate Nvidia/AMD CI reply comments and add headers (#48655) by @ydshieh
- Update dev (#48654) by @vasqu
- [tests] Fix NougatModelIntegrationTest: pin artifact revision and update golden values (#48638) by @ydshieh
- [fix] Fix GlmOcr integration tests: wrong token IDs and image token decode bug (#48650) by @ydshieh
- [GLM 5.3 Flash] Preserve original names when saving text checkpoints (#48676) by @Dovis01
- Register activation kernel layers on XPU (#47858) by @jiqing-feng
- Mirror the registered pytree flatten when building automatic dynamic shapes (#48578) by @IlyasMoutawwakil
- Fix
AutoImageProcessorrequiring torchvision when only Pillow is installed (#48616) by @blipbyte - Assert cached decode matches recomputing without a cache (#48289) by @IlyasMoutawwakil
- [higgs_audio_v2] Fix: use config.num_codebooks in audio labels tensor (Simple Fix!) (#48560) by @b-re-w
- [
MoE] Fix eager EP (#48653) by @vasqu - [MusicgenMelody] Fix conditioning silently dropped at generation step 0 (#48679) by @ydshieh
- Fix deepspeed ci (#48640) by @SunMarc
- Synthetic test assets (#48589) by @tarekziade
- Skip the expert-parallel sentinel masking when expert parallelism is off (#48201) by @qgallouedec
- [Fix] yolos offload issue (#48688) by @molbap
- [serge] Fix 2 integration tests for model
minimaxfailing withoutput_mismatch(tensor values differ (2)) (#48515) by @sergereview[bot] - [serge] Fix 2 integration tests for model
mistralfailing withother(other (2)) (#48429) by @sergereview[bot] - Fix Qwen2.5-VL temporal RoPE for fractional video intervals (#48669) by @yeyeyeping
- Fix slow integration tests on XPU (#48611) by @jiqing-feng
- QA: Added a
MemoryCleanupMixinclass for tests (#48681) by @tarekziade - [serge] Fix 1 integration test for model
flex_olmofailing withother(other (1)) (#48668) by @sergereview[bot] - Fix D-FINE / RT-DETR main loss being computed over the denoising queries (#48528) by @stefan-it
- [CI] Replace hardcoded username allowlists with author_association check in workflow triggers (#48712) by @ydshieh
- Add flash_attention_4 in attn_implementation AutoModel docstring (#48684) by @3manifold
- Keep the expert-parallel sentinel slots out of the router gradient (#48689) by @qgallouedec
- [DeepseekV3] OOM cascade root-cause investigation (generator ref leak in conversion_mapping) (#48720) by @ydshieh
- Use huggingface_hub httpx export (#48685) by @Wauplin
- unifying device_mesh init to enable PP + TP inference (#48155) by @3outeille
- Enable FSDP2 + expert parallelism via a 2-D (fsdp, tp) device mesh (#48516) by @qgallouedec
- Switch daily CI to torch 2.14 — update expected outputs (#48750) by @ydshieh
- fix videomae load error (#48675) by @sywangyi
- Fix silently random-initializing
RTDetrModel/SEWDForCTCloads (wrongbase_model_prefix) (#48744) by @ - Fix Glm4vMoeIntegrationTest: offload_folder + MemoryCleanupMixin (#48776) by @ydshieh
- [InternVL] Normalize num_patches before np.cumsum (#48469) by @lorenzozanee
- Kernel api doc, part 2 (#46889) by @michaelbenayoun
- Fix hidden state selection on Gemma4 assistant's first prefill step (#48704) by @glistening
- Fix inkling embedding norm (#48786) by @Cyrilvallez
- Fix TextToAudioPipeline crash for tokenizer-only models (#48505) by @jiqing-feng
- Cast pixel values to the patch embedding dtype in DeepSeek-OCR-2 (#48632) by @jiqing-feng
- add kernel mapping entry for RMSNormGated, KDA, Conv1D on XPU (#48702) by @kaixuanliu
- Bump
peftversion requirement (#48716) by @shniubobo - [serge] Fix 12 integration tests for model
edgetamfailing withimport_or_config(other (12)) (#48322) by @sergereview[bot] - Restore legacy tensor-parallel initialization for compatibility (#48797) by @3outeille
- Fix kosmos flaky test (#48800) by @IlyasMoutawwakil
- Add integration tests for MuseGlimmerAssistantModel (#48796) by @ydshieh
- Fix
AutoModel.from_pretrainednot restoringmodules_to_saveweights (#48595) by @shniubobo - [docs] mrope and axial rope (#48717) by @stevhliu
- Fix decoder only path for older bert variants (#48785) by @Cyrilvallez
- [Fix] Clean-up ternaries in the DeepSeek family (#48447) by @remi-or
- [utils] Add MUSA support for Flash Attention 2 (#48612) by @XiaomingFun233
- [generate] Drop attention mask early without padding (#48814) by @Cyrilvallez
- Pin utf-8 in test_can_init_all_missing_weights source read (Windows non-UTF-8 locale fix) (#48819) by @dltsum
- Relax static-cache tolerance in test_generate_with_static_cache (1e-5 → 5e-5) (#48815) by @ydshieh
- Detect nested rope_parameters without relying on layer_types (#48798) by @hmellor
- Support for MoE in the GGUF integration (#48529) by @SunMarc
- [docs] gguf (#46357) by @stevhliu
- [apply_chat_template] pass sampling_rate to call (#48794) by @eustlb
- [CI] Add link checker (#48160) by @stevhliu
- Qwen3.8 GGUF (#48660) by @SunMarc
- docs: fix broken #combining-with-fsdp2 anchor in expert_parallelism.md (#48854) by @ydshieh
- [GPTNeoXJapanese] Fix RoPE ignoring partial_rotary_factor (#48652) by @blipbyte
- QA: deactivate rule 41 (#48852) by @tarekziade
- Fix
reseton the dynamic cache layers (#48809) by @jiqing-feng - [generate] Make all methods and logits processors agnostic to lm_head output size (#48846) by @Cyrilvallez
- Fix kosmos (#48853) by @Cyrilvallez
- Add test for causal only variant of some encoder-decoder models (#48760) by @nandan2003
- Fix ESMFold2 ligand iPLDDT weighting: mol_type non-polymer code is 3, not 4 (#48831) by @faustomilletari
- Fix flaky RfDetr test_save_load (#48869) by @ydshieh
- fix(ci): harden GitHub Actions workflows (#48160) (#48834) by @hf-security-analysis[bot]
- Fix Glm4MoeIntegrationTest: split into 3 tests, switch to GLM-4.5-Air (#48820) by @ydshieh
- Fix
StaticCachefor Mllama and enabletorch.compile(#48141) by @jiqing-feng - Fix Minimax M2 partial_rotary_factor by remapping legacy rotary_dim (#48486) by @dajiaohuang
- Fix Pixtral image processor do_pad option (#48872) by @jzakrzew
- [CB] Add pause mechanism (#48462) by @remi-or
- Fix DFlash sampled candidates losing the batch dimension (#48281) by @VaggelisGian
- Fix sliding window cache when assistant model calls generate (#48280) by @VaggelisGian
- Fix GLM rope_parameters dict shared mutation across test instances (#48895) by @ydshieh
- [
feat] Allow untyinghidden_states[-1]fromlast_hidden_statevia the model config (#48087) by @tomaarsen - Fix Idefics2 padding when the first example has no image (#48753) by @Arnavsharma2
- Don't fail model loading when the accelerator can't report free memory (#48136) by @studioego
- [Improvement] Rework the docstring and comments of mHC (#48888) by @remi-or
- [serge] Fix 3 integration tests for model
deepseek_vlfailing withother(other (3)) (#48536) by @sergereview[bot] - Add auto_docstring task model overrides (#47815) by @guarin
- Make LongcatFlashConfig self-consistent without building the model (#48899) by @hmellor
- [
DSA] Only save latents on dsa with indexer as well (#48876) by @vasqu - [Chat Parsing] Coerce oneOf tool arguments (#48719) by @yonigozlan
- Always materialize the causal mask in Doge so sdpa stays causal (#48821) by @blipbyte
- Fix docstring argument names that don't match signatures (#48474) by @IshaanPotle
- Mark test_generate_with_static_cache as flaky for olmo and bigbird_pegasus (#48856) by @ydshieh
- Clean up some MoE models' integration tests (#48833) by @ydshieh
- Fix T5 tied weights order for lm_head (#48238) by @vaibhavmashal
- Size the device_map buffer from the largest leaf module (#47211) by @dhruv7477
- Fix compile cache tests (#48923) by @Cyrilvallez
- Update arXiv citation in NeoMME model doc (#48926) by @tonywu71
- Standardise Aria's MoE onto the experts interface (#48907) by @hmellor
- Fix possessive typo in Whisper long-form warning (#48877) by @erikdw
- Modular conversion small fix (#48934) by @zucchini-nlp
- fix(vibevoice-asr): use integer ceiling division for audio token count (#48864) by @ege-arhan
- Improve lazy import error messages (#48602) by @karatarassul4-max
- Fix tests due to dropping attn mask (#48903) by @SunMarc
- docs: fix docstring parameters that do not match signatures (#48904) by @simpleqt
- DOC: Improve documentation for remap_legacy_layer_types function (#48651) by @mathewOracle
- Align special tokens on the text config (#48847) by @qgallouedec
- docs: fix dead doc links in i18n READMEs and the xlnet docstring (#48905) by @simpleqt
- Fix AXK2 integration test: update CUDA expected text and rename class (#48941) by @ydshieh
- Resolve the Hub revision once per load instead of passing a private _commit_hash around (#47611) by @Wauplin
- Keep image processor backends in sync on keys and dtypes (#48739) by @yupengtang
- Fix infeasible cost matrix errors in hugarian matcher losses (#47730) by @guarin
- Fix more stuff (#48979) by @zucchini-nlp
- Skip an unnecessary image copy in the torchvision image normalization path (#48897) by @jzakrzew
- Better attn default for gguf (#48935) by @SunMarc
- Add pose estimation keypoint preprocessing to Sapiens2ImageProcessor (#47199) by @Sainava
- Fix image processor class-level size mutation and min_pixels handling (#48916) by @Gracy769
- Contract the mamba2 chunk scan with einsum instead of broadcast-then-sum (#48978) by @tarekziade
- Fix typos in DeepseekV4 comments (#48953) by @Janiarafath
- Reduce peak memory in examples_torch CI job (OOM fix) (#48983) by @ydshieh
- Fix vibevoice TTS batched audio index (#48902) by @ebezzam
- [CB] [Major] Upgrade the cache to support different attention types (#47809) by @remi-or
- Fix SwitchTransformers Top1 router: raw logits, expert capacity accounting, and router losses (#48421) by @yurekami
- Fix Qwen3OmniMoeIntegrationTest OOM (#48987) by @ydshieh
- Let
prefix_allowed_tokens_fnoverride model-infand raise an exception on unsatisfiable generation constraints. (#48927) by @ksh108405 - [generate] Simplify candidate generators by removing required
update_candidate_strategy(#48982) by @Cyrilvallez - [generate] Always correctly restrict assisted decoding with max length/eos token (#48981) by @Cyrilvallez
- QA: applied ruff rule PLW1514 (#48990) by @tarekziade
- Update tokenizer gguf support (#48656) by @SunMarc
- [vLLM] Fix video token counting for Transformers backend video inputs (Part 2) (#48900) by @harshaljanjani
- Update ggml kernels path (#48991) by @SunMarc
- Enable compressed-tensors FP8 kernels on MPS (torch >= 2.15) (#48985) by @Isalia20
- Fix mps autocast handling in rotary embeddings (#49006) by @Isalia20
- Fix static cache per layer head shapes (#48619) by @dacorvo
- Summarization examples: download NLTK punkt_tab, not punkt (#49014) by @davanstrien
- [docs] Fix legacy hf CLI references (transformers) (#48988) by @Wauplin
- Fix RecurrentGemma compiled generation with StaticCache (#48961) by @sywangyi
- updated GraniteMoeHybrid expectations (CPU) (#49016) by @tarekziade
- OpenVINO HF Exporter (#47003) by @IlyasMoutawwakil
- fix noisy comments (#49013) by @tarekziade
- Fix assisted decoding for VLM due to dropping attn mask (#49019) by @SunMarc
- Deprecate min-max pixels (#49021) by @zucchini-nlp
- Keep special token ids the tokenizer does not define (#48708) by @albertvillanova
- Added more usage of MemoryCleanupMixin (#49011) by @tarekziade
- Shorten noisy OpenVINO SDPA comment (#49033) by @tarekziade
- PEFT x Dtensor-based TP integration (#48485) by @michaelbenayoun
- fix(zamba): add use_associative_scan config flag to avoid torch.compile slowdown (#48331) by @msnliu
- Scope GITHUB_TOKEN permissions per job (#49046) by @hf-security-analysis[bot]
- Fix mask creation not being skipped under
torch.compile(#48975) by @jiqing-feng - [Chat] Loading GGUF models served with the Chat CLI (#49031) by @ariG23498
- Pin GitHub Actions to commit SHAs (#49049) by @hf-security-analysis[bot]
- Only seed numpy in BigBird block-sparse attention during training (#49037) by @jiqing-feng
- QA: Fix llama4 leak (#49042) by @tarekziade
- Fix startup failures: drop permissions reusable-workflow callers cannot grant (#49055) by @paulinebm
- Fix startup failures: drop pull-requests: read from check_failed_tests.yml (#49057) by @paulinebm
- Register the remaining mamba-ssm kernel layers on XPU (#49035) by @jiqing-feng
- Add workflow for building XPU CI Docker images (#49039) by @regisss
- Fix assistant masks for processors (#48793) by @Rocketknight1
- Add MPS maintainer (#49052) by @Rocketknight1
- [docs] Loading behavior (#49023) by @stevhliu
- [Nemotron3Diarization] nit: hub pr merged to main (#49065) by @eustlb
- fix(ci): harden GitHub Actions workflows (#49057) (#49059) by @hf-security-analysis[bot]
- Honor
config.output_router_logitsin the MoE VLM wrappers (#48885) by @qgallouedec - Fix XPU Docker image build (#49073) by @regisss
- Fix assisted eos token condition (#49075) by @Cyrilvallez
- [serge] Fix OOM in Moshi integration tests with MemoryCleanupMixin (#48839) by @sergereview[bot]
- Fix odd head_dim validation for RoPE configurations (#48524) by @somuai
- Keep already-decoded array arguments unchanged (#49062) by @yonigozlan
- Fix NaN in Parakeet eager attention with padded batches (#49070) by @ArthurZucker
- Bump huggingface_hub upper bound to <3.0 (transformers) (#49083) by @Wauplin
- Keep
attention_maskasNonein OPT's causal mask creation (#49002) by @jiqing-feng - Add
Trainer.end(#48875) by @qgallouedec - Add image processing tester init (#48829) by @guarin
- [Executorch] Add MLX recipe (#48910) by @metascroy
- [Zamba] Fix associative scan breaking ONNX export and OOM in integration test (#49092) by @ydshieh
- Fix RGB early-return skipping PNG tRNS compositing (#49005) by @cs-fisha
- Use namespaced dataset ids in docs and PyTorch examples (#49017) by @davanstrien
- Fix MaskFormerSwin attention mask dtype to follow hidden states (#49032) by @kaixuanliu
- [NemotronH-Omni] Fix device mismatch in test tensor creation (#49102) by @ydshieh
- [serge] Fix 2 integration tests for model
cvtfailing withoutput_mismatch(tensor values differ (2)) (#49076) by @sergereview[bot] - [serge] Fix 2 integration tests for model
hy_v3failing withoutput_mismatch(tensor values differ (2)) (#49068) by @sergereview[bot] - [serge] Fix 2 integration tests for model
pvt_v2failing withother(#49067) by @sergereview[bot] - Keep the eos ids the config declares (#49082) by @albertvillanova
- Use grouped_mm on TPU devices under torch.compile (#49097) by @salkan0
- [serge] Fix 2 integration tests for model
jambafailing withother(other (2)) (#49044) by @sergereview[bot] - Remap the legacy Gemma 1 hidden_act in the config post-init (#49084) by @PCfVW
- Fix exporters import on torch < 2.9 (is_contiguous_or_false) (#49124) by @ydshieh
- [gemma3n] fix audio test fixture: use hf_hub_download instead of load_dataset (#49128) by @ydshieh
- qwen3 models map to wrong tokenizer class on the hub (#49116) by @itazap
- Restore the Unicode whitespace set in the GPT-SW3 tokenizer (#48912) by @David-Wu1119
- [AMD] Fix some integration tests (#49153) by @Abdennacer-Badaoui
- [Gemma] Fix test_model_7b_fp16_static_cache expected value for cuda 8 after #49084 (#49133) by @ydshieh
- Fix UMT5 decoder self-attention not being causal (#49135) by @the-cross-art
- Skip flash tests that fall back to a hub kernel when kernels is missing (#49129) by @Abdennacer-Badaoui
- Auto generate model inits (#47829) by @guarin
- Fix get_json_schema dropping items/enum for unions of list/dict/Literal types (#49136) by @JoeyTan21
- Pick the default flash implementation based on the current hardware (#49109) by @Abdennacer-Badaoui
- Deprecate the use_mamba_kernels config flag that no longer has any effect (#49155) by @albertvillanova
- [CI] ssh-runner: add optional cache_type input to switch between bucket and EFS runners (#49159) by @ydshieh
- [generation] Encode multimodal data only once (#45783) by @zucchini-nlp
- No more -hf repo names for ESMC (#49158) by @Rocketknight1
- [MPS] Remove cu_seqlens_k clone workaround for metal-flash-sdpa (#49091) by @Isalia20
- [PerceptionLM] Restore test_inputs_embeds overrides to fix flaky test (#49165) by @ydshieh
- [CB] Fix failing tests discovered when using the B200 (#49171) by @remi-or
- [imagegpt/vilt/trocr] fix cache fixture tests: use hf_hub_download instead of load_dataset (#49178) by @ydshieh
- Fix lost call (#49163) by @molbap
- Document image_like_kwargs (#49180) by @guarin
- [CacheHardIntegrationTest] use dedicated safetensors repo to fix Xet bucket cache corruption (#49182) by @ydshieh
- Document running the example scripts on Hugging Face Jobs (#49050) by @davanstrien
- Fix backslash handling in generate flag values in transformers chat (#48709) by @JHC56
- Finish removing the MPS autocast workaround (#49157) by @rubenG1009
- Fix Trainer checkpoint resume crashing on CPU with multiple processes (#49123) by @neevmodh
- Fix command syntax for optimum-cli export (#46451) by @Ahwar
- QA: fix noisy comment checker (#49184) by @tarekziade
- update to torch 2.14 (#49199) by @sywangyi
- Video processors - general maintenance (#48251) by @zucchini-nlp
- [Parakeet] Convert NeMo's stochastic depth to layerdrop (#49191) by @Deep-unlearning
- [MPS] Let mps sdpa handle grouped query attention directly (#49187) by @Isalia20
- Replace datasets that no longer load with maintained uploads (#49018) by @davanstrien
- Fail fast on eval OOM under
auto_find_batch_size(#49198) by @qgallouedec - Fix SequenceBiasLogitsProcessor edge cases: token id 0 and prefix equal to context (#49117) by @lucaluo925
- Map bare list, tuple and dict annotations to the right JSON schema type in get_json_schema (#49145) by @825pranav
- [
Kernels] Sync mamba version (#49205) by @vasqu - gguf user defined tokens (#49008) by @SunMarc
- QA: restore masking_utils export comment with a noqa (#49209) by @tarekziade
- Fix deepstack features for mixed-input (#49177) by @zucchini-nlp
- Fix stale _added_tokens_encoder entries in cpmant and wav2vec2 (#47440) by @ishan-1010
- Fix additional_special_tokens data loss with extra_special_tokens (#47848) by @erichanwang
- Fix MPS GQA version gating (#49210) by @Isalia20
- Add Strix Halo (gfx1151) Atlas Inference Hub-kernel path for Qwen3.5/3.6/3.8 Gated DeltaNet (#49127) by @AzeezIsh
- Fix MiniMax M3 partial 3D vision rotary embeddings (#49164) by @cuichenx
- Fix missing router_logits in Qwen3.5-MoE and other MoE models (#49179) by @zucchini-nlp
- [Nemotron3Diarization] fix streaming last stft frame dropped (#49167) by @eustlb
Significant community contributions
The following contributors have made significant changes to the library over the last release:
- @harshaljanjani
- @eustlb
- @tarekziade
- QA: restore masking_utils export comment with a noqa (#49209)
- QA: fix noisy comment checker (#49184)
- QA: Fix llama4 leak (#49042)
- Shorten noisy OpenVINO SDPA comment (#49033)
- Added more usage of MemoryCleanupMixin (#49011)
- fix noisy comments (#49013)
- updated GraniteMoeHybrid expectations (CPU) (#49016)
- QA: applied ruff rule PLW1514 (#48990)
- Contract the mamba2 chunk scan with einsum instead of broadcast-then-sum (#48978)
- QA: deactivate rule 41 (#48852)
- QA: Added a
MemoryCleanupMixinclass for tests (#48681) - Synthetic test assets (#48589)
- @ydshieh
- [CacheHardIntegrationTest] use dedicated safetensors repo to fix Xet bucket cache corruption (#49182)
- [imagegpt/vilt/trocr] fix cache fixture tests: use hf_hub_download instead of load_dataset (#49178)
- [PerceptionLM] Restore test_inputs_embeds overrides to fix flaky test (#49165)
- [CI] ssh-runner: add optional cache_type input to switch between bucket and EFS runners (#49159)
- [Gemma] Fix test_model_7b_fp16_static_cache expected value for cuda 8 after #49084 (#49133)
- [gemma3n] fix audio test fixture: use hf_hub_download instead of load_dataset (#49128)
- Fix exporters import on torch < 2.9 (is_contiguous_or_false) (#49124)
- [NemotronH-Omni] Fix device mismatch in test tensor creation (#49102)
- [Zamba] Fix associative scan breaking ONNX export and OOM in integration test (#49092)
- Fix Qwen3OmniMoeIntegrationTest OOM (#48987)
- Reduce peak memory in examples_torch CI job (OOM fix) (#48983)
- Fix AXK2 integration test: update CUDA expected text and rename class (#48941)
- Clean up some MoE models' integration tests (#48833)
- Mark test_generate_with_static_cache as flaky for olmo and bigbird_pegasus (#48856)
- Fix GLM rope_parameters dict shared mutation across test instances (#48895)
- Fix Glm4MoeIntegrationTest: split into 3 tests, switch to GLM-4.5-Air (#48820)
- Fix flaky RfDetr test_save_load (#48869)
- docs: fix broken #combining-with-fsdp2 anchor in expert_parallelism.md (#48854)
- Relax static-cache tolerance in test_generate_with_static_cache (1e-5 → 5e-5) (#48815)
- Add integration tests for MuseGlimmerAssistantModel (#48796)
- Fix Glm4vMoeIntegrationTest: offload_folder + MemoryCleanupMixin (#48776)
- Switch daily CI to torch 2.14 — update expected outputs (#48750)
- [DeepseekV3] OOM cascade root-cause investigation (generator ref leak in conversion_mapping) (#48720)
- [CI] Replace hardcoded username allowlists with author_association check in workflow triggers (#48712)
- [MusicgenMelody] Fix conditioning silently dropped at generation step 0 (#48679)
- [fix] Fix GlmOcr integration tests: wrong token IDs and image token decode bug (#48650)
- [tests] Fix NougatModelIntegrationTest: pin artifact revision and update golden values (#48638)
- [CI] Deduplicate Nvidia/AMD CI reply comments and add headers (#48655)
- @molbap
- @remi-or
- @jiqing-feng
- Keep
attention_maskasNonein OPT's causal mask creation (#49002) - Register the remaining mamba-ssm kernel layers on XPU (#49035)
- Only seed numpy in BigBird block-sparse attention during training (#49037)
- Fix mask creation not being skipped under
torch.compile(#48975) - Fix
StaticCachefor Mllama and enabletorch.compile(#48141) - Fix
reseton the dynamic cache layers (#48809) - Cast pixel values to the patch embedding dtype in DeepSeek-OCR-2 (#48632)
- Fix TextToAudioPipeline crash for tokenizer-only models (#48505)
- Fix slow integration tests on XPU (#48611)
- Register activation kernel layers on XPU (#47858)
- Keep
- @Wauplin
- @meatybobby
- Add support for Nemotron Omni (#46509)
- @Sainava
- Add pose estimation keypoint preprocessing to Sapiens2ImageProcessor (#47199)
- @jp1924
- add HyperClovaX Vision (#44314)