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

## Executive Summary (TL;DR)
Hugging Face Transformers v4.42.2. Source highlight: Thanks to our 2 contributors for their prompt fixing mostly applies for training and FA2!

## Bug Fixes
- Fix Gemma2 4d attention mask (#31674)
- don't zero out the attention_mask when using sliding window with flash attention (#31670)

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