Sample questions
Question 1Easy
Knowledge distillation trains:
- A smaller student model to imitate a larger teacher
- A tokenizer to imitate a vector database
- A larger model to imitate a smaller one
- 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
- Knowledge distillation uses a bigger model as the teacher.
- The student model is smaller and learns from the teacher's output.
- This helps create a smaller model with good performance.
- So, it trains a smaller model to imitate a larger one.
- 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?
- Underfitting: train for many more epochs
- Perfect generalisation to new data
- A tokenizer bug in the validation set
- 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
- Training loss falling shows model learns well from training data.
- Validation loss rising means model struggles with new data.
- This mismatch signals overfitting to training data.
- Overfitting requires stopping early or more varied data.
- 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?
- To make training run twice as fast
- To measure performance on unseen examples
- To store a backup of the training data
- 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
- Training uses most data to learn patterns.
- Validation checks if patterns work on new examples.
- 200 examples are unseen during training.
- This helps find if the model works well generally.
- 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?
- Full fine-tuning updates all weights; LoRA trains small added matrices
- Both freeze every weight in the model
- LoRA updates every weight of the model, while full fine-tuning updates none of them
- 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
- Full fine-tuning changes all model weights during training.
- LoRA adds small matrices to the model and only trains those.
- So full fine-tuning updates all weights; LoRA trains small added matrices.
- 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?
- 131,072
- 65,536
- 16,777,216
- 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
- LoRA adds two matrices: B and A.
- Matrix B is 4096 × 16 = 65,536 parameters.
- Matrix A is 16 × 4096 = 65,536 parameters.
- Total trainable parameters = 65,536 + 65,536 = 131,072.
- 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:
- Adds capacity and trainable parameters
- Removes the need for training data
- Makes the base model trainable too
- 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
- LoRA adds parameters proportional to rank r.
- Higher r means more trainable parameters added.
- Raising r increases model capacity.
- More parameters allow better adaptation.
- 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?
- Better quality, because the model generalises
- A crash, because the prompt formats must match the training data exactly
- Worse quality, because inputs no longer match training
- 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
- Fine-tuning uses one prompt format.
- Production uses a different format.
- Inputs no longer match training data.
- Model performance drops due to mismatched formats.
- 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:
- Compare their average output lengths only
- Test the fine-tuned model on its own training data to see what it has learned
- Ask the fine-tuned model which one is better
- 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
- Fine-tuned model uses different data than base model.
- Prompting doesn't change the base model's data.
- Same held-out eval set ensures fair testing.
- Same metrics measure performance consistently.
- 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?
- Fine-tuning is the only way to add new knowledge
- 500 examples is too many for any fine-tuning job
- Fine-tuning automatically picks up policy changes as they are published
- 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
- Facts in fine-tuning become outdated when policies change.
- Retrieval systems keep knowledge up-to-date automatically.
- RAG handles facts, while fine-tuning focuses on behaviour.
- Updating fine-tuned models is complex and time-consuming.
- 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:
- Shrinking the vocabulary of the tokenizer to fewer tokens
- Removing half of the model's layers before training starts
- Keeping the frozen base model in 4-bit precision while training LoRA adapters
- 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
- QLoRA quantises the frozen base model to 4-bit.
- It trains small LoRA adapters in higher precision.
- 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 →