Module quiz

Fine-tuning quiz

105 questions across 7 lessons. Choose an answer, check it, and read why each option is right or wrong.

Checking answers needs JavaScript. You can still read every question and option below.

0 of 105 answered

Keyboard: arrow keys move between options. Space or Enter selects the focused option.

When to tune, and what it costs13 questions

ObjectiveClassify a failure as missing knowledge, wrong behaviour, or cost and latency, say whether tuning is justified, and name the baseline a tune must beat.

  1. Question 1 of 105A shop's assistant keeps quoting last quarter's delivery fees, and the fees change every month. A manager proposes tuning on the fee table. What is the best reading of the failure?

    Choose one answer.

  2. Question 2 of 105A strong prompt with examples still returns the wrong ticket category on a few percent of 3 million daily calls, always in the same pattern. Labelled examples exist. Which is the best next step?

    Choose one answer.

  3. Question 3 of 105A tuned model scores 20 points above the team's first-draft prompt, and the team wants to ship it. What is the main thing missing from the claim?

    Choose one answer.

ObjectiveWrite the break-even for a tuning project from its one-off, hosting and maintenance costs, and test it against a cheaper alternative such as prefix caching.

  1. Question 4 of 105A tune costs $18,000 once and earns $2,000 a day gross. Hosting adds $600 a day, and a $13,500 re-tune comes every 90 days. About how long is the payback?

    Choose one answer.

  2. Question 5 of 105A provider bills cached input at 20 percent of the normal rate. A job's repeated prefix costs $2,000 a day at the normal rate. What is the most that baking it into a tuned model can save?

    Choose one answer.

  3. Question 6 of 105A new base model is released that is much better. Your adapter beat the old baseline last spring. What should you do first?

    Choose one answer.

ObjectiveEstimate the model-state memory of full fine-tuning with Adam, LoRA and QLoRA, and name what that estimate leaves out.

  1. Question 7 of 105How much memory do the model states take for full fine-tuning of an 8-billion-parameter model with Adam in mixed precision?

    Choose one answer.

  2. Question 8 of 105A 4-bit frozen 8B base needs about 0.5 bytes per parameter. With a 40-million-parameter adapter at 16 bytes each, about how much do the QLoRA model states come to?

    Choose one answer.

  3. Question 9 of 105A memory plan for a tuning run lists only the model states. Which items does it leave out? Select all that apply.

    Choose all that apply.

  4. Question 13 of 105You must choose between two plans for a 34B-class task. Plan one fully fine-tunes it. Plan two uses LoRA on a 16-bit frozen base with a 0.5 percent adapter. About how do the model-state sizes compare?

    Choose one answer.

ObjectiveEstimate training compute and time from parameters and tokens, and explain why LoRA saves memory far more than it saves compute.

  1. Question 10 of 105A model has 3 billion parameters and trains on 2 billion tokens. The job sustains 300 TFLOP/s. Using the 6ND estimate, about how long does a full fine-tune take?

    Choose one answer.

  2. Question 11 of 105A teammate says LoRA will cut GPU time to about a hundredth because only about one percent of the weights train. What is the best response?

    Choose one answer.

  3. Question 12 of 105Which breakdown best explains the 6 in the 6ND estimate for training a dense model?

    Choose one answer.

Data engineering for fine-tuning14 questions

ObjectiveChoose data sources for a tuning goal and say what each one risks, verify synthetic data before trusting it, and use a learning curve rather than a rule of thumb to decide whether more data will help.

  1. Question 14 of 105A team wants a model that writes replies in the house style. They have 300 hand-checked examples and 60,000 unreviewed logs from chat sessions. Which plan fits the goal best?

    Choose one answer.

  2. Question 15 of 105A team generates 20,000 JSON-extraction examples with a stronger model and trains on them directly. A week later the tuned model repeats a systematic mistake. What was skipped?

    Choose one answer.

  3. Question 16 of 105Scores on a fixed golden set for runs trained on 20, 40, 80 and 100 percent of the data are 55, 66, 71 and 71. What is the best conclusion?

    Choose one answer.

ObjectiveOrder the cleaning steps (filter, deduplicate, decontaminate, remove personal data) and explain what each one protects against.

  1. Question 17 of 105Support conversations are collected, and three versions of the same ticket reply appear with minor edits. Where do near-duplicates do the most harm if they are left in?

    Choose one answer.

  2. Question 18 of 105A team filters its training set for 13-word overlaps with an evaluation set of short questions that average six words. What is the likely outcome?

    Choose one answer.

  3. Question 19 of 105A team strips emails and phone numbers from its tuning data and deduplicates it. Which risk has the personal-data step addressed?

    Choose one answer.

  4. Question 26 of 105A team has these steps for a ticket dataset and wants them in a safe order. Which sequence is right?

    Choose one answer.

ObjectiveSplit by group or by time rather than by row, keep a golden test set that nobody trains on, and report slices as well as the average.

  1. Question 20 of 1058,000 rows come from 2,000 ticket threads, four rows per thread. A random 80/20 split by row gives a strong validation score. Why can that score mislead?

    Choose one answer.

  2. Question 21 of 105A support product launches new plans every quarter, and the assistant must answer questions about plans it has not seen. Which split best matches that use?

    Choose one answer.

  3. Question 22 of 105After three rounds of adjusting prompts and settings against the same 400 held-out examples, the average rises. What is the best way to protect the final result?

    Choose one answer.

ObjectiveRender examples with the exact serving chat template, include the end-of-turn token, mask the loss to the assistant tokens, and audit the result by decoding a batch.

  1. Question 23 of 105A model is tuned on examples rendered with one chat template but served through a different one. Training loss looks normal. What is the most likely symptom?

    Choose one answer.

  2. Question 24 of 105Each training answer is stored without an end-of-turn token. After tuning, the model gives correct answers but keeps generating after them. What explains this?

    Choose one answer.

  3. Question 25 of 105A prompt has 500 tokens and the answer 50. Loss is computed on the whole sequence. What does this setup mostly reward?

    Choose one answer.

  4. Question 27 of 105A model is tuned and the loss looks healthy, yet replies in production start with a stray role marker. Which pre-training check would have caught this?

    Choose one answer.

PEFT, LoRA and QLoRA in depth17 questions

ObjectiveDerive why a low-rank update is cheap and what it cannot do, and explain why B starts at zero while A starts random and what the alpha/r factor scales.

  1. Question 28 of 105A frozen weight matrix has 3,000 outputs and 1,200 inputs, and it gets a rank-10 LoRA update. How many numbers does the adapter train?

    Choose one answer.

  2. Question 29 of 105A teammate says that if the update is B times A, setting both factors to zero at the start would be the safest start. What goes wrong?

    Choose one answer.

  3. Question 30 of 105A config has r=16 and alpha=16. The team later sets r=4 and leaves alpha at 16. How does the strength of the added term change?

    Choose one answer.

  4. Question 43 of 105A rank-4 adapter is trained for many epochs on a very large dataset whose target change needs about fifty independent directions in one layer. What limits it?

    Choose one answer.

ObjectiveCount the trainable parameters of a LoRA setup across a whole model from its rank and target modules, and turn the count into optimiser-state memory.

  1. Question 31 of 105A model has 10 layers with square 1,000 by 1,000 attention projections. Adapters at rank 4 go on the query and value projections only. How many adapter parameters are trained?

    Choose one answer.

  2. Question 32 of 105A model uses grouped-query attention, so its key projection maps 4,096 inputs to only 512 outputs. Compared with a 4,096 by 4,096 projection at the same rank, the adapter on the key projection is

    Choose one answer.

  3. Question 40 of 105A frozen 7B base gets an 80-million-parameter LoRA adapter, trained with Adam in mixed precision. Roughly what do the adapter's own training states cost?

    Choose one answer.

ObjectiveChoose target modules, rank, alpha and learning rate for a first run, and name the evidence that would make you change each.

  1. Question 33 of 105With attention-only LoRA at a moderate rank, a held-out score sits below a full fine-tune. Which first change fits the evidence in the two papers?

    Choose one answer.

  2. Question 34 of 105Someone wants to move from rank 16 to rank 64 because the model is not good enough yet. What is the most sound way to decide?

    Choose one answer.

  3. Question 41 of 105A run at r=8 and alpha=8 trains well. The team moves to r=32, keeps alpha at 8, and the held-out score barely moves from the base. What is the likeliest cause?

    Choose one answer.

  4. Question 42 of 105You are setting the learning rate for your first adapter run on a new task and model. Which approach fits the lesson?

    Choose one answer.

ObjectiveExplain what NF4, double quantisation and paged optimisers each do, what they cost, and which parts of a QLoRA step stay in 16-bit.

  1. Question 35 of 105What does double quantisation actually quantise?

    Choose one answer.

  2. Question 36 of 105During one QLoRA training step, what happens when a layer with a 4-bit frozen weight is used?

    Choose one answer.

  3. Question 37 of 105A QLoRA run crashes only on its longest batches, which briefly need more GPU memory than the card has. Which piece is built for that?

    Choose one answer.

  4. Question 44 of 105Why does QLoRA store the frozen base in NF4 rather than in 16 evenly spaced 4-bit levels?

    Choose one answer.

ObjectiveDecide between LoRA, QLoRA and full fine-tuning for a task, and between merging an adapter and keeping it swappable.

  1. Question 38 of 105A platform serves 40 customers, each with their own adapter, from one base model, and requests for different customers arrive mixed together. Which setup fits?

    Choose one answer.

  2. Question 39 of 105A team has a large code and maths dataset and a budget for rented GPUs, and wants the strongest result on that domain. What does the evidence favour?

    Choose one answer.

Training practice and distributed training11 questions

ObjectiveExplain what an SFT run optimises and which tokens carry the loss, and say why validation loss alone should not pick the checkpoint.

  1. Question 45 of 105In an SFT run with the loss restricted to the response, what does the logged training loss report?

    Choose one answer.

  2. Question 46 of 105Validation loss is lowest at step 400, while the held-out JSON-valid rate peaks at step 700 and validation loss there is only slightly higher. Which checkpoint should ship?

    Choose one answer.

ObjectiveCompute the effective batch size, and choose among gradient accumulation, gradient checkpointing, LoRA and sequence limits for a run that runs out of memory, stating what each saves and costs.

  1. Question 47 of 105A full fine-tune runs out of memory at 16 sequences per pass on one GPU, and the profile shows activations are the bulk. The team wants updates equivalent to 64 sequences. Which change fits?

    Choose one answer.

  2. Question 48 of 105Each of 4 GPUs runs 6 sequences per pass and accumulates over 5 passes before the optimiser steps. How many sequences contribute to one update?

    Choose one answer.

  3. Question 49 of 105A team enables gradient checkpointing, yet a 30B full fine-tune on one 80 GB GPU still runs out of memory. Why did it not help?

    Choose one answer.

  4. Question 55 of 105A full fine-tune runs out of memory in gradients and optimiser state, not in activations. Transcripts are long, but each answer sits near the start. Which lever addresses the problem, and what does it cost?

    Choose one answer.

ObjectiveCompute per-GPU model-state memory for plain data parallelism and ZeRO stages 1 to 3 from the 16-bytes-per-parameter rule, and say what full sharding pays for its saving.

  1. Question 50 of 105A 20B-parameter full fine-tune uses Adam in mixed precision on 16 GPUs with ZeRO-2. What are the model states per GPU, before activations?

    Choose one answer.

  2. Question 51 of 105A 3B-parameter full fine-tune with short sequences runs on 8 GPUs of 80 GB each. Which setup is the best default?

    Choose one answer.

  3. Question 52 of 105Compared with plain data parallelism, what does ZeRO-3 or FSDP full sharding pay in return for its memory saving?

    Choose one answer.

ObjectiveDiagnose a run from its loss curves and task metric, and apply the debugging order: decode the labels, overfit a tiny batch, change one thing at a time.

  1. Question 53 of 105On a 3,000-example set, training loss keeps falling through epoch 5. Validation loss bottomed after epoch 2 and has risen since, and the task metric fell with it. What is the best reading and response?

    Choose one answer.

  2. Question 54 of 105A new LoRA run shows a loss that does not move from step 0. Which first check is cheapest and most informative?

    Choose one answer.

Alignment and preference optimisation18 questions

ObjectiveDescribe the RLHF pipeline (SFT, reward model, policy optimisation), say what the KL penalty to the reference model protects against, and name what the pipeline costs.

  1. Question 56 of 105In the classic RLHF recipe described for InstructGPT, which order of steps is right?

    Choose one answer.

  2. Question 57 of 105What does the KL penalty to the SFT model do in an RLHF run?

    Choose one answer.

  3. Question 58 of 105A team compares a PPO-based RLHF setup with a DPO setup. Which of these does the PPO setup need that DPO does not?

    Choose all that apply.

ObjectiveRead the DPO loss, say what beta and the frozen reference model each do, and compute the loss for a given pair of log-ratios.

  1. Question 59 of 105With beta = 0.3, a pair has a preferred-answer log-ratio of +0.4 and a rejected-answer log-ratio of -2.6. About what is the DPO loss for this pair?

    Choose one answer.

  2. Question 60 of 105To save memory, a team deletes the frozen reference model but keeps the DPO loss exactly as written. What follows?

    Choose one answer.

  3. Question 61 of 105A DPO run at beta = 0.1 drifts far from its reference. Which single change should keep the model closer, all else equal?

    Choose one answer.

ObjectiveChoose among DPO, IPO, KTO, ORPO and SimPO by the data you have and whether a reference model is needed, and say why their reported gains are not a ranking.

  1. Question 62 of 105The only feedback available is a thumbs-up or thumbs-down on single answers, with no second answer to the same prompt. Which method in the lesson fits this data best?

    Choose one answer.

  2. Question 63 of 105You have preference pairs and little memory. Which two methods in the lesson remove the frozen reference model?

    Choose one answer.

  3. Question 64 of 105In a small dataset every annotator picked the same side in every pair, and DPO keeps pushing the gap between the two answers wider. Which change matches the lesson?

    Choose one answer.

  4. Question 65 of 105A post says SimPO beats DPO by several points, so a team switches without testing. What is the main flaw in that decision?

    Choose one answer.

ObjectiveCompute a group-relative advantage as GRPO defines it, say what it removes compared with PPO, and separate the optimiser from the source of the reward.

  1. Question 66 of 105Four sampled answers to one question score [1, 0, 0, 0]. Using the population standard deviation, what is the group-relative advantage of the correct answer?

    Choose one answer.

  2. Question 67 of 105What does GRPO remove compared with PPO, and what takes its place?

    Choose one answer.

  3. Question 68 of 105A colleague says GRPO only works when answers can be verified by rules. What is the best reply?

    Choose one answer.

ObjectiveExplain reward hacking and over-optimisation, name two defences, and decide when SFT, a preference method or reinforcement learning is worth its cost.

  1. Question 69 of 105During preference training the win-rate against the SFT model keeps rising, average answer length also rises, and a fact-check score falls. What is the best first reading?

    Choose one answer.

  2. Question 70 of 105A manager says DPO cannot be reward-hacked because it has no reward model. Which reply fits the lesson?

    Choose one answer.

  3. Question 71 of 105A team has 300 good demonstrations of a required output style, no preference data, and a model that misses the style on a share of calls. What should they try first?

    Choose one answer.

  4. Question 72 of 105Which task is the best fit for GRPO with verifiable rewards?

    Choose one answer.

  5. Question 73 of 105A preference-tuned model is starting to exploit its scorer. Which of these are defences the lesson names? Select all that apply.

    Choose all that apply.

Evaluation, deployment and special cases13 questions

ObjectiveDesign a ship gate for a tuned model: the baseline ladder, a task metric with a confidence interval and slices, and separate regression, safety and format checks, each with a pass rule written down in advance.

  1. Question 74 of 105A tuned invoice-extraction model raises overall field accuracy over the best prompt. The team proposes shipping. Which addition to the gate matters most before the decision?

    Choose one answer.

  2. Question 75 of 105On 300 held-out items the baseline scores 0.75 and the tuned model 0.78, scored independently. The standard error of each score is about 0.025. How should the gate read the 3-point gain?

    Choose one answer.

  3. Question 76 of 105A tuned model produces valid JSON on 99.6 percent of calls, up from 96 percent. A teammate says the format suite makes the accuracy suite unnecessary. What is the best reply?

    Choose one answer.

  4. Question 86 of 105A tuned summariser beats the team's first-draft prompt. A stronger prompt with retrieval exists, and a newer base model was released last month. Which comparison does the gate need?

    Choose one answer.

ObjectiveDetect forgetting and safety regression by running the same suites on the base and the tuned model, and choose the mitigation each signal points to.

  1. Question 77 of 105A tuned model scores 61 on a hard general-knowledge suite. The team calls that fine, since 61 is well above chance. What is missing before it can be called free of forgetting?

    Choose one answer.

  2. Question 78 of 105A team tuned on harmless customer-service chats and says safety testing is unnecessary. They ran the base model's safety suite last month. Which response is best?

    Choose one answer.

  3. Question 79 of 105Relative to the base, a tuned model's general suite fell and its task score rose. The run used full fine-tuning, a high learning rate and a narrow dataset. Which first action fits?

    Choose one answer.

ObjectiveChoose between merged weights and separate adapters for serving, say what task arithmetic, TIES and DARE each do, and name what to re-check after a merge.

  1. Question 80 of 105A platform serves 200 tenants, each with its own tuned behaviour on one base model, and needs to undo a bad update within minutes. Which setup fits best?

    Choose one answer.

  2. Question 81 of 105Which statements about model-merging methods are true? Select all that apply.

    Choose all that apply.

  3. Question 82 of 105An adapter that passed the gate is merged into a 4-bit quantised base for serving, and users report slightly worse answers. What is the most likely explanation and next step?

    Choose one answer.

ObjectivePlan an embedding, reranker or distillation tune: what is trained, what it forces downstream, and how to evaluate it.

  1. Question 83 of 105A tuned embedding model raises recall on held-out queries. The index was built with the old model. What must the rollout include?

    Choose one answer.

  2. Question 84 of 105A RAG system retrieves the right passages in its top 20 but often ranks them below position 5. Which tune is the smallest change that targets the problem?

    Choose one answer.

  3. Question 85 of 105A distilled student matches its teacher on the average score of a held-out set. What should the team check next?

    Choose one answer.

Fine-tuning: interview drills19 questions

ObjectiveGive a 90-second answer to whether a team should fine-tune, covering the failure kind, the baseline a tune must beat, the break-even against a cheaper alternative, and the upkeep.

  1. Question 87 of 105A support bot quotes outdated prices. The board asks whether to fine-tune it. Which opening shows the best judgement?

    Choose one answer.

  2. Question 88 of 105A tune would save the cost of a long fixed prefix on every call. Which step of the opener tests whether the project is worth it?

    Choose one answer.

  3. Question 103 of 105A tune shipped six months ago and a stronger base model is now available. What is the first step?

    Choose one answer.

  4. Question 104 of 105Which comparison decides whether a tune has earned its place?

    Choose one answer.

ObjectiveWork the memory derivations: model states of full fine-tuning at 16 bytes per parameter, the trainable parameters of a stated LoRA setup, QLoRA states, and ZeRO per-GPU states, and say what each estimate leaves out.

  1. Question 89 of 105Full fine-tuning of a 3B-parameter model with Adam in mixed precision. About how many GB of model states?

    Choose one answer.

  2. Question 90 of 105LoRA at rank 8 on the query and value projections only, in a decoder with hidden size 1,024, square projections and 12 layers. How many trainable parameters?

    Choose one answer.

  3. Question 91 of 105QLoRA on a 20B model with an adapter of 0.5 percent gives about 11.9 GB of states, including the quantisation constants. A team has a 12 GB card. Will it train?

    Choose one answer.

  4. Question 92 of 105A 20B model is fully tuned on 8 GPUs of 80 GB. What are the model states per GPU under ZeRO-2?

    Choose one answer.

ObjectiveWork a training-time estimate from 6ND with LoRA at about two thirds, and the DPO loss for given log-ratios, and say what a larger beta does.

  1. Question 93 of 105A 3B model is trained on 20 million tokens for 3 epochs on one GPU sustaining 200 TFLOP/s. Full tuning takes about 1.5 hours. About how long does a LoRA run take?

    Choose one answer.

  2. Question 94 of 105Why does LoRA cost about two thirds of full fine-tuning compute and not far less?

    Choose one answer.

  3. Question 95 of 105DPO with beta 0.5. The preferred answer has log-ratio +0.4 and the rejected answer -0.8. What is the loss for this pair?

    Choose one answer.

  4. Question 96 of 105One pair has a preferred log-ratio higher than the rejected one, and both stay fixed while beta rises from 0.1 to 0.5. What happens?

    Choose one answer.

ObjectiveStructure a 40-minute answer to design a fine-tuning program, from clarifying questions and a baseline through data, method, evaluation gate, rollout and upkeep.

  1. Question 97 of 105A platform sends a 1,200-token prompt on 3 million tickets a day, and the board asks about tuning. After clarifying goals, what is the next step in a strong answer?

    Choose one answer.

  2. Question 98 of 105A tuned small model beats the baseline on average accuracy. Which addition makes the ship decision defensible?

    Choose one answer.

  3. Question 99 of 105The 60,000 tickets come from threads of several tickets each. How should the held-out set be chosen?

    Choose one answer.

  4. Question 105 of 105A LoRA adapter has passed the gate. Which rollout plan fits the design answer?

    Choose one answer.

ObjectiveDiagnose a described symptom, such as a clean loss with broken output, a fall in general ability or a score that jumped after a data refresh, by naming the likely causes in order and the first thing to check.

  1. Question 100 of 105Training loss is smooth and low, yet the tuned model returns broken JSON in production. What is the best first check?

    Choose one answer.

  2. Question 101 of 105The offline score jumped 15 points after a data refresh, but production did not move. Which check comes first?

    Choose one answer.

  3. Question 102 of 105After tuning, the task score rose and a general-ability benchmark fell. What is the best first check?

    Choose one answer.