PEFT & LoRA interview question

Generative AIPEFT & LoRAMLOpseasy

A retailer trained a LoRA adapter on acme-8b (the base model). The serving team loads it onto acme-8b-instruct, which has the same architecture. It loads without any error, but answers are clearly worse than in the training team's evaluation. What explains this, and what prevents it?

  1. AThe adapter stores full copies of the weights it modifies, so it overrides those layers completely, and the drop must come from the instruct model's other layers; retrain those layers as well.
  2. BAdapters are deltas that work on any model with the same architecture, so the drop must come from a different chat template; switching to the training template restores the evaluated quality.
  3. CA mismatched base would fail on load with a shape error, so the clean load proves the setup is right, and the drop points to overfitting; retrain the adapter with stronger dropout.
  4. DThe update ΔW was learned for the exact base weights, and matching shapes mean nothing fails on load; record the base model and revision with each adapter and verify them before serving.
Show the answer and explanation

Correct answer: D, The update ΔW was learned for the exact base weights, and matching shapes mean nothing fails on load; record the base model and revision with each adapter and verify them before serving.

Explanation PEFT & LoRA

A LoRA adapter stores only the low-rank factors of an update: W' = W + ΔW with ΔW = (α/r)·B·A. The update is meaningful only relative to the W it was trained on. The instruct variant has the same shapes but different weights (after SFT and preference tuning), so W_instruct + ΔW is a model nobody trained or evaluated. The same happens when a base repository is updated in place and the server pulls a newer revision.

Nothing fails loudly: the adapter's tensors fit the new matrices perfectly, so the only symptom is lower quality, which may go unnoticed for weeks.

Prevention:

  • Record the exact base model and revision (commit hash or registry version) with every adapter. An adapter config usually records the base model's name, but a name can point to different weights over time, so pin the revision explicitly too.
  • Load the base at that pinned revision and check it at startup; refuse to serve on a mismatch.
  • Use the adapter's evaluation suite as a deployment gate, so a wrong pairing fails a smoke test before it gets traffic.
  • To use the adapter on the instruct model, retrain it there and re-evaluate.

Why the alternatives are wrong: adapters do not contain full weight copies; a chat-template mismatch is a separate problem and does not make ΔW fit different weights; shape errors appear only when architectures differ, so a clean load proves nothing about the pairing; and overfitting cannot explain a drop that appeared only after the base was swapped, since the same adapter scored well in the training team's evaluation.

Interview tip: treat base model + revision + adapter + tokenizer + chat template as one versioned artifact in the model registry.

Practice it as a quiz

Answer this and the other free questions with instant grading, streaks and weak-topic tracking, or unlock all 4,000 questions.

More Generative AI questions

  1. Which statement about the HNSW parameters M, efConstruction and efSearch is correct?
  2. An e-commerce team writes product descriptions with a prompt that includes three example descriptions, all for one brand's running shoes. New descriptions for…
  3. What is a large language model (LLM)?
  4. What is the difference between zero-shot and few-shot prompting?
  5. What is retrieval-augmented generation (RAG)?