# Hugging Face Transformers v5.13.0 — Release & Upgrade Intelligence
- **Product:** Hugging Face Transformers (https://huggingface.co)
- **Version:** v5.13.0
- **Released:** Jul 03, 2026
- **Impact Score:** 7/10
- **Breaking Changes:** Source flagged
- **Canonical Analysis:** https://changelogs.us/transformers/updates/v5.13.0/

## Executive Summary (TL;DR)
Hugging Face Transformers v5.13.0. Source highlight: KimiK 2.5, 2.6, and 2.7

## Breaking Changes & Deprecations
- Breaking changes A broad set of modeling changes have been made to standardize layer declarations, mask/cache construction, and hybrid-attention handling, making many models cleanly exportable (ONNX, `torch.export`, ExecuTorch) and fullgraph-compilable — users relying on internal modeling APIs may need to update their code accordingly.
- The `Kernels` integration has been synced to the latest version, which includes a breaking change where model-type repositories are no longer accepted by the kernels interface — users must migrate to the updated kernel repository format as shown in the updated tests.

## New Features
- Add new model: Kimi2-6 (#45630) by @zucchini-nlp in #45630
- Add Xiaomi MiMo-V2 (#45144) by @casinca in #45144
- Add Nemotron 3.5 ASR Streaming (#46565) by @eustlb in #46565
- Add Nemotron ASR Streaming (#46332) by @eustlb in #46332
- [new model] Add Zyphra/ZAYA1-8B (#45862) by @JJJYmmm in #45862
- Add Videoprism (#39895) by @MHRDYN7 in #39895

## Bug Fixes
- 🚨 [gemma 3/4] Fix bidirectional attention masking crossing sliding window boundaries (#46850)
- 🚨 EP: fix EP router contract for many models + honor FP8 scale format (#46818)
- Fix silent SDPA math-kernel fallback for GQA when key/value head_dim > 256 or differ (#46960) by @Butterfingrz in [#46960]
- fix: position ids does not exist in upstream rotary kernel (#46619) by @NanoCode012 in [#46619]
- Fix Mamba2 chunked-prefill / speculative decoding for Zamba2, Nemotron-H, Bamba, FalconH1 and GraniteMoeHybrid (#46741) by @Sunt-ing in [#46741]
- Fix beam search for mamba models (#46819) by @Cyrilvallez in [#46819]

## Upgrade Command
```bash
python -m pip install 'transformers==5.13.0'
```
