Low-Rank Adaptation
Low-Rank Adaptation (LoRA)
πOne-line summary
An efficient fine-tuning method that adjusts only a small set of low-rank matrices instead of all parameters.
π‘Easy explanation
A fine-tuning trick that adjusts only a tiny fraction of the model's parameters. It needs so little GPU memory that even individuals can do it.
β¨Example
μ 체 vs LoRA νμΈνλ
π© = μ‘°μ μμ (μ 체μ ~1%)
β‘Vibe coding prompt examples
Write code for LoRA fine-tuning a Llama-family model with PEFT. Also recommend r and alpha values for customer support conversation data.
I only have 24GB of GPU memory. Summarize the settings for fine-tuning a 7B model with QLoRA and the expected training time.
Design a serving setup that swaps a different LoRA adapter per customer on top of a single base model.
Try these prompts in your AI coding assistant!