DeLoRA
4 memberslucid.peft.tuners.deloralucid.peft.tuners.delora — DeLoRA: a low-rank update whose strength is bounded apart from its direction.
DeLoRA (Bini et al., 2025, arXiv:2503.18225 — Decoupled Low-rank Adaptation) normalises each rank-one component of the LoRA update and scales the sum by a learned boundary and by the pretrained weight's column norms, so the direction of the update is learned apart from its strength and its norm cannot exceed . Pick it for a fine-tune that must stay close to the base model, with the distance a hyper-parameter, or for one that has to survive a high learning rate or a long run.
Where the reference library keeps them, so isinstance(m, DeloraLayer) and from lucid.peft.tuners.delora import DeloraConfig, Linear read as they do there. One layer type for
the one module the method adapts, nn.Linear. DeloraConfig and DeloraModel are here and
exported from lucid.peft. Importing the package registers the method (its config under
PeftType.DELORA, its tuner and layer), which is what makes get_peft_model and
PeftModel.from_pretrained know it.
Bini, Massimo, et al. "DeLoRA: Decoupling Angles and Strength in Low-rank Adaptation." [arXiv:2503.18225](https://arxiv.org/abs/2503.18225), 2025.
DeLoRA (Bini et al., 2025, arXiv:2503.18225 — Decoupled Low-rank Adaptation) normalises each rank-one component of the LoRA update and scales the sum by a learned boundary ,
Classes
DeloraConfig9 methodsHow lucid.peft.get_peft_model adapts a model with DeLoRA.
DeloraLayer20 methodsAdapter bookkeeping and the normalised update shared by the DeLoRA layers.
LinearAn nn.Linear with a DeLoRA update: .
DeloraModel15 methodsA model with DeLoRA layers in it, and the tools to take them out again.