The Wire · Showcase
DIFFUSERS FIXES KOHYA LORA COMPATIBILITY BUG BLOCKING MODEL LOADING
By RepoJournal · Filed · About Hugging Face
Kohya-format LoRA weights for conv_in, conv_out, and time_embedding layers were silently failing to load in diffusers, now fixed.
The diffusers library was dropping Kohya-format UNet LoRA keys on three critical top-level submodules [1], causing them to be reported as unexpected rather than applied to the model. This affected anyone fine-tuning these layers with Kohya-ss tooling and trying to load checkpoints into diffusers. The fix adds proper key conversion mapping so lora_unet_conv_in and similar patterns now correctly map to diffusers naming conventions [2]. Meanwhile on the transformers side, auto-mappings registration for remote code is getting fixed [3] to handle model loading edge cases that surfaced in earlier patches. The transformers team also hardened device pinning in GDN mixer layers [4], preventing unexpected cuda:0 allocation when target devices were specified elsewhere. Swift-transformers added Sendable conformance to Hub.Repo and Hub.RepoType [5], unblocking Swift 6 strict concurrency checks for anyone caching or passing these types across task boundaries.
Action items
- → If using Kohya LoRA fine-tunes with diffusers, pull the latest version to restore conv_in/conv_out/time_embedding loading huggingface/diffusers [immediate]
- → Review transformers remote code loading paths if you're using custom model implementations huggingface/transformers [plan]
- → Swift developers: update swift-transformers to use Repo in concurrent contexts without warnings huggingface/swift-transformers [plan]
References
- [1] Fix Kohya UNet LoRA key conversion for conv_in/conv_out/time_embedding (#14006) huggingface/diffusers
- [2] Fix Kohya UNet LoRA key conversion for conv_in/conv_out/time_embedding ↗ huggingface/diffusers
- [3] Fix auto-mappings registration for remote code & fixes a few custom code issues ↗ huggingface/transformers
- [4] Don't pin the gated delta net norm to `cuda:0` with a hardcoded device (#46817) huggingface/transformers
- [5] Add Sendable conformance to Hub.Repo and Hub.RepoType (#374) huggingface/swift-transformers
FAQ
- What changed in Hugging Face on June 29, 2026?
- Kohya-format LoRA weights for conv_in, conv_out, and time_embedding layers were silently failing to load in diffusers, now fixed.
- What should Hugging Face teams do about it?
- If using Kohya LoRA fine-tunes with diffusers, pull the latest version to restore conv_in/conv_out/time_embedding loading • Review transformers remote code loading paths if you're using custom model implementations • Swift developers: update swift-transformers to use Repo in concurrent contexts without warnings
- Which Hugging Face repositories shipped on June 29, 2026?
- huggingface/diffusers, huggingface/transformers, huggingface/swift-transformers