Compare LoRA and Full Fine-Tuning for Adapting Llama to a Task
Last updated: November 29, 2026
Quick Overview
A team wants Llama to write better replies for business messaging on WhatsApp. Compare full fine-tuning with LoRA in terms of parameters, memory, quality, and serving, and recommend an approach.
Meta
November 29, 20260
0
0 solved
A team wants Llama to write better replies for business messaging on WhatsApp. Compare full fine-tuning with LoRA in terms of parameters, memory, quality, and serving, and recommend an approach.
Parameter-efficient fine-tuning is common across Meta product teams that adapt open Llama weights. The interviewer checks that you can explain how LoRA works mathematically, compute its parameter savings, and reason about multi-tenant serving.
What the Interviewer Expects
- Explain the low-rank update W + BA and which matrices it is applied to
- Compute trainable parameter counts for a concrete layer
- Compare optimizer memory for full fine-tuning and LoRA
- Discuss when LoRA underfits and full fine-tuning is worth it
- Explain serving many adapters on one base model
Key Topics to Cover
How to Approach This
- Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
- Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
- Feature engineering is often more impactful than model selection.
- Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
- Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
- How do you choose the rank r and the scaling alpha?
- What is QLoRA and what does it trade off?
- How do you avoid catastrophic forgetting of safety behaviour during fine-tuning?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Explore ML Interview PrepSample Answer
Clarify
The goal is a domain style (polite, concise, business replies), with maybe tens of thousands of curated examples. We might later want separate variants per region or per business type. Base model is a...
Approach
Compare on four axes: trainable parameters, GPU memory during training, achievable quality, and serving flexibility....