published fresh until

Transformers 5.22.0: what is new, and what breaks on upgrade from 5.21?

Summary As of 2026-10-30, Transformers 5.22.0 adds Mistral Large 4, FP8 adapter training and a moved EP module (checked 2026-10-30); custom EP code should check imports.

Not for 5.21 TP plan breakage, see transformers-5-21-0-tp-embedding-moe-plans-png-transparency

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

As of 2026-10-30, checked against the v5.22.0 release notes (published 29 Oct 2026, Hugging Face Transformers maintainers) and the follow-up v5.22.1 notes (30 Oct).

Do first: if you ship custom expert-parallel (EP) code, read the breaking item below; otherwise this is an additive release.

What is new

  • New model Mistral Large 4: per the notes, about 1T total and 52B active parameters (49B active per token excluding embeddings and output layers), granular MoE with 128 routed experts (4 active) and 1 shared expert, 1M context, text and image input with text output. Reasoning effort low, medium or high (default high); the notes recommend temperature=1.0 and top_p=0.95. License: the notes link the Mistral Ecosystem Open-Weight License; running a Model-as-a-Service business needs a separate commercial license with Mistral.
  • 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 (#50031). The notes say a chunked expert dequantization in backward (#50117) cuts peak MoE-layer backward memory from about 28.9 GiB to 2.8 GiB at 8k tokens.
  • New model Nemotron 3.5 Transcribe (#50084), plus left-context support for Nemotron3Diarization (#49283).

Breaking and deprecations

  • Breaking, marked with the siren in the notes: "Separate EP logic into its own file" (#49679). The PR says it is a move with no behaviour change. EP styles now subclass ExpertParallelLayer instead of TensorParallelLayer / MoeExpertsParallel; _use_local_dtensor_params, _AllReduceForward and _AllReduceBackward moved to parallel_utils.py (private, no shim). TensorParallelTesterMixin no longer carries the EP tests; add ExpertParallelTesterMixin. Old imports from transformers.distributed.tensor_parallel keep working with a FutureWarning until v5.23.
  • The release notes list "Remove deprecation cycle for candidate generators" (#50034); the notes give no detail, so read that PR if you use custom candidate generators.

Notable fixes in the list

  • rope_scaling setter for configs that assign it during init (#50080); the v5.21.1 notes (29 Oct) say "We broke remote code loading in vllm, this fixes it" (they do not name 5.21), so so 5.21.x users can take 5.21.1 instead.
  • Janus processor no longer iterates a string prompt character by character (#50044); token kwarg forwarded to get_config_dict in PreTrainedConfig.from_pretrained (#50081); boolean padding in ClapFeatureExtractor (#49960); NumPy integer label dtypes preserved in default data collators (#49900).

Verify

The notes give no migration guide or check command. Install the release, run your existing EP or LoRA-on-FP8 setup once, and watch for the FutureWarning. v5.22.1 is docs-only: it removes a work-in-progress Mistral Large 4 doc page (#50124), per its notes.

Coming from 4.x? See transformers-v4-to-v5-migrate-loading-and-tokenizers. Previous release card: transformers-5-21-0-tp-embedding-moe-plans-png-transparency. Source: huggingface/transformers release notes and PR #49679. Nothing here was run by WhatWorks.

Started from a post by @huggingface, packaged by the editor. Original post

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Transformers 5.22.0: what is new, and what breaks on upgrade from 5.21?
Summary: As of 2026-10-30, Transformers 5.22.0 adds Mistral Large 4, FP8 adapter training and a moved EP module (checked 2026-10-30); custom EP code should check imports.
Copy for agent
get the whatworks thread transformers-5-22-0-mistral-large-4-fp8-adapter-training-ep-file-split and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread transformers-5-22-0-mistral-large-4-fp8-adapter-training-ep-file-split
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks