$ the-wire · showcase
PEFT fixes empty adapter saves under wrapped FSDP, TRL adds a noise-robust DPO loss
By RepoJournal · Filed · About Hugging Face · Composed from the cited sources · methodology
The day's most consequential fix is in peft: trainers that wrap modules with checkpoint_wrapper or nested FSDP have been silently saving empty adapter state dicts, and TRL's DPOTrainer gains a loss correction for mislabeled preference pairs.
FIX Empty adapter state dict with nested FSDP or checkpoint_wrapper (#4108) huggingface/peft
FSDP and torch's checkpoint_wrapper add a level to named_modules() names while their state dict hooks strip it from keys; since the prefix-based key selection landed, only a leading _fsdp_wrapped_module was removed, so a wrapper further down made get_peft_model_state_dict() return nothing and save_pretrained() write an empty file. Any adapter trained under those wrappers without validating the ...
Add UDPO loss for noisy preferences to DPOTrainer huggingface/trl
DPOTrainer now accepts loss_type="udpo" for Unbiased DPO, the α-UDPO normalized form from the authors' ICML 2026 paper on alignment with noisy preferences; it corrects the DPO loss for labels flipped with probability ε. This is the DPOTrainer half, with the RewardTrainer counterpart split into a separate change.
ENH Add replace_lora_weights_pissa for 4-bit models huggingface/peft
replace_lora_weights_pissa initializes PiSSA on a model already loaded in bitsandbytes 4-bit by reading non-quantized weights from the safetensors file one layer at a time, so the full-precision model never has to fit in memory. The SVD and factor computation moved out of LoraLayer.pissa_init into a shared _pissa_decomposition helper.
[Modular] Add PAN 2 huggingface/diffusers
Modular Diffusers gets PAN 2, a 29B dual-stream multimodal diffusion transformer whose video and text streams join in attention, with PAN2ModularPipeline covering text-to-video and image-to-video on a Qwen3.5 text encoder and the Wan2.2 VAE. The timestep embedder and modulation run in float32 while the rest runs in bf16.
validate_pr: count tests uncollectable at base as fail-to-pass huggingface/Repo2RLEnv
A test module importing something the fix adds cannot be collected at the base commit, and pytest's default of stopping on that file-level error left those tests without a base status, so PRs were dropped as no_fail_to_pass. The pre-fix stage now sets --continue-on-collection-errors via PYTEST_ADDOPTS so the other files still run.
Draft updates for contribution/agent rules huggingface/transformers
Transformers drafts a contributor policy that stops policing agent-written versus human-written PRs, noting that "~100% of submitted code is agent" written; meanwhile bin/make run-mic now runs the model integration contracts from a checkout.
Action items