The patch restores backward compatibility for vLLM remote code, including the renamed cache and modeling_attn_mask_utils, and exposes past_key_values in MBartDecoderLayer.forward. Strided checkpoint reads on PyTorch 2.9 are fixed, and expert parallelism now works with tp_plan={}.
Transformers
Core NLP/ML library for state-of-the-art models
npx @buildinternet/releases get transformerspast_key_values and cache_params are renamed to cache across forward signatures, generate, and outputs, with the old names auto-remapped under a deprecation warning. The release adds Inkling 2 Mini, Apertus 1.5, HY4-VL, Dory, Lara Mini, and Meta's Omnilingual ASR, plus WavTokenizer, SarvamMLA, SarvamMoE, and EXAONE support.
Python bindings no longer depend on numpy, replacing ids_array, type_ids_array and attention_mask_array with DLPack methods, and Python 3.10 support is dropped in favor of 3.11. Encoding now matches 0.23 across a dozen DeepSeek, Kimi, CLIP and BPE cases, with crashes on malformed or unusual inputs fixed.
Accelerate now requires Python 3.11+ and PyTorch 2.6+, and removes the PiPPy and MS-AMP integrations plus the deprecated FP8RecipeKwargs class. The release also extends torch.accelerator-based backend support with initial single-chip torch-tpu fixes, makes accelerate launch clean up child workers on Ctrl+C and SIGTERM, and fixes FSDP meta-parameter initialization and RAM-efficient loading.
Every export now returns an ExportedModel that callers invoke like the original model, push to the Hub, and load on the backend's own runtime, with ONNX Runtime fusions and decode 2.4-3.9x faster on OpenVINO. New model support adds Inkling2, LFM3 and LFM3-VL, dots3-note Preview, IQuestCoder and InternLM3.
Image, audio, and video folder datasets now support fast streaming decode. Loading of pickled pandas DataFrames was removed to address CVE-2026-57845, and fixes include push_to_hub dropping rows when num_proc exceeds num_shards and batch(by_column=) default accumulation causing full downloads.
Jinja sandboxing is hardened against template-based escapes, and distributed setup now sets device_id only for NCCL.
Removed an in-progress ML4 documentation page that shipped in the prior release.
Added support for the LFM3 and LFM3-VL model architectures, and exposed getSupportedDevices() under env.backends.onnx. Fixed negative integer random seeds and a from_pretrained hang when external data downloads fail.
Adds MiniCPM-OCR, Flint, UltraVBert, Gradium Phonon TTS, Pocket TTS, and the Pocket TTS audio tokenizer, plus an fp8 backend for QuantizedCache. Tensor parallelism now gives embeddings their own style and shards input embeddings by default, so custom plans that applied ColwiseParallel or RowwiseParallel to embeddings must switch, and every MoE TP/EP plan must now shard its experts.
Fixes inputs losing their original type inside prepare_inputs_for_generation in generate, which caused problems for multimodal models, and fixes zero expert gradients in bfloat16 when expert parallelism uses ep_size smaller than fsdp_size. Also avoids a host-to-device copy in eager_mask and declares input modalities for VLMs that report text only.
Adds the Beam model from Reflection AI, a token-efficient frontier-scale model for coding and agentic use cases. Restores loading models on older torch versions, including from_pretrained on torch 2.7 and DtensorShardOperation on torch 2.6 and 2.7, plus fixes for HunYuan-VL image assignment during batched generation and DeepGEMM Mega MoE under expert parallelism.
Transformers v5.20.0 adds eight model architectures including Meta's 816B-parameter multimodal Muse Spark Open, InclusionAI's Ling 3.0 Flash hybrid MoE, Baidu's UnlimitedOcr, and MOSS-Transcribe-Diarize. It also removes deprecated cache utility methods and cross-model imports, raises the minimum kernels version to 0.17.2, and changes how LUKE and mLUKE tokenizers treat entity special tokens.
Fixes a breaking truncation and overflowing regression introduced in v0.23.1, and loosens the huggingface_hub requirement to allow v2, unblocking transformers installs. Also fixes type hints not resolving for pyright.
Adds support for EmbeddingGemma 2, an open multimodal embedding model that maps text, images, video, and audio into a single unified 768-dimensional vector space. Text search works via the feature-extraction pipeline, while other modalities use AutoProcessor and AutoModel directly, with all inputs comparable through cosine similarity.
MoE models that compute router logits now return them when output_router_logits=True, changing existing outputs, and the "paged|" prefix for SDPA and flash attention is deprecated in favor of setting the regular attention implementation. Adds EmbeddingGemma2, a multimodal embedding model handling text, images, audio, and video in a shared 768-dimensional space with Matryoshka truncation.
Datasets 5.1.0 adds the Vortex columnar format, Harbor RL environments, and biological formats including FASTA, FASTQ, GenBank, PDB, and mmCIF with BioSequence/BioStructure decoding. Fixes include an archive path check that allowed sibling-directory escapes, disallowed HDF5 external links, and an infinite-repetition bug in empty iterable datasets.
New model additions include Nemotron 3 Diarization (streaming speaker diarization, up to eight speakers), NemotronH Omni (joint text/image/video/audio reasoning), HyperCLOVAX Vision V2, and the GTE BERT-style encoder family. The release also carries flagged breaking changes across ROCm gpt-oss attention routing, DETR image processing, indexer layer_type remapping, vLLM video token counting, DINO modernization, and a Kernels version bump, plus a long tail of bug fixes spanning MoE expert parallelism, Qwen2.5-VL temporal RoPE, and DeepSeek-OCR-2 patching.