RepoJournal
Hugging Face

@huggingface

Transformers, Datasets, and the open AI-model layer

Pick a date

Topics: Python AI / ML Full archive →

The Wire · Showcase

SENTENCE-TRANSFORMERS FIXES SILENT GRADIENT CORRUPTION ON GPU

By RepoJournal · Filed · About Hugging Face

A critical bug in cached losses was silently producing wrong gradients on GPU, and it's fixed now [ref:1].

Sentence-transformers consolidated its fragmented GradCache machinery into a single shared engine and patched a silent gradient corruption bug that affected cross-encoder cached losses on GPU and prompt-training with `Pooling(include_prompt=False)` across all cached losses [1]. This is the kind of bug that ships bad models without warning. In related fixes, the library corrected causal padding validation that was reading the wrong attribute on multimodal processors, causing VLM padding checks to never fire [2], and improved error messages for video metadata passed as sibling keys instead of nested under the video modality [3]. TRL is systematically hardening its experimental trainers with comprehensive eval_dataset initialization tests across GRPO-family [4], Online-DPO-family [5], SFT and distillation [6], and preference trainers [7], mirroring coverage already added to core trainers. Diffusers added Cosmos 3 Edge generator support [9] and began shipping Anima img2img pipeline blocks [10], extending modular generation capabilities. Optimum-Intel patched a missing compression parameter that should have been exposed [8].

Action items

References

  1. [1] [`losses`] Consolidate GradCache into one shared engine, fix silently wrong gradients, add `mini_batch_num_tokens` ↗ huggingface/sentence-transformers
  2. [2] Check causal left padding against the attention mask huggingface/sentence-transformers
  3. [3] Improve the error message when `video_metadata` is passed as a sibling modality key (#3866) huggingface/sentence-transformers
  4. [4] Add eval_dataset init tests for experimental GRPO-family trainers ↗ huggingface/trl
  5. [5] Add eval_dataset init tests for experimental Online-DPO-family trainers ↗ huggingface/trl
  6. [6] Add eval_dataset init tests for experimental SFT and distillation trainers ↗ huggingface/trl
  7. [7] Add eval_dataset init tests for experimental preference trainers ↗ huggingface/trl
  8. [8] Add missing compression parameter ↗ huggingface/optimum-intel
  9. [9] Cosmos3 edge support ↗ huggingface/diffusers
  10. [10] [Anima] Add img2img pipeline blocks ↗ huggingface/diffusers

Quick answers

What shipped in Hugging Face on July 17, 2026?
A critical bug in cached losses was silently producing wrong gradients on GPU, and it's fixed now [ref:1]. In total, 31 commits and 29 pull requests landed.
Who contributed to Hugging Face on July 17, 2026?
8 developers shipped this update, including tomaarsen, Quentin Gallouédec, albertvillanova, Andrey Churkin, Sayak Paul, atharvajoshi10, yiyixuxu, and PreethamNoelP.
What were the notable Hugging Face updates?
[`losses`] Consolidate GradCache into one shared engine, fix silently wrong gradients, add `mini_batch_num_tokens`, Check causal left padding against the attention mask, and Improve the error message when `video_metadata` is passed as a sibling modality key (#3866).

More from @huggingface

Daily updates, in your inbox

Follow Hugging Face

Transformers, Datasets, and the open AI-model layer We'll email you a link to confirm first.

Free. Confirm via email. Unsubscribe in one click.

— or follow the whole beat:

Elsewhere on the wire