Skip to content
module

tuners

1 members
lucid.peft.tuners

lucid.peft.tuners — one sub-package per parameter-efficient method, 46 in all.

A method is a config class, a tuner (the model-level host that injects, switches, merges and saves its adapters) and, for the methods that adapt weights, the layer types that wrap the modules it targets. Each sub-package holds those layer types together with the method's config and tuner, registered by PeftType on import; the configs and tuners are also exported from lucid.peft, which is where get_peft_model and PeftModel.from_pretrained live. The methods, by family:

  • LoRA family — a low-rank update beside each frozen weight: lora (LoRA, with DoRA, rsLoRA and PiSSA / OLoRA starts) and adalora (AdaLoRA, rank allocated per layer during training).
  • Orthogonal family — a rotation of each layer's input space instead of an addition to its weight: oft (block-diagonal Cayley rotations), boft (their butterfly factorisation) and hra (a chain of Householder reflections).
  • LyCORIS family — a weight-shaped update from a structured factorisation: loha (a Hadamard product of low-rank products) and lokr (a Kronecker product).
  • Prompt learning — an input learned instead of a weight, with no layer added to the model: prompt_tuning (virtual tokens in front of the embeddings), prefix_tuning (virtual keys and values in every attention layer), p_tuning (tokens an MLP or LSTM produces), multitask_prompt_tuning (one prompt shared across tasks, scaled per task) and cpt (a prompt of in-context examples with a bounded learned offset and its own loss).
  • Shared-table tuners — one set of tensors for the whole model, held once by the tuner, with a few parameters per layer: vera (shared random projections, two vectors per layer), randlora (shared random bases, a full-rank update) and vblora (a shared vector bank).
  • Structured and sparse updates — a weight update with a fixed structure other than low rank: fourierft (a few frequency coefficients), c3a (block-circulant blocks), miss (shared matrix shards), bone (the method MiSS replaced, kept to read old adapter files) and shira (a sparse subset of the weight itself).
  • Routing and mixing — several low-rank adapters combined per task or per token: poly (low-rank skills mixed by a per-task router) and xlora (LoRA experts weighed per token by a classifier on the hidden states).
  • Adaption prompts — adaption_prompt (LLaMA-Adapter): learned prompts the top attention layers attend to through a zero-initialised gate.
  • Scaling and selective tuning — a small part of the model itself: ia3 (a rescaling vector per layer), ln_tuning (a trainable copy of each chosen normalisation layer) and trainable_tokens (a few rows of an embedding table).

Nineteen more methods are full tuners like the ones above, grouped by the form of their update: delora, gralora, hira, glora, deft and peanut (a weight update of low-rank or projection form), unilora, pvera, tinylora and lily (adapters read out of shared banks), road, psoft, osf and frod (orthogonal and spectral updates), supertuning, waveft, beft and cartridge (sparse, wavelet, bias and key-value updates) and adamss (subspaces of the weight's SVD). shadow is refused for good: its config reads and writes, but the method needs the base model's decoder loop and a second backbone beside it, so building it raises NotImplementedError.

MixedModel is the host of a model that holds adapters of several of these methods at once, their layers stacked on each module; only the methods declared mixed=True may take part.

The modules whose names begin with an underscore here (_base, _lycoris, _orthogonal, _shared, _prompt …) are the machinery the methods share, not part of the public surface.

Guides

LoRA family

A low-rank update learned beside each frozen weight, the variant that moves rank between layers while it trains, and the methods that bound it (DeLoRA), grid it (GraLoRA), correct the bias too (GLoRA), modulate the weight with it (HiRA), project a subspace out (DEFT), generate it from the weight (PEANuT) or cluster the SVD into subspaces (AdaMSS).

family

LoRA

30 memberslucid.peft.tuners.lora

Hu, Edward J., et al. "LoRA: Low-Rank Adaptation of Large Language Models." [arXiv:2106.09685](https://arxiv.org/abs/2106.09685), 2021.

EVA (Paischer et al., 2024, arXiv:2410.07170) runs an incremental SVD over calibration activations to redistribute the LoRA rank budget across layers according to their explained variance ratios and initialise AA from the top right-singular vectors.

family

AdaLoRA

6 memberslucid.peft.tuners.adalora

Zhang, Qingru, et al. "Adaptive Budget Allocation for Parameter-Efficient Fine-Tuning." [arXiv:2303.10512](https://arxiv.org/abs/2303.10512), 2023.

AdaLoRA (Zhang et al., 2023, arXiv:2303.10512) writes the update of a targeted nn.Linear (or nn.Conv2d) as a truncated SVD,

family

DeLoRA

4 memberslucid.peft.tuners.delora

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 λ\lambda,

family

GraLoRA

4 memberslucid.peft.tuners.gralora

Jung, Yeonjoon, et al. "GraLoRA: Granular Low-Rank Adaptation for Parameter-Efficient Fine-Tuning." [arXiv:2505.20355](https://arxiv.org/abs/2505.20355), 2025.

GraLoRA (Jung et al., 2025, arXiv:2505.20355 — Granular Low-Rank Adaptation) cuts a weight into a gralora_k by gralora_k grid of sub-blocks and gives every block its own low-rank pair of rank r / gralora_k, with information exchanged between the blocks. The parameter count is that of a rank-r LoRA, while the update can reach about gralora_k times its effective rank. With hybrid_r > 0 a plain LoRA of that rank is added (Hybrid GraLoRA); the update is scaled by α/(r+hybrid_r)\alpha / (r + \text{hybrid\_r}).

family

HiRA

8 memberslucid.peft.tuners.hira

Huang, Qiushi, et al. "HiRA: Parameter-Efficient Hadamard High-Rank Adaptation for Large Language Models." ICLR, 2025.

HiRA (Huang et al., 2025, ICLR — Hadamard High-Rank Adaptation) multiplies the frozen weight elementwise by a low-rank matrix,

family

GLoRA

4 memberslucid.peft.tuners.glora

Chavan, Arnav, et al. "One-for-All: Generalized LoRA for Parameter-Efficient Fine-tuning." [arXiv:2306.07967](https://arxiv.org/abs/2306.07967), 2023.

GLoRA (Chavan et al., 2023, arXiv:2306.07967 — Generalized LoRA) corrects the weight and the bias of a layer with learned terms,

family

DEFT

4 memberslucid.peft.tuners.deft

Kumar, Komal, et al. "DEFT: Decompositional Efficient Fine-Tuning for Text-to-Image Models." [arXiv:2509.22793](https://arxiv.org/abs/2509.22793), 2025.

DEFT (Kumar et al., 2025, arXiv:2509.22793 — Decompositional Efficient Fine-Tuning) injects knowledge through a residual projection. For a frozen weight WW it learns a direction matrix P∈Rdout×rP \in \mathbb{R}^{d_{out} \times r} and an injection matrix R∈Rr×dinR \in \mathbb{R}^{r \times d_{in}} and uses

family

PEANuT

4 memberslucid.peft.tuners.peanut

Zhong, Yibo, et al. "PEANuT: Parameter-Efficient Adaptation with Weight-aware Neural Tweakers." [arXiv:2410.01870](https://arxiv.org/abs/2410.01870), 2024.

PEANuT (Zhong et al., 2024, arXiv:2410.01870, section 3.3; later versions of the paper call it Neat) writes the update as a function of the frozen weight, W′=W+f(W;θ)W' = W + f(W; \theta), where ff is a small trained network, not a fixed low-rank product. At depth zero f(W)=s σ(W⊤A⊤) Bf(W) = s\,\sigma(W^\top A^\top)\,B with A∈Rr×doutA \in \mathbb{R}^{r \times d_{out}} and B∈Rdout×rB \in \mathbb{R}^{d_{out} \times r} (transposed back to the shape of WW); each unit of depth puts an encoder layer r→rr \to r before and a decoder layer after the middle, joined by residuals (appendix F), with the non-linearity act_fn between all of them. BB is zero when training begins, which makes the first update zero too.

family

AdaMSS

5 memberslucid.peft.tuners.adamss

Zheng, Jingjing, et al. "AdaMSS: Adaptive Multi-Subspace Approach for Parameter-Efficient Fine-Tuning." NeurIPS, 2025.

AdaMSS (Zheng et al., 2025, NeurIPS — Adaptive Multi-Subspace Approach for Parameter-Efficient Fine-Tuning) takes the SVD of each weight (joined to its bias as one more column), clusters the rows of its top-r left singular directions into num_subspaces subspaces, and learns an independent rank-subspace_rank update inside each one while the weight stays frozen. With use_asa, an adaptive allocation freezes the less important subspaces during training, down to about asa_target_subspaces trainable ones in all.

Orthogonal family

A rotation of each layer's input space instead of an addition to its weight: block-diagonal Cayley rotations (OFT), their butterfly factorisation (BOFT) and a chain of Householder reflections (HRA); and, newer, rotations of output pairs (RoAd), of the principal subspace (PSOFT), a constrained fine-tune of the low singular directions (OSF) and a sparse rotation over a shared basis (FRoD).

family

OFT

5 memberslucid.peft.tuners.oft

Qiu, Zeju, et al. "Controlling Text-to-Image Diffusion by Orthogonal Finetuning." [arXiv:2306.07280](https://arxiv.org/abs/2306.07280), 2023.

OFT (Qiu et al., 2023, arXiv:2306.07280 — Orthogonal Finetuning) rotates the input space of each targeted layer instead of adding to its weight: y=(WR⊤)x+by = (W R^\top) x + b with RR block-diagonal, each block an orthogonal matrix (I−Q)(I+Q)−1(I - Q)(I + Q)^{-1} of a learned skew-symmetric QQ. A rotation keeps the pairwise angles between the weight's neurons, which is what OFT tunes while the weight's spectrum stays. The QQs start at zero, so the adapted model starts as the base; the rotation folds into the weight, so a merged model costs what the base does.

family

BOFT

5 memberslucid.peft.tuners.boft

Liu, Weiyang, et al. "Parameter-Efficient Orthogonal Finetuning via Butterfly Factorization." [arXiv:2311.06243](https://arxiv.org/abs/2311.06243), 2023.

BOFT (Liu et al., 2023, arXiv:2311.06243 — Butterfly Orthogonal Finetuning) factors the orthogonal matrix OFT builds block-diagonally into a product of mm sparse orthogonal factors in butterfly order, so a small number of parameters spans a dense rotation of the input space:

family

HRA

5 memberslucid.peft.tuners.hra

Yuan, Shen, et al. "Bridging the Gap between Low-rank and Orthogonal Adaptation via Householder Reflection Adaptation." [arXiv:2405.17484](https://arxiv.org/abs/2405.17484), 2024.

HRA (Yuan et al., 2024, arXiv:2405.17484 — Householder Reflection Adaptation) multiplies each targeted weight from the right by a chain of rr Householder reflections,

family

RoAd

4 memberslucid.peft.tuners.road

Liao, Baohao, et al. "3-in-1: 2D Rotary Adaptation for Efficient Finetuning, Efficient Batching and Composability." [arXiv:2409.00119](https://arxiv.org/abs/2409.00119), 2024.

RoAd (Liao and Monz, 2024, arXiv:2409.00119 — 2D Rotary Adaptation) pairs the output features of a layer into 2-D vectors and rotates and scales each pair (section 3.2, Eq. 3),

family

PSOFT

5 memberslucid.peft.tuners.psoft

Wu, Fei, et al. "Efficient Orthogonal Fine-Tuning with Principal Subspace Adaptation." [arXiv:2505.11235](https://arxiv.org/abs/2505.11235), 2025.

PSOFT (Wu et al., 2025, arXiv:2505.11235 — Efficient Orthogonal Fine-Tuning with Principal Subspace Adaptation, section 4) rotates a weight inside its principal subspace only. An SVD of the weight gives its top-r directions as frozen factors AA and BB, and only an r×rr \times r matrix RR between them is trained:

family

OSF

4 memberslucid.peft.tuners.osf

Nayak, Nikhil Shivakumar, et al. "Sculpting Subspaces: Constrained Full Fine-Tuning in LLMs for Continual Learning." [arXiv:2504.07097](https://arxiv.org/abs/2504.07097), 2025.

OSF (Orthogonal Subspace Fine-tuning; Nayak et al., 2025, arXiv:2504.07097 — Sculpting Subspaces, section 3) is constrained full fine-tuning for continual learning. It takes the SVD of each weight, freezes the top effective_rank singular directions, which carry what the model already knows, and trains the rest, with gradients projected orthogonally to the frozen directions so that a new task does not overwrite an old one. The trainable rank is min(weight.shape) - effective_rank; no parameter is added to the model.

family

FRoD

4 memberslucid.peft.tuners.frod

Wan, Guoan, et al. "FRoD: Full-Rank Efficient Fine-Tuning with Rotational Degrees for Fast Convergence." [arXiv:2512.23485](https://arxiv.org/abs/2512.23485), 2025.

FRoD (Wan et al., 2025, arXiv:2512.23485 — Full-Rank Efficient Fine-Tuning with Rotational Degrees, Eq. 6-8) reaches a full-rank update with few parameters. A basis shared by the layers of one kind is built from the base weights, and a sparse trainable rotation matrix, with a fraction sparse_rate of its off-diagonal entries free, turns that basis into the weight update. The sparsity pattern is drawn from projection_prng_key.

LyCORIS family

A weight-shaped update built from a structured factorisation: a Hadamard product of low-rank products (LoHa) or a Kronecker product (LoKr).

Prompt learning

An input learned instead of a weight, with no layer added to the model: virtual tokens in front of the embeddings, virtual keys and values in every attention layer, tokens an encoder produces, or one prompt shared across tasks, or a prompt of in-context examples with a bounded learned offset (CPT). A Cartridge, a trained key-value cache that stands in for a long document, is listed here too, with the utilities that start one from a text and join several.

family

Prompt Tuning

4 memberslucid.peft.tuners.prompt_tuning

Lester, Brian, et al. "The Power of Scale for Parameter-Efficient Prompt Tuning." [arXiv:2104.08691](https://arxiv.org/abs/2104.08691), 2021.

Prompt tuning (Lester et al., 2021, arXiv:2104.08691) freezes the model and learns num_virtual_tokens embedding vectors that are put in front of the input embeddings: the only trained parameters are num_virtual_tokens * token_dim numbers, and a task is a file of that size. An encoder-decoder model gets them in front of the encoder's input.

family

Prefix Tuning

3 memberslucid.peft.tuners.prefix_tuning

Li, Xiang Lisa, and Percy Liang. "Prefix-Tuning: Optimizing Continuous Prompts for Generation." [arXiv:2101.00190](https://arxiv.org/abs/2101.00190), 2021.

Prefix tuning (Li and Liang, 2021, arXiv:2101.00190) learns num_virtual_tokens key and value vectors for every attention layer and puts them in front of that layer's own, so the whole network can attend to them: num_virtual_tokens * 2 * num_layers * token_dim numbers. With prefix_projection the vectors are produced from a smaller embedding by a two-layer MLP while training, which the paper found steadier; the file still stores the finished vectors. An encoder-decoder model gets the prefix on the decoder's self-attention, so num_layers left out is the decoder's layer count when the model's config declares one (num_decoder_layers).

family

P-Tuning

4 memberslucid.peft.tuners.p_tuning

Liu, Xiao, et al. "GPT Understands, Too." [arXiv:2103.10385](https://arxiv.org/abs/2103.10385), 2021.

P-tuning (Liu et al., 2021, arXiv:2103.10385) puts num_virtual_tokens learned embeddings in front of the input like prompt tuning, but produces them through an encoder — an MLP, or a bidirectional LSTM followed by one — so the tokens depend on each other. The encoder is only used while training: the file stores the prompt it produced.

family

Multitask Prompt Tuning

4 memberslucid.peft.tuners.multitask_prompt_tuning

Wang, Zhen, et al. "Multitask Prompt Tuning Enables Parameter-Efficient Transfer Learning." [arXiv:2303.02861](https://arxiv.org/abs/2303.02861), 2023.

Multitask prompt tuning (Wang et al., 2023, arXiv:2303.02861) learns one prompt shared by every task and, per task, a low-rank factor pair uk∈RL×ru_k \in \mathbb{R}^{L \times r}, vk∈Rr×dv_k \in \mathbb{R}^{r \times d}. Task kk's prompt is the shared one multiplied elementwise by ukvku_k v_k, so a new task adds r (L+d)r\,(L + d) numbers, and a prompt trained on source tasks can start a target task (prompt_tuning_init and prompt_tuning_init_state_dict_path). Which task each row of a batch is comes from the task_ids argument of the model's call.

family

CPT

3 memberslucid.peft.tuners.cpt

Blau, Tsachi, et al. "Context-Aware Prompt Tuning: Advancing In-Context Learning with Adversarial Methods." [arXiv:2410.17222](https://arxiv.org/abs/2410.17222), 2024.

CPT (Blau et al., 2024, arXiv:2410.17222) tunes a prompt made of in-context examples: the prompt's tokens start as the embeddings of cpt_token_ids and a trainable delta is added to each. Each token has a type (cpt_tokens_type_mask, read modulo 4: 1 an input template, 2 an input, 3 an output template, 0 or 4 an output or padding) that says which deltas train (types 1-3 only) and how far a delta may move: after every step its norm is projected back onto a ball of radius opt_projection_epsilon (inputs) or opt_projection_format_epsilon (templates), scaled by d/2048\sqrt{d/2048}. The loss covers the output tokens of the prompt and of the batch, optionally down-weighted for earlier examples (opt_weighted_loss_type="decay").

family

Cartridge

7 memberslucid.peft.tuners.cartridge

Eyuboglu, Sabri, et al. "Cartridges: Lightweight and General-Purpose Long Context Representations via Self-Study." [arXiv:2506.06266](https://arxiv.org/abs/2506.06266), 2025.

A Cartridge (Eyuboglu et al., 2025, arXiv:2506.06266 — Cartridges: Lightweight and general-purpose long context representations via self-study) is a trained key-value cache. num_virtual_tokens learned key/value pairs per attention layer are put in front of the model's cache, in place of a long document the model would otherwise read at every query. The first num_frozen_tokens of them stay fixed; the paper recommends freezing one as an attention sink. The cache is laid out as in prefix tuning, and starting it from text or from a past cache is a separate step.

Shared-table tuners

One set of tensors for the whole model, such as random projections or a vector bank, held once by the tuner; each layer adds only a few parameters of its own. Uni-LoRA, PVeRA, TinyLoRA and Lily read their adapters out of such shared banks.

family

VeRA

4 memberslucid.peft.tuners.vera

Kopiczko, Dawid J., et al. "VeRA: Vector-based Random Matrix Adaptation." [arXiv:2310.11454](https://arxiv.org/abs/2310.11454), 2023.

VeRA (Kopiczko et al., 2023, arXiv:2310.11454 — Vector-based Random Matrix Adaptation) freezes the model and the low-rank pair: one random matrix A∈Rr×dinA \in \mathbb{R}^{r \times d_{in}} and one B∈Rdout×rB \in \mathbb{R}^{d_{out} \times r} are drawn once and shared by every targeted layer (sliced to its size), and a layer learns only two vectors,

family

RandLoRA

4 memberslucid.peft.tuners.randlora

Albert, Paul, et al. "RandLoRA: Full-rank Parameter-Efficient Fine-Tuning of Large Models." [arXiv:2502.00987](https://arxiv.org/abs/2502.00987), 2025.

RandLoRA (Albert et al., 2025, arXiv:2502.00987) reaches a full-rank update with few parameters: instead of one trainable low-rank pair it sums n=⌈min⁡(dout,din)/r⌉n = \lceil \min(d_{out}, d_{in}) / r \rceil frozen random rank-rr pairs (Bi,Ai)(B_i, A_i), drawn once and shared by every targeted layer, and trains only a diagonal scale on each side,

family

VB-LoRA

4 memberslucid.peft.tuners.vblora

Li, Yang, et al. "VB-LoRA: Extreme Parameter Efficient Fine-Tuning with Vector Banks." [arXiv:2405.15179](https://arxiv.org/abs/2405.15179), 2024.

VB-LoRA (Li et al., 2024, arXiv:2405.15179 — Vector Bank LoRA) builds every low-rank factor of every layer out of one shared vector bank V∈RN×bV \in \mathbb{R}^{N \times b} of NN vectors of length bb. The factors A∈Rr×dinA \in \mathbb{R}^{r \times d_{in}} and B∈Rdout×rB \in \mathbb{R}^{d_{out} \times r} are cut into sub-vectors of length bb; each sub-vector is a softmax-weighted mix of the top-kk bank vectors picked by learned logits,

family

Uni-LoRA

4 memberslucid.peft.tuners.unilora

Li, Kaiyang, et al. "Uni-LoRA: One Vector Is All You Need." [arXiv:2506.00799](https://arxiv.org/abs/2506.00799), 2025.

Uni-LoRA (Li et al., 2025, arXiv:2506.00799 — One Vector Is All You Need) reads every LoRA factor of every adapted layer out of a single trainable vector θd\theta_d of theta_d_length entries. A fixed projection, drawn once from proj_seed, assigns each entry of the flattened factors one scaled entry of θd\theta_d, so the adapter of the whole model is theta_d_length numbers.

family

PVeRA

4 memberslucid.peft.tuners.pvera

Fillioux, Leo, et al. "PVeRA: Probabilistic Vector-Based Random Matrix Adaptation." [arXiv:2512.07703](https://arxiv.org/abs/2512.07703), 2025.

PVeRA (Fillioux et al., 2025, arXiv:2512.07703 — Probabilistic Vector-Based Random Matrix Adaptation) makes VeRA probabilistic. As in VeRA, two frozen random projections shared by all layers and two learned vectors per layer give the update; but the rank-r latent between them is the mean and log-variance of a Gaussian, sampled in training in the manner of a variational encoder. At inference the learned mean is used unless sample_at_inference is set.

family

TinyLoRA

5 memberslucid.peft.tuners.tinylora

Morris, John X., et al. "Learning to Reason in 13 Parameters." [arXiv:2602.04118](https://arxiv.org/abs/2602.04118), 2026.

TinyLoRA (Morris et al., 2026, arXiv:2602.04118 — Learning to Reason in 13 Parameters) freezes the rank-r SVD of each adapted weight, W≈UΣV⊤W \approx U \Sigma V^\top, and trains only a vector vv of u numbers. Fixed random tensors PiP_i project it into an r×rr \times r matrix R=∑iviPiR = \sum_i v_i P_i, and the update is ΔW=UΣRV⊤\Delta W = U \Sigma R V^\top. weight_tying between 0 and 1 sets how much of vv the modules share; at 1 the whole model learns u numbers.

family

Lily

4 memberslucid.peft.tuners.lily

Zhong, Yibo, et al. "Low-Rank Interconnected Adaptation across Layers." [arXiv:2407.09946](https://arxiv.org/abs/2407.09946), 2024.

Lily (Zhong et al., 2024, arXiv:2407.09946 — Low-Rank Interconnected Adaptation across Layers) breaks LoRA's pairing of a down- and an up-projection to one layer. Every stride_A consecutive layers share one low-rank projection AA; num_B projections BB are shared by all layers, and a learned router mixes them with softmax weights into one combined BB per layer. The layer adds scaling⋅A Bcombined\text{scaling} \cdot A\,B_{\text{combined}} to its output, so a layer's update draws on adapters other layers train too.

Structured and sparse updates

A weight update with a fixed structure other than low rank: a few frequency-domain coefficients (FourierFT), block-circulant blocks (C3A), shared shards (MiSS, and Bone, the method it replaced) or a sparse subset of the weight itself (SHiRA). Super-Tuning (the entries of largest magnitude, with an optional LoRA beside them) and WaveFT (a few coefficients of an inverse wavelet transform) are here too.

family

FourierFT

4 memberslucid.peft.tuners.fourierft

Gao, Ziqi, et al. "Parameter-Efficient Fine-Tuning with Discrete Fourier Transform." [arXiv:2405.03003](https://arxiv.org/abs/2405.03003), 2024.

FourierFT (Gao et al., 2024, arXiv:2405.03003) learns the weight update in the frequency domain: a handful of coefficients c1…cnc_1 \dots c_n of a dout×dind_{out} \times d_{in} spectrum, at fixed pseudo-random locations, and the inverse 2-D Fourier transform of that sparse spectrum is the update,

family

C3A

4 memberslucid.peft.tuners.c3a

Chen, Aochuan, et al. "Parameter-Efficient Fine-Tuning via Circular Convolution." [arXiv:2407.19342](https://arxiv.org/abs/2407.19342), 2024.

C3A (Chen et al., 2024, arXiv:2407.19342 — Circular Convolution Adaptation) makes the weight update a block-circulant matrix: the dout×dind_{out} \times d_{in} update is cut into b×bb \times b blocks and each block is a circulant, fixed by its first row — a length-bb kernel. The layer trains doutdin/bd_{out} d_{in} / b numbers (bb kernels per block row and column), which is high rank, and applies them by FFT without building the matrix,

family

MiSS

4 memberslucid.peft.tuners.miss

Kang, Jiale, et al. [arXiv:2409.15371](https://arxiv.org/abs/2409.15371), 2024 (the paper that introduced Bone, revised as MiSS).

MiSS (Kang et al., 2024, arXiv:2409.15371 — Matrix Shard Sharing, the successor of Bone) learns a single (r, d_out) matrix SS per layer and adds it to the weight in shards: the input axis is cut into runs of rr columns, and every run of every output row receives the same rr-vector,

family

Bone

4 memberslucid.peft.tuners.bone

Kang, Jiale. [arXiv:2409.15371](https://arxiv.org/abs/2409.15371), 2024 (the paper that introduced Bone; MiSS is its successor).

Bone (Kang, 2024 — Block Affine) is the method MiSS (lucid.peft.MissConfig) renamed and extended; the reference library no longer ships it. It is kept here because adapter files written under the name still exist: a Bone adapter is a MiSS adapter of the balance (init_weights=True) or "bat" variant with the block stored as bone_block. New work should use MiSS.

family

SHiRA

5 memberslucid.peft.tuners.shira

Bhardwaj, Kartikeya, et al. "Sparse High Rank Adapters." [arXiv:2406.13175](https://arxiv.org/abs/2406.13175), 2024.

SHiRA (Bhardwaj et al., 2024, arXiv:2406.13175 — Sparse High Rank Adapters) trains a sparse subset of the weight itself: a fixed mask picks r (dout+din)r\,(d_{out}+d_{in}) entries of each targeted nn.Linear weight (as many parameters as a rank-rr LoRA pair has, hence the name of r), and the adapter is the values of those entries,

family

Super-Tuning

4 memberslucid.peft.tuners.supertuning

Ilin, Ivan, et al. "Super-Tuning: From Activation-Aware Pruning to Sparse Fine-Tuning." [arXiv:2607.09287](https://arxiv.org/abs/2607.09287), 2026.

Super-Tuning (Ilin et al., 2026, arXiv:2607.09287 — From Activation-Aware Pruning to Sparse Fine-Tuning) freezes the base weight and trains a sparse support of its entries: the 1 - sparsity fraction with the largest magnitude (select_top), as an additive update that starts at zero. With r set, a LoRA pair is added beside it (the paper's Supra hybrid).

family

WaveFT

4 memberslucid.peft.tuners.waveft

Bilican, Ahmet, et al. "Exploring Sparsity for Parameter Efficient Fine Tuning Using Wavelets for Vision." [arXiv:2505.12532](https://arxiv.org/abs/2505.12532), 2025.

WaveFT (Bilican et al., 2025, arXiv:2505.12532 — Exploring Sparsity for Parameter Efficient Fine Tuning Using Wavelets) learns n_frequency coefficients of the weight update in a discrete wavelet basis, at random positions of the coefficient matrix, and rebuilds the update by an inverse 2-D wavelet transform of the chosen wavelet_family. The update is multiplied by scaling and starts at zero. The number of coefficients, not a rank, sets the parameter count of a layer.

Routing and mixing

Several low-rank adapters combined per task or per token: skills mixed by a learned per-task router (Poly, Multi-Head Routing), or trained LoRA experts weighed per token by a classifier on the hidden states (X-LoRA).

family

Poly

4 memberslucid.peft.tuners.poly

Ponti, Edoardo M., et al. "Combining Modular Skills in Multitask Learning." [arXiv:2202.13914](https://arxiv.org/abs/2202.13914), 2022.

Polytropon (Ponti et al., 2022, arXiv:2202.13914) gives each targeted layer n_skills low-rank adapters (skills) and a router that holds one learned logit vector per task; the layer's update for a task is the router-weighted mixture of the skills, y=Wx+1r x (∑smsAs)(∑smsBs)y = W x + \tfrac{1}{r}\,x\,(\sum_s m_s A_s)(\sum_s m_s B_s). Multi-Head Routing (Caccia et al., 2022, arXiv:2211.03831) splits every skill into n_splits blocks along the feature axis, each routed on its own: n_splits > 1. The weights mm are the sigmoid of the task's logits, normalised to sum to one — in training a relaxed Bernoulli sample of them instead, which makes the routing stochastic.

family

X-LoRA

3 memberslucid.peft.tuners.xlora

Buehler, Eric L., and Markus J. Buehler. "X-LoRA: Mixture of Low-Rank Adapter Experts, a Flexible Framework for Large Language Models with Applications in Protein Mechanics and Molecular Design." [arXiv:2402.07148](https://arxiv.org/abs/2402.07148), 2024.

X-LoRA (Buehler & Buehler, 2024, arXiv:2402.07148) keeps several trained LoRA adapters (the experts) and a small classifier on the base model's final hidden states that scales each expert per token: a scalings pass computes the hidden states with the experts held at a fixed value, the classifier turns them into one weight per expert (per adapted layer if layerwise_scalings), and the real pass adds each expert's update with its weight. Only the classifier trains unless use_trainable_adapters.

Adaption prompts

Learned prompts inside the model: the top attention layers of a decoder attend to them through a gate that starts at zero (LLaMA-Adapter).

Scaling and selective tuning

Methods that train a small part of the model itself: a learned rescaling vector per layer (IA3), a trainable copy of each chosen normalisation layer (LN tuning), a few rows of an embedding table (trainable tokens), or one bias added to the value projections (BEFT).

family

IA3

6 memberslucid.peft.tuners.ia3

Liu, Haokun, et al. "Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learning." [arXiv:2205.05638](https://arxiv.org/abs/2205.05638), 2022.

(IA)^3 (Liu et al., 2022, arXiv:2205.05638 — "Infused Adapter by Inhibiting and Amplifying Inner Activations") freezes the model and learns one vector ℓ\ell per targeted layer that rescales its output channels, y=ℓ⊙(Wx+b)y = \ell \odot (W x + b); for the feed-forward layers of a block it rescales the input instead, y=W(ℓ⊙x)+by = W (\ell \odot x) + b. The vector starts at ones, so the adapted model starts as the base, and it folds into the weight (and bias), so a merged model costs what the base does.

family

LN Tuning

3 memberslucid.peft.tuners.ln_tuning

Zhao, Bingchen, et al. "Tuning LayerNorm in Attention: Towards Efficient Multi-Modal LLM Finetuning." [arXiv:2312.11420](https://arxiv.org/abs/2312.11420), 2023.

LN tuning (Zhao et al., 2023, arXiv:2312.11420 — "Tuning LayerNorm in Attention") trains the normalisation layers of a model and nothing else: each targeted layer gets a copy of itself that trains while the original stays frozen. The method adds no tensor of its own, so it is a few dd parameters per layer; "merging" makes the trained copy the layer.

family

Trainable Tokens

5 memberslucid.peft.tuners.trainable_tokens

Trainable tokens re-train existing token embeddings, or the fresh ones a resized vocabulary added, without training the whole table: the listed rows are copied into a small parameter, the layer reads those rows from it instead of from the frozen table, and only the copy is trained and saved,

family

BEFT

4 memberslucid.peft.tuners.beft

Huang, Baichuan, et al. "BEFT: Bias-Efficient Fine-Tuning of Language Models in Low-Data Regimes." [arXiv:2509.15974](https://arxiv.org/abs/2509.15974), 2025.

BEFT (Huang et al., 2025, arXiv:2509.15974 — Bias-Efficient Fine-Tuning of Language Models in Low-Data Regimes) trains nothing but a bias added to chosen linear layers, the value projections by default: y=Wx+b+βy = W x + b + \beta with one learned vector β\beta of the layer's output width, zero at the start. It adds the fewest parameters of any method here.

Refused

A method whose config is read and written, so a file of it loads, but whose adapter is not built: ShadowPEFT needs the base model's decoder loop and a second backbone beside it.

Classes