The Wire · Showcase
Transformers linter hunts nn.Buffer misuse as kernels ships hotfix
By RepoJournal · Filed · About Hugging Face
transformers-mlinter is tightening model internals while kernels drops a quick patch, but the real action is a quiet alignment fix in trl.
The Hugging Face ecosystem moved fast overnight: transformers-mlinter added Rule 58, which flags `register_buffer("<name>", ...)` calls in `modeling_*.py` and `modular_*.py` and demands `nn.Buffer` assignments instead [1]. This is a breaking style shift for model authors, so expect churn in your PRs. Meanwhile, kernels shipped v0.16.1 [2], a low-risk patch you can adopt without ceremony. On the training side, trl aligned `AsyncDistillationTrainer` with `AsyncGRPOTrainer` by reading pre-init args from local `args` before `super().__init__()` [3], a consistency fix that touches a follow-up to #6824. Over at optimum-intel, a revert restored Gemma4 tests by undoing the "Seq2seq segfault" change [4], so watch for behavior shifts in seq2seq inference. The period saw 3 commits, 3 PRs, and 1 release across four repos: quiet but deliberate. Prioritize the mlinter rule swap and the trl alignment in your next review round.
One email a day. Unsubscribe in one click.
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. Read a past issue →
Action items
- → Adopt kernels v0.16.1 in your next rebuild huggingface/kernels [monitor]
- → Review modeling code against transformers-mlinter Rule 58 huggingface/transformers-mlinter [plan]
- → Verify AsyncDistillationTrainer config behavior after trl PR merge huggingface/trl [plan]
- → Monitor optimum-intel for seq2seq regression after revert huggingface/optimum-intel [plan]
References
- [1] Rule 58 ↗ huggingface/transformers-mlinter
- [2] v0.16.1 ↗ huggingface/kernels
- [3] Align AsyncDistillationTrainer with AsyncGRPOTrainer on pre-init args ↗ huggingface/trl
- [4] [OpenVINO] Return Gemma4 tests. ↗ huggingface/optimum-intel