Adaptationcore
LoRA
Fine-tune by learning small low-rank matrices next to frozen weights.
What it is and why it exists
Instead of updating a d×d weight matrix W, LoRA learns W + B·A where A is r×d and B is d×r with small rank r (e.g. 8–64). Trainable parameters drop by orders of magnitude, memory drops, and adapters are small files you can swap per customer or task on one base model.
Quick prototype
PEFT LoRA on attention projections with r=16.
In production, at scale
Tune rank and target modules on evals, merge adapters for latency or serve many adapters on one base (multi-LoRA serving), version adapters per tenant.
Vendors and tools
| Hugging Face PEFT | LoRA, QLoRA and friends |
|---|---|
| vLLM / LoRAX | Serving many LoRA adapters on one base |
| Unsloth | Fast LoRA fine-tuning |
On AWS: SageMaker with PEFT; Bedrock custom model import for fine-tuned open-weight models.
How it fails
- Rank too small for the task
- Adapter trained on one base version applied to another
What the interviewer asks next
LoRA parameters for one 4096×4096 matrix at r=16?
A: 16×4096 + B: 4096×16 = 131,072, vs 16.8M for the full matrix — about 0.8%.