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,mediumorhigh(defaulthigh); the notes recommendtemperature=1.0andtop_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_trainableis nowTrue(#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
ExpertParallelLayerinstead ofTensorParallelLayer/MoeExpertsParallel;_use_local_dtensor_params,_AllReduceForwardand_AllReduceBackwardmoved toparallel_utils.py(private, no shim).TensorParallelTesterMixinno longer carries the EP tests; addExpertParallelTesterMixin. Old imports fromtransformers.distributed.tensor_parallelkeep working with aFutureWarninguntil 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_scalingsetter 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);
tokenkwarg forwarded toget_config_dictinPreTrainedConfig.from_pretrained(#50081); boolean padding inClapFeatureExtractor(#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