$ the-wire · showcase
TRL redacts secrets from logged completions, excludes transformers 5.25.0
By RepoJournal · Filed · About Hugging Face · Composed from the cited sources · methodology
TRL now scrubs credentials from every logged completion before it reaches the console, Trackio, W&B, parquet files, or a Hub dataset, and pins away from transformers 5.25.0 rather than patching around it.
Redact secrets from logged completions huggingface/trl
With tools and environments enabled, a completion contains whatever the tool or environment returned, so a model that prints its environment carried the trainer's credentials, `HF_TOKEN` included, into the console, Trackio and W&B tables, the parquet files in `output_dir`, and the Hub dataset set with `log_completions_hub_repo`. Credentials are now replaced with `<REDACTED>` before the completi...
Revert the transformers 5.25.0 CI hotfixes now that 5.25.1 is out huggingface/trl
The CI workarounds for transformers 5.25.0 are gone: 5.25.1 fixes Hub kernels loading without einops and default Hub kernels backpropagating in eval mode, and TRL now excludes 5.25.0 from its dependencies outright so nothing downstream has to handle it. The strict einops xfails would XPASS on 5.25.1 and fail CI, so they go with it.
Cast QLoRA adapters to bf16 only when training in bf16 huggingface/trl
All seven stable trainers (SFT, DPO, KTO, GRPO, RLOO, Reward, Distillation) cast QLoRA adapters to bf16 regardless of precision, which made `fp16=True` crash at the first optimizer step because the fp16 grad scaler cannot unscale bf16 gradients. The cast now fires only under `args.bf16`; otherwise adapters stay fp32, PEFT's default. bf16 runs are unchanged.
OpenVINO exporter: fix exports on OpenVINO 2026.5 (#51584) huggingface/transformers
OpenVINO 2026.5 converts exported programs without decomposing them and dropped its list of ops to keep whole, so its frontend received raw ops it cannot handle: tensor_split by symbolic indices, nested-graph constants, einsum. The exporter keeps running core ATen decompositions on 2026.5, with SDPA deliberately left whole because decomposing it produces device-specific attention kernels.
Fix video `smart_resize` to compute the pixel budget with padded frame counts (#51155) huggingface/transformers
Video frames are padded up to a multiple of temporal_patch_size, but `smart_resize` checked the pixel budget against a round()-based t_bar and computed beta from the unpadded num_frames, so padded output could exceed max_pixels. Switching t_bar to ceil() restores the semantics of the earlier change. The register also held two smaller fixes: the Mistral 3 batched examples, one of which was inden...
Action items
- → Audit logs, W&B/Trackio tables, output_dir parquet files, and any Hub dataset written via log_completions_hub_repo fo... huggingface/trl [immediate]