🤗 PEFT welcomes new merging methods
PEFT adds on-the-fly merging methods for LoRA adapters through add_weighted_adapter(): concatenation (cat), linear/task arithmetic, SVD, TIES, DARE variants and magnitude pruning. Each method's math is laid out along with its tradeoffs. cat gives exact weighted merging and supports differing ranks. linear requires equal ranks. svd lets you choose the output rank but needs a lot of GPU memory. TIES and DARE use pruning, rescaling and majority-sign masks to reduce interference. Worked examples merge LLM adapters, such as Hinglish plus mental-health to combine both capabilities, and SDXL style LoRAs in Diffusers by wrapping them as PeftModels.
Related posts
- Beyond LoRA: Can you beat the most popular fine-tuning technique?
Hugging Face mediumAdeptLoRA accounts for roughly 95–98% of PEFT usage across Hugging Face Hub model cards and image-generation checkpoints, but controlled benchmarks in the PEFT library show it is often not the best tradeoff. On a MetaMathQA/GSM8K fine-tune of Llama-3.2-3B, rs-LoRA (53.2%, 22.6 GB) sits on the accuracy–memory Pareto frontier alongside BEFT (32.9%, 20.2 GB) and Lily (54.9%, 25.6 GB), while vanilla LoRA (48.1%, 22.5 GB) is dominated. On a FLUX.2-klein-base-4B image concept-learning benchmark, OFT strictly beats LoRA on both DINO similarity and VRAM. To work around downstream tools like vLLM that only load LoRA, PEFT can now convert some other adapters to LoRA with near-identical scores, so switching techniques is mostly a matter of changing one config.
- Parameter-Efficient Fine-Tuning using 🤗 PEFT
Hugging Face mediumAdeptHugging Face's PEFT library brings parameter-efficient fine-tuning methods (LoRA, Prefix Tuning, Prompt Tuning, P-Tuning) to Transformers and Accelerate. Most pretrained weights stay frozen and only a small set of extra parameters is trained, which gives performance comparable to full fine-tuning at a fraction of the compute and storage cost. A LoRA config on mt0-large trains about 0.19% of the parameters, and the saved adapters are only a few MB (19MB for T0_3B) instead of 40GB per-task checkpoints. Example use cases include tuning T0_3B on 11GB consumer GPUs with DeepSpeed offload, INT8 tuning of OPT-6.7b in Colab with bitsandbytes, and Stable Diffusion Dreambooth, plus code for training, saving and loading adapters.
- LoRA Explained: Faster, More Efficient Fine-Tuning with Docker
Docker mediumAdeptGemma 3 270M can be specialized into a compact PII-masking assistant using LoRA, which freezes the base weights and trains only small low-rank adapters, cutting compute and memory needs while avoiding catastrophic forgetting. The walkthrough covers formatting supervised examples with the model's chat template so training data matches inference input, configuring PEFT adapters (r=16, alpha=32 on q_proj/v_proj), training with TRL's SFTConfig via Unsloth, and merging adapters into a standalone 16-bit checkpoint. The merged model can then be packaged and shared through Docker Model Runner and Docker Hub.
- Together AI expands fine-tuning service with more models, live metrics, and finer controls
Together AI mediumAdeptTogether Fine-Tuning adds support for new open-weight models (GLM-5.3, Kimi K2.7, Qwen 3.5/3.6/3.8, Gemma 4, DeepSeek-V4-Flash), live per-step metrics via API, CLI and dashboard, and new training controls. These include LoRA on MoE expert layers, early stopping with refunds, and gradient accumulation for arbitrary batch sizes. In an invented-facts test, expert-layer LoRA recalled up to 89% of new knowledge versus 15% for attention-only adapters, and it kept routed experts from falling out of use. Data tooling adds tokenized dataset previews, per-example sample weights, pre-flight JSONL validation and packing controls, alongside price cuts of 30–70%.
- Meta’s Generative Ads Model (GEM): Scaling the Central Model and Compute Engine for Frontier Ads AI
Meta Engineering hardMasterMeta's 2026 GEM replaces per-surface ads ranking models with a single central recommendation foundation model trained across Facebook, Instagram, Reels and deep-funnel conversion objectives, reporting 18.9% conversion and 12% CTR gains. Its new Kunlun architecture uses block-sparse attention, a GDPA kernel that unifies attention-like ops, MoE-style cross interaction with expert parallelism, component skipping (43% fewer FLOPs) and unified user sequences. Together these support 2.5x model complexity and an LLM-like scaling law, with prediction quality following a power law in sequence length. Intelligence reaches latency-bound vertical models through LoopFM precomputed structured representations, which double transfer effectiveness over plain distillation, and through Solaris speculative precomputation of user-ad embeddings with hierarchical fallback. Custom low-precision kernels and 5D parallelism reach 20-25% MFU at 4x the training FLOPs.