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

Instruction Tuning & Efficient Fine-Tuning2 / 6

Chapter 112 / 6

Instruction Tuning & Efficient Fine-Tuning

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

Complete the starter code in the editor. Any correct approach is accepted.

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