RepoJournal
Hugging Face

@huggingface

Transformers, Datasets, and the open AI-model layer

What actually shipped in Hugging Face, written up every day — commits, pull requests, releases, and security advisories.

One email a day. Unsubscribe in one click.

Pick a date

Topics: Python AI / ML Full archive →

The Wire · Showcase

TRANSFORMERS HARDENS AGAINST PYTORCH FRAGMENTATION WHILE TRL SIMPLIFIES DISTILLATION

By RepoJournal · Filed · About Hugging Face

Transformers plugged a cascading import failure that breaks downstream CI on older PyTorch versions, while TRL rips out dead code to lock DistillationTrainer into prompt-only datasets.

The DTensor import guard [1] lands as a critical fix: sharding_utils.py was importing DTensor unconditionally, causing ImportError cascades through core_model_loading.py and downstream projects like Accelerate when PyTorch drops below 2.5. This one unblocks CI across the ecosystem. On the performance front, Whisper feature extraction got 8x faster by forcing mel magnitudes contiguous [2], sidestepping a pathological strided-GEMM slowdown on CPU backends that was dominating 30-second audio windows. The audio feature requirements PR [3] tightens decorator usage across Voxtral and other models where missing `@requires` decorators masked import errors. Meanwhile, TRL's DistillationTrainer refactor [4] [5] removes the messages-format branch and prompt-truncation config entirely, simplifying the collator API since on-policy distillation only needs prompts, the student generates completions. This mirrors GRPO's cleaner surface and unblocks after the `num_items` fix stopped prompt-only batches from producing NaN. Funes hardened remote memory setup [6] by requiring TruffleHog validation before hub integration and marking newly created datasets as private in prompts, addressing the privacy and secret-scanning surface. Across all desks, 41 commits and 29 PRs shipped focused on robustness, performance, and API coherence.

One email a day. Unsubscribe in one click.

Action items

References

  1. [1] fix: guard DTensor import in sharding_utils.py for PyTorch < 2.5 (#47481) huggingface/transformers
  2. [2] CPU can incur a slow path on non-contiguous magnitudes (#47351) huggingface/transformers
  3. [3] [fix] fix requirements audio feature and proc ↗ huggingface/transformers
  4. [4] [DistillationTrainer refactor] Remove messages-format support and prompt-length config ↗ huggingface/trl
  5. [5] [DistillationTrainer refactor] Switch tests, docs, and example to prompt-only datasets ↗ huggingface/trl
  6. [6] Harden remote memory setup in funes add ↗ huggingface/funes
  7. [7] add a reproduce step ↗ huggingface/transformers-ci

Quick answers

What shipped in Hugging Face on July 23, 2026?
Transformers plugged a cascading import failure that breaks downstream CI on older PyTorch versions, while TRL rips out dead code to lock DistillationTrainer into prompt-only datasets. In total, 41 commits and 29 pull requests landed.
Who contributed to Hugging Face on July 23, 2026?
9 developers shipped this update, including dacorvo, tarekziade, vbayanag, eustlb, xhg, Yuanyuan Chen, Eric Bezzam, and qgallouedec, and 1 more.
What were the notable Hugging Face updates?
fix: guard DTensor import in sharding_utils.py for PyTorch < 2.5 (#47481), CPU can incur a slow path on non-contiguous magnitudes (#47351), and [fix] fix requirements audio feature and proc.

More from @huggingface

Daily updates, in your inbox

Follow Hugging Face

What actually shipped in Hugging Face, written up every day — commits, pull requests, releases, and security advisories.

or

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

Elsewhere on the wire

Want every project, not just this one?