# Hugging Face Transformers v4.51.0 — Release & Upgrade Intelligence
- **Product:** Hugging Face Transformers (https://huggingface.co)
- **Version:** v4.51.0
- **Released:** Apr 05, 2025
- **Impact Score:** 5/10
- **Breaking Changes:** Not verified
- **Canonical Analysis:** https://changelogs.us/transformers/updates/v4.51.0/

## Executive Summary (TL;DR)
Hugging Face Transformers v4.51.0. Source highlight: Llama 4, developed by Meta, introduces a new auto-regressive Mixture-of-Experts (MoE) architecture.This generation includes two models:

## New Features
- Add Phi4 multimodal by @Cyrilvallez in #36939
- [WIP] add deepseek-v3 by @bzantium in #35926
- Introduce modular files for speech models by @nikosanto13 in #35902
- Add ruff target-version (#36971)
- Add py.typed (#37022)
- Add Optional to types (#37163)

## Improvements
- [2/N] Use pyupgrade --py39-plus to improve code (#36857)
- [3/N] Use pyupgrade --py39-plus to improve code (#36936)

## Bug Fixes
- fix: loss computation after embeddings resize - mllama by @Ssukriti in #36840
- Simplify keep_in_fp32_modules logic by @Cyrilvallez in #36722
- Fix Pan and Scan on batched images Gemma3 by @yonigozlan in #36864
- Update installation.md by @ariG23498 in #36826
- fix Gemma3 Config by @eljandoubi in #36893
- Fix torch version guard at import by @zucchini-nlp in #36907

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