LLM fine-tuning and alignment
Understand adaptation approaches and preference training.
Compare prompting, retrieval and adaptation against the same representative evaluation set.
Interview questions
Choose a question to reveal its answer.
01EasyCoreWhat is the purpose of LLM pretraining?
Answer
What is the purpose of LLM pretraining?
Learns broad representations or next-token prediction from a large training corpus.
Train a base language model before task-specific adaptation.
from peft import LoraConfig
config = LoraConfig(r=8,lora_alpha=16,target_modules=['q_proj','v_proj'])
# Choose target module names for your actual base model.Configuration alone does not train a model.
02EasyCoreHow does supervised fine-tuning work?
Answer
How does supervised fine-tuning work?
Updates a pretrained model using supervised task examples.
Train on curated instruction-response pairs.
03EasyCoreWhat are the costs of full fine-tuning?
Answer
What are the costs of full fine-tuning?
Updates all or most base model parameters.
Adapt a model when compute and memory budgets allow.
04MediumHigh priorityWhat makes a fine-tuning method parameter efficient?
Answer
What makes a fine-tuning method parameter efficient?
Adapts a limited subset or added parameters rather than all base weights.
Train adapter parameters on a domain dataset.
05MediumHigh priorityHow does QLoRA reduce memory usage?
Answer
How does QLoRA reduce memory usage?
Uses low-rank adaptation with a quantized frozen base model to reduce memory.
Fine-tune a large model on constrained GPU memory.
06MediumWhat is catastrophic forgetting?
Answer
What is catastrophic forgetting?
Loss of previously acquired capabilities after new training.
Observe degradation on general tasks after narrow domain adaptation.
07MediumWhat is the role of a reward model?
Answer
What is the role of a reward model?
Learned function that scores outputs according to preference or reward data.
Predict which of two assistant responses a human prefers.
08MediumHow does RLHF use preference information?
Answer
How does RLHF use preference information?
Uses human preference information and reinforcement learning to optimize behavior in a common alignment pipeline.
Optimize a policy using a learned preference reward.
09HardHow does DPO differ from reward-model-based RLHF?
Answer
How does DPO differ from reward-model-based RLHF?
Direct preference optimization trains from preferred and rejected responses with a reference policy formulation.
Use pairwise preference data without running a separate online RL loop.
10HardHow do you evaluate whether fine-tuning generalizes?
Answer
How do you evaluate whether fine-tuning generalizes?
Tests adaptation using examples excluded from tuning.
Check whether domain gains generalize to unseen prompts.
Priority and difficulty are editorial study recommendations.
Technical reference: Documentation / paper ↗
Try a few practice questions
Explore the questions before creating a free account.