Fine-tuning & LoRA Questions with Answers

20 practice questions on Fine-tuning & LoRA (AI Engineering (LLM Apps)) with answers and step-by-step solutions. Try 10 samples below, then practise all 20 free in the AptiNest app.

Sample questions

Question 1Easy

Knowledge distillation trains:

  1. A smaller student model to imitate a larger teacher
  2. A tokenizer to imitate a vector database
  3. A larger model to imitate a smaller one
  4. A reranker to imitate BM25 exactly

Answer: A. A smaller student model to imitate a larger teacher

Explanation

Students learn from teacher outputs, giving cheaper models that keep much of the quality.

Step-by-step solution

  1. Knowledge distillation uses a bigger model as the teacher.
  2. The student model is smaller and learns from the teacher's output.
  3. This helps create a smaller model with good performance.
  4. So, it trains a smaller model to imitate a larger one.
  5. Final answer: A smaller student model to imitate a larger teacher.

Why the other options are wrong

  • B. A tokenizer is not trained to imitate a vector database; distillation trains a student model on teacher outputs.
  • C. Distillation makes the smaller model learn from the larger one, not the other way round.
  • D. A reranker imitating BM25 exactly is not distillation; the student learns from teacher model outputs.

Tip: Remember: Distillation is about making small models learn from big ones.

Question 2Easy

During fine-tuning, training loss keeps falling while validation loss starts rising. What does this indicate?

  1. Underfitting: train for many more epochs
  2. Perfect generalisation to new data
  3. A tokenizer bug in the validation set
  4. Overfitting: stop earlier or use more varied data

Answer: D. Overfitting: stop earlier or use more varied data

Explanation

Diverging train and validation loss is the classic overfitting signal.

Step-by-step solution

  1. Training loss falling shows model learns well from training data.
  2. Validation loss rising means model struggles with new data.
  3. This mismatch signals overfitting to training data.
  4. Overfitting requires stopping early or more varied data.
  5. Final answer: Overfitting: stop earlier or use more varied data.

Why the other options are wrong

  • A. Underfitting shows high error on both sets; here training loss falls, so more epochs would widen the gap.
  • B. A rising validation loss is the opposite of perfect generalisation; the model is not generalising well.
  • C. A tokenizer bug in the validation set is not the cause; the gap between the two losses signals overfitting.

Tip: If train loss drops but validation loss rises, it's overfitting — stop training or diversify data.

Question 3Easy

Before fine-tuning, 2,000 examples are split into 1,800 for training and 200 for validation. Why hold out the 200?

  1. To make training run twice as fast
  2. To measure performance on unseen examples
  3. To store a backup of the training data
  4. To reduce the size of the final model

Answer: B. To measure performance on unseen examples

Explanation

Validation data shows whether the model generalises or just memorises its training set.

Step-by-step solution

  1. Training uses most data to learn patterns.
  2. Validation checks if patterns work on new examples.
  3. 200 examples are unseen during training.
  4. This helps find if the model works well generally.
  5. Final answer: To measure performance on unseen examples.

Why the other options are wrong

  • A. Holding out data does not speed up training; it only adds an evaluation step.
  • C. The 200 examples are used for checking, not kept as a backup of the training data.
  • D. The held-out set does not change the final model's size; it only measures performance.

Tip: Use validation to check generalization, not memorization.

Question 4Easy

Which statement about full fine-tuning versus LoRA is correct?

  1. Full fine-tuning updates all weights; LoRA trains small added matrices
  2. Both freeze every weight in the model
  3. LoRA updates every weight of the model, while full fine-tuning updates none of them
  4. Neither needs any training examples

Answer: A. Full fine-tuning updates all weights; LoRA trains small added matrices

Explanation

LoRA freezes the base and trains low-rank updates, cutting memory and storage.

Step-by-step solution

  1. Full fine-tuning changes all model weights during training.
  2. LoRA adds small matrices to the model and only trains those.
  3. So full fine-tuning updates all weights; LoRA trains small added matrices.
  4. This matches option A exactly.

Why the other options are wrong

  • B. Full fine-tuning updates the weights and LoRA freezes the base weights, so they do not both freeze everything.
  • C. LoRA does not update every weight; it trains small added matrices, while full fine-tuning updates the base weights.
  • D. Both methods need training examples, because training data is what changes the weights.

Tip: Remember: Full fine-tuning changes everything; LoRA only tweaks a few parts.

Question 5Medium

LoRA with rank 16 is applied to one 4096 × 4096 weight matrix. How many trainable parameters does it add?

  1. 131,072
  2. 65,536
  3. 16,777,216
  4. 256

Answer: A. 131,072

Explanation

B is 4096 × 16 and A is 16 × 4096: 2 × 16 × 4096 = 131,072, about 0.78% of the 16,777,216 weights in the full matrix.

Step-by-step solution

  1. LoRA adds two matrices: B and A.
  2. Matrix B is 4096 × 16 = 65,536 parameters.
  3. Matrix A is 16 × 4096 = 65,536 parameters.
  4. Total trainable parameters = 65,536 + 65,536 = 131,072.
  5. Final answer: 131,072.

Why the other options are wrong

  • B. 65,536 is only one of the two matrices, B or A; LoRA adds both, giving 131,072.
  • C. 16,777,216 is the full 4096 x 4096 matrix; LoRA trains only the two small low-rank matrices.
  • D. 256 is far too small; 16 x 4096 plus 4096 x 16 gives 131,072.

Question 6Medium

In LoRA, raising the rank r generally:

  1. Adds capacity and trainable parameters
  2. Removes the need for training data
  3. Makes the base model trainable too
  4. Reduces the adapter's parameters

Answer: A. Adds capacity and trainable parameters

Explanation

Parameters grow linearly with r; very low ranks may underfit complex adaptations.

Step-by-step solution

  1. LoRA adds parameters proportional to rank r.
  2. Higher r means more trainable parameters added.
  3. Raising r increases model capacity.
  4. More parameters allow better adaptation.
  5. Final answer: Adds capacity and trainable parameters.

Why the other options are wrong

  • B. Raising the rank does not remove the need for training data; the adapter still learns from examples.
  • C. Under LoRA the base model stays frozen; a higher rank does not make it trainable.
  • D. A higher rank adds more adapter parameters, not fewer; the count grows with r.

Tip: Higher rank in LoRA means more parameters and better adaptation.

Question 7Medium

Fine-tuning examples were written with one prompt format, but production sends a different format. What is the likely result?

  1. Better quality, because the model generalises
  2. A crash, because the prompt formats must match the training data exactly
  3. Worse quality, because inputs no longer match training
  4. No effect, because formats are ignored

Answer: C. Worse quality, because inputs no longer match training

Explanation

Training and inference inputs should share the same template.

Step-by-step solution

  1. Fine-tuning uses one prompt format.
  2. Production uses a different format.
  3. Inputs no longer match training data.
  4. Model performance drops due to mismatched formats.
  5. Final answer: Worse quality, because inputs no longer match training.

Why the other options are wrong

  • A. The model does not generalise well to an unseen format here; quality usually drops when inputs mismatch training.
  • B. A format mismatch usually lowers quality rather than crashing; the model still produces an answer.
  • D. Formats are not ignored; a changed input shape usually shifts the model's output quality.

Tip: Always use the same prompt format during fine-tuning and production.

Question 8Medium

When comparing a fine-tuned model with the base model plus prompting, the fair method is to:

  1. Compare their average output lengths only
  2. Test the fine-tuned model on its own training data to see what it has learned
  3. Ask the fine-tuned model which one is better
  4. Run both on the same held-out eval set with the same metrics

Answer: D. Run both on the same held-out eval set with the same metrics

Explanation

Same data and metrics, and data not used in training, make the comparison meaningful.

Step-by-step solution

  1. Fine-tuned model uses different data than base model.
  2. Prompting doesn't change the base model's data.
  3. Same held-out eval set ensures fair testing.
  4. Same metrics measure performance consistently.
  5. Both models are tested on identical tasks and data.

Why the other options are wrong

  • A. Average output length says little about quality; the fair test compares answers on the same eval.
  • B. Testing on training data measures memorisation, not generalisation, so it is not a fair comparison.
  • C. Asking the fine-tuned model to judge itself is biased; the fair method uses the same held-out eval and metrics.

Tip: Use same dataset and metrics for both models.

Question 9Hard

A team fine-tunes on 500 support transcripts so the bot "knows" policy facts. Policies change next month. What is the best critique?

  1. Fine-tuning is the only way to add new knowledge
  2. 500 examples is too many for any fine-tuning job
  3. Fine-tuning automatically picks up policy changes as they are published
  4. Facts belong in RAG; fine-tune for behaviour, retrieve for knowledge

Answer: D. Facts belong in RAG; fine-tune for behaviour, retrieve for knowledge

Explanation

Fine-tuned facts go stale and are hard to cite or update; retrieval keeps them current.

Step-by-step solution

  1. Facts in fine-tuning become outdated when policies change.
  2. Retrieval systems keep knowledge up-to-date automatically.
  3. RAG handles facts, while fine-tuning focuses on behaviour.
  4. Updating fine-tuned models is complex and time-consuming.
  5. Best approach: use RAG for facts and fine-tune for behaviour.

Why the other options are wrong

  • A. Fine-tuning is not the only way; retrieval adds knowledge without retraining the model.
  • B. 500 examples is a usable amount; the real problem is that policy facts go stale.
  • C. Fine-tuning does not pick up new policies on its own; the model must be retrained with new data.

Tip: Use RAG for dynamic facts, fine-tune for behaviour.

Question 10Hard

QLoRA reduces fine-tuning memory mainly by:

  1. Shrinking the vocabulary of the tokenizer to fewer tokens
  2. Removing half of the model's layers before training starts
  3. Keeping the frozen base model in 4-bit precision while training LoRA adapters
  4. Training every weight of the model in 4-bit precision with no adapters at all

Answer: C. Keeping the frozen base model in 4-bit precision while training LoRA adapters

Explanation

The frozen base is quantised; only small adapters are trained in higher precision, so large models fit on smaller GPUs.

Step-by-step solution

  1. QLoRA quantises the frozen base model to 4-bit.
  2. It trains small LoRA adapters in higher precision.
  3. Memory for weights and optimizer state drops sharply.

Why the other options are wrong

  • A. Tokenizer vocabulary is unchanged.
  • B. Layers are not removed.
  • D. Adapters are used, not full 4-bit training.

Practise all 20 questions free

The full question bank with timed practice, progress tracking and Vidya, your AI tutor. Free, no ads.

Open this topic in the app →

Related topics

See all AI Engineering (LLM Apps) topics · All topics