RepoJournal
Hugging Face

@huggingface

Transformers, Datasets, and the open AI-model layer

Keep up with Hugging Face in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

One email a day. Unsubscribe in one click.

Pick a date

Topics: Python AI / ML Full archive →

The Wire · Showcase

GEMMA4 CUTS 19 GIB TRAINING BLOAT, TRANSFORMERS REVERTS FSDP CHAOS, CANDLE SPEEDS SCALAR OPS

By RepoJournal · Filed · About Hugging Face

Gemma4 just shed a massive training bottleneck by replacing one-hot tensor materialization with embedding lookups, while Transformers is cleaning house after an FSDP refactor went sideways.

The Gemma4 team shipped a smart optimization that replaces one-hot encoding plus matmul patterns with two F.embedding lookups, completely eliminating the materialization of a roughly 19 GiB intermediate tensor during large batch training [1]. This is the kind of surgical fix that unblocks real production workloads. Meanwhile, Transformers just reverted a significant FSDP plus Dtensor refactor after internal discussion flagged problems [2], a necessary move that keeps the main branch stable while the team sorts out the architecture. On the performance front, Candle is tackling binary broadcast scalar operations with better kernel dispatch, adding Layout helpers to identify scalars that masquerade as strided tensors and avoiding unnecessary indexing overhead [3]. The infrastructure work is solid too: hf-mount now supports JSON log format for environments with log shippers [7], and Transformers added Metal Flash SDPA support on Apple Silicon with fixes for generate and generate_batch paths [8]. Candle also bumped three core dependencies: rubato to 2.0, hf-hub to 0.5.0, and Symphonia to 0.6.0 [4] [5] [6]. Test CI infrastructure got hardened with cache permission fixes and token cleanup [9] [10]. Finally, TRL aligned KTO training with DPO by removing the null_ref_context indirection layer [11], cleaning up how the code handles missing reference models.

One email a day. Unsubscribe in one click.

Action items

References

  1. [1] [Gemma4] Replace one-hot matmul with F.embedding in position embeddings (#46176) huggingface/transformers
  2. [2] [`Revert`] FSDP+Dtensor refactor related changes ↗ huggingface/transformers
  3. [3] Binary broadcast scalar support ↗ huggingface/candle
  4. [4] chore(deps): update rubato requirement from 1 to 2 ↗ huggingface/candle
  5. [5] chore(deps): update hf-hub requirement from 0.4.1 to 0.5.0 ↗ huggingface/candle
  6. [6] chore(deps): update symphonia requirement from 0.5.3 to 0.6.0 ↗ huggingface/candle
  7. [7] feat: add json log format ↗ huggingface/hf-mount
  8. [8] Enable kernels-community/metal-flash-sdpa on MPS (#45974) huggingface/transformers
  9. [9] Fix cache read-only permission for metrics (#19) huggingface/transformers-test-ci
  10. [10] Remove token ↗ huggingface/transformers-test-ci
  11. [11] Align KTO with DPO: Remove null_ref_context ↗ huggingface/trl

Quick answers

What shipped in Hugging Face on May 29, 2026?
Gemma4 just shed a massive training bottleneck by replacing one-hot tensor materialization with embedding lookups, while Transformers is cleaning house after an FSDP refactor went sideways. In total, 24 commits and 27 pull requests landed.
Who contributed to Hugging Face on May 29, 2026?
6 developers shipped this update, including vasqu, ivarflakstad, dependabot[bot], jcudit, ydshieh, and albertvillanova.
What were the notable Hugging Face updates?
[Gemma4] Replace one-hot matmul with F.embedding in position embeddings (#46176), [`Revert`] FSDP+Dtensor refactor related changes, and Binary broadcast scalar support.

More from @huggingface

Daily updates, in your inbox

Follow Hugging Face

Keep up with Hugging Face in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

or

One email a day. Unsubscribe in one click. Read a past issue →

Elsewhere on the wire

Want every project, not just this one?