Zum Inhalt springen

Transformers Updates & Release Notes

Einträge
44
Quellen
1
Zuletzt aktualisiert

Folge Transformers, um die Release Notes in deinen Feed zu holen.

Transformers von Hugging Face

Release v5.26.0

New Model additions

Qwen4

<img width="4096" height="2731" alt="image" src="https://github.com/user-attachments/assets/a8d39373-304f-42be-aa6e-bf883798e5e3" />

Qwen4 is a model that combines Gated DeltaNet and Qwen Sparse Attention with GatedResidual connections and a dense SwiGLU feed-forward network. In Hugging Face Transformers, Qwen4ForCausalLM handles text generation, and Qwen4ForConditionalGeneration handles image and video inputs. The documentation shows usage with the Qwen/Qwen4-27B checkpoint.

Links: Documentation

  • Add qwen4 (#51678) by @vasqu in #51678

Qwen4 MoE

Qwen4 MoE uses the mixture-of-experts and per-layer embedding architecture described in Qwen4-Exp. Qwen4MoeForCausalLM handles text generation, and Qwen4MoeForConditionalGeneration handles image and video inputs. The documentation gives no further detail on the model's capabilities, training, or sizes.

Links: Documentation

  • Add qwen4 (#51678) by @vasqu in #51678

Molmo3

<img width="774" height="308" alt="image" src="https://github.com/user-attachments/assets/91d60404-86f9-4428-a8af-eb191dba64ff" /> …

Originalquelle(öffnet in neuem Tab)Problem melden

Transformers von Hugging Face

Patch release v5.25.1

Patch release v5.25.1

A mix of very different issues, some tokenizers, modeling, and kernels. See the full list below:

  • Honor tokenizer-configured control-token sanitization in chat templates (#51599) by @younggyoseo
  • Fix Gemma 4 per-layer inputs under tensor parallelism (#51566) by @dacorvo
  • Fix activate_past_recording default value (#51640) by @Cyrilvallez
  • [kernels] Use mamba-ssm v6 and flash-attn4 v2 (#51587) by @kashif
  • [Kernels] Adjust kernels compat (#51621) by @vasqu

Full Changelog: https://github.com/huggingface/transformers/compare/v5.25.0...v5.25.1

Originalquelle(öffnet in neuem Tab)Problem melden

Transformers von Hugging Face

Release v5.25.0

Release v5.25.0

New Model additions

Ergo

<img width="1436" height="772" alt="image" src="https://github.com/user-attachments/assets/54729412-44ef-48f6-8ea1-4b8d3d5c88bc" />

Amazon Ergo is a frontier open-weights model for software engineering and agentic workflows. Ergo is designed to tackle complex, long-running tasks while being fast and cost efficient. Ergo is a 1.1 trillion parameter mixture-of-experts model with 55 billion active parameters and a 1M-token context window.

Links: Documentation | Model weights | Official Post

  • Add new model Ergo (#51575) by @jfc4050 in #51575

Kolibri1_1

<img width="894" height="907" alt="image" src="https://github.com/user-attachments/assets/31bf5fc0-4c89-4af3-84a4-e38508fcbd78" /> …

Originalquelle(öffnet in neuem Tab)Problem melden

Transformers von Hugging Face

Patch release v5.24.1

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: https://github.com/huggingface/transformers/compare/v5.24.0...v5.24.1

Originalquelle(öffnet in neuem Tab)Problem melden

Transformers von Hugging Face

Release v5.24.0

Release v5.24.0

New Model additions

Inkling 2 Mini

<img width="80%" alt="image" src="https://github.com/user-attachments/assets/beefb5e0-39a9-4205-ab07-0ee707af95f2" />

Inkling 2 Mini is a multimodal model from Thinking Machines Lab that accepts text and image inputs and generates text outputs. It is a smaller sibling of Inkling 2 Small, added in v5.23.0. It has 24 decoder layers instead of 48, and compensates with a looping mechanism in which layers 6 to 17 run three times. A learned message-passing mechanism mixes the residuals of the previous pass into the attention and mixture-of-experts inputs of each loop layer. The decoder has a hidden size of 2304 and routes each token to 8 of 128 experts. The image encoder, tokenizer and processor are the same as Inkling 2 Small's.

A research checkpoint (TML-d24-varloop-research) has the same architecture but supports a variable number of loop passes. Fewer passes are faster, and more passes improve quality. Both checkpoints contain NVFP4 and MXFP8 quantized layers, which are dequantized at load time.

Links: Documentation | Blog Post | HF Blog Post

  • Add Inkling2 Mini (#51050) by @guarin

Apertus 1.5 …

Originalquelle(öffnet in neuem Tab)Problem melden

Transformers von Hugging Face

Release v5.23.0

Release v5.23.0

New Model additions

Inkling2

<img width="1200" height="675" alt="image" src="https://github.com/user-attachments/assets/9115e142-1be3-4f79-a51d-ea0e5c25b152" />

Inkling 2 Small is a multimodal model from Thinking Machines Lab that accepts text and image inputs and generates text outputs, and it is intended for use in English and other languages and across multiple coding languages. Its language backbone has 48 mixture-of-experts decoder layers, each routing tokens to 8 of 384 experts, for 594B total and 17B active parameters. It keeps the Inkling decoder (learned relative attention, short causal convolutions, mixture-of-experts layers) and adds block attention residuals, gated attention with a learned sink, and dynamic key/value convolutions. Images are encoded by a Perception Encoder-based vision transformer and projected into the language model embeddings, one embedding per 40x40 pixel patch.

Links: Documentation | Blog Post

  • Add inkling2 (#50682) by @guarin in #50682

JEV …

Originalquelle(öffnet in neuem Tab)Problem melden

Transformers von Hugging Face

v5.22.0: Mistral Large 4 (Le Chonk)

New Models

Mistral Large 4 (Le Chonk)

<img width="1329" height="780" alt="image" src="https://github.com/user-attachments/assets/1cff9ca7-19e3-4622-8db6-fb1cfa842579" />

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. …

Originalquelle(öffnet in neuem Tab)Problem melden

Transformers von Hugging Face

Release: v5.21.0

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

  • Feat test (#49920) by @guarin in #49920

Flint

<img width="3200" height="1800" alt="flint_benchmarks_nvfp4" src="https://github.com/user-attachments/assets/c45955fb-dfcc-4266-8223-b0d70efb9a5b" />

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 …

Originalquelle(öffnet in neuem Tab)Problem melden

Transformers von Hugging Face

Patch release v5.20.2

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

Originalquelle(öffnet in neuem Tab)Problem melden

Transformers von Hugging Face

Release v5.20.1

Release v5.20.1

Special surprise including the new model Beam from Reflection AI :partying_face:

<img width="2912" height="1440" alt="Gemini_Generated_Image_ox4hjlox4hjlox4h" src="https://github.com/user-attachments/assets/bfc7ff16-4340-490c-925c-b1512e4ceb32" />

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 :cry: 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: https://github.com/huggingface/transformers/compare/v5.20.0...v5.20.1

Originalquelle(öffnet in neuem Tab)Problem melden

Transformers von Hugging Face

Release v5.20.0

Release v5.20.0

New Model additions

Muse Spark Open

<img width="2400" height="1296" alt="image" src="https://github.com/user-attachments/assets/bf34ea27-0edf-4ded-ba6f-905b04096126" />

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

  • Add Muse Spark Open (#49644) by @guarin in #49644

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 …

Originalquelle(öffnet in neuem Tab)Problem melden

Transformers von Hugging Face

Transformers v5.19.0: EmbeddingGemma2, Router-Logits als Breaking Change

Transformers v5.19.0 ergänzt das multimodale Embedding-Modell EmbeddingGemma2, das Text, Bilder, Audio und Video in einen gemeinsamen 768-dimensionalen Vektorraum abbildet, und gibt bei allen MoE-Modellen mit Router-Logits diese nun bei output_router_logits=True zurück, was ein Breaking Change ist.

Release v5.19.0

New Model additions

EmbeddingGemma2

<img width="2716" height="2308" alt="image" src="https://github.com/user-attachments/assets/84734e74-163d-4d12-b166-ffcf6749d563" />

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

  • Smthn smthn (#49364) by @vasqu in #49364

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 …

Originalquelle(öffnet in neuem Tab)Problem melden

Transformers von Hugging Face

Transformers 5.18.0: Nemotron 3 Diarization und NemotronH Omni

Transformers 5.18.0 ergänzt unter anderem die neuen Modelle Nemotron 3 Diarization für Streaming-Sprecherdiarisierung mit bis zu acht Sprechern sowie NemotronH Omni von NVIDIA.

New Model additions

Nemotron 3 Diarization

<img width="1680" height="900" alt="image" src="https://github.com/user-attachments/assets/fe735cb3-9e5b-43ad-8f60-9dec8425aec7" />

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

  • Add Nemotron3Diarization (#49056) by @eustlb in #49056

NemotronH Omni

NemotronH Omni is a multimodal reasoning model from NVIDIA that pairs the NemotronH hybrid …

Originalquelle(öffnet in neuem Tab)Problem melden

Transformers von Hugging Face

Transformers 5.17.0: neues Modell HYV4 (Hy4-Preview)

Transformers 5.17.0 ergänzt das neue Modell HYV4 (Hy4-Preview), ein Mixture-of-Experts-Sprachmodell mit 780B Parametern, 49B aktiven Parametern pro Token und 1M Tokens Kontextfenster.

Release v5.17.0

New Model additions

HYV4

<img width="1503" height="827" alt="image" src="https://github.com/user-attachments/assets/e6ed85ee-eb1d-40eb-a0d4-c649f6337ca9" />

Hy4-Preview is a 780B-parameter mixture-of-experts language model that activates 49B parameters per token. Each MoE layer holds 256 routed experts plus one always-active shared expert and routes every token to 8 of them. The context window is 1M tokens.

The architecture combines four features:

  • Multi-head Latent Attention (MLA) compresses keys and values into a low-rank latent (kv_lora_rank) that kv_b_proj expands back to one key/value per query head.
  • DeepSeek Sparse Attention (DSA) selects index_topk keys per query with a lightweight indexer. Following IndexShare, only the layers marked "full" in indexer_types run an indexer; "shared" layers reuse the previous full layer's selection.
  • Gated MLA with learnable attention sinks, where each head owns a sink logit that participates in the softmax and contributes no value, as in GPT-OSS.
  • Independent Hyper-Connections (iHC) replace the plain residual path with hc_mult parallel residual streams that are collapsed before, and redistributed after, every sublayer.

The implementation does not execute the multi-token prediction (MTP) layers. Released checkpoints …

Originalquelle(öffnet in neuem Tab)Problem melden

Transformers von Hugging Face

Transformers 5.16.1: GLM-5.3-Flash und kleine Fixes

Transformers v5.16.1 unterstützt nun GLM-5.3-Flash, ein nativ multimodales Modell der GLM-5-Reihe, und enthält kleine Fixes zur Rückwärtskompatibilität bei TP sowie ein angepinntes hf-Kernel aus Sicherheitsgründen.

Release v5.16.1

This is a special release as we include GLM! (and a few small fixes)

GLM-5.3-Flash

<img width="4239" height="2643" alt="image" src="https://github.com/user-attachments/assets/17bc9c29-758b-44c8-8230-42f945ded209" />

GLM-5.3-Flash, the first natively multimodal model in the GLM-5 series. With 320B total parameters and just 18B active parameters, it outperforms GLM-5.2 across benchmarks and real-world workloads at one-tenth the price, while approaching Claude Opus 4.8 on coding and agentic benchmarks.

GLM-5.3-Flash starts from a newly trained base model, with its architecture and training recipe redesigned around capability and efficiency. For the first time in the GLM series, we introduce a hybrid architecture combining sparse and linear attention, sharply reducing long-context serving costs while preserving precise long-context capabilities. The model also adopts Manifold-Constrained Hyper-Connections (mHC) to further improve scaling efficiency. Together with our latest 30T-token multimodal pre-training corpus, these changes enable GLM-5.3-Flash to deliver more intelligence with less compute.

Links: Documentation

  • [Glm 5.3 Flash] GLM 5.3 Flash Support (#48342) by @Dovis01 in #48342

Small patch fixes

Mainly BC behavior for TP and pinning a hf kernel for security reasons :hugs: …

Originalquelle(öffnet in neuem Tab)Problem melden

Transformers von Hugging Face

Transformers 5.16.0: neues Modell Qwen4-Exp

Transformers v5.16.0 ergänzt das neue Modell Qwen4-Exp, das auf der Qwen3.5-Architektur aufbaut und lineare mit sparsamer Attention kombiniert.

Release v5.16.0

New Model additions

Qwen4-Exp

<img width="2241" height="693" alt="image" src="https://github.com/user-attachments/assets/c838b5ba-ffea-42da-baa9-3f66178e3671" />

Qwen4-Exp builds on Qwen3.5's hybrid text and multimodal architecture with three key components: GatedResidual (GR), Qwen Sparse Attention (QSA), and Per-Layer Embedding (PLE).

GR is a Qwen-developed residual architecture that combines Hyper-Connection with GatedNorm. It mixes multiple residual streams with fine-grained elementwise gating before each attention and Mixture-of-Experts (MoE) block, then controls how much of the block output is injected back into each stream.

QSA uses multiple query heads to score compressed key blocks, selects the most relevant contiguous token blocks, and keeps the incomplete trailing block uncompressed. This block-level selection reduces indexing overhead and improves memory locality for long sequences. Combined with Gated DeltaNet, QSA makes Qwen4-Exp the first hybrid architecture to integrate linear and sparse attention, substantially improving inference efficiency for long-context workloads.

PLE enriches selected decoder layers with layer-specific lexical features derived from hashed token n-grams and a dilated depthwise convolution.

Links: Documentation …

Originalquelle(öffnet in neuem Tab)Problem melden

Transformers von Hugging Face

Transformers 5.15.1: Fixes für DFlash, MTP, Gemma4 und Lanczos

Transformers 5.15.1 behebt Probleme mit DFlash- und MTP-Candidate-Generatoren, einen Gerätekonflikt bei Gemma4-Videos sowie Fehler bei der Bildverarbeitung auf Beschleunigern mit Lanczos-Filter, indem auf bicubic ausgewichen wird.

Patch release v5.15.1

This patch most notably solves a few issues with DFlash and MTP candidate generators, as well as an issue where images could sometimes not be processed on accelerator if using Lanczos filter.

It contains the following commits:

  • Fix DFlash candidate token device mismatch with device_map="auto" (#47877) by @sywangyi and @Cyrilvallez
  • Align logit distributions for CandidateGenerators using sampling (#48007) by @Cyrilvallez
  • Fix MTP config when mlp_layer_types is absent (#48015) by @Cyrilvallez
  • Fallback from 'lanczos' to 'bicubic' when on cuda (#48026) by @zucchini-nlp
  • Fix gemma4 video to device (#47896) by @guarin

Originalquelle(öffnet in neuem Tab)Problem melden