Implement a LoRA-wrapped linear layer (frozen WW ++ trainable BAB\cdot A scaled by $

SFT, Instruction Tuning & PEFT2 / 6

Chapter 112 / 6

SFT, Instruction Tuning & PEFT

Implement a LoRA-wrapped linear layer (frozen WW ++ trainable BAB\cdot A scaled by $

Medium

Implement a LoRA-wrapped linear layer (frozen WW ++ trainable BAB\cdot A scaled by α/r\alpha/r). [HuggingFace]

Target interface
class LoRALinear

Implement the function/class skeleton in the editor. Any correct approach is accepted.

Hints0 / 2
Reference solution
Your own code stays in the editor.