AIInterviewTraining logoAIInterview/Training

fine tuning

AI, ML & GenAI interview questions tagged fine tuning, across every topic.

25 questions · 2 unlocked for you

Concepts behind "fine tuning"

The curriculum that explains the ideas these questions test.

Core
🧠 Foundations of LLMs & GenAISign in
Prompting vs RAG vs Fine-TuningGiven an LLM use case, the senior move is matching the technique to what is missing rather than defaulting to one. Need external or changing knowledge? RAG. Need a specific behavior, format, or skill? Fine-tuning. Need to take actions or use live systems? Tools/agents. Just need better instructions? Prompting. They combine, and you escalate from cheapest (prompting) to most involved (fine-tuning). AI, ML, and GenAI engineer interviews probe it because choosing wrong wastes months, fine-tuning to inject changing facts is the classic mistake.
Core
🧠 Foundations of LLMs & GenAISign in
LoRA and Parameter-Efficient Fine-TuningFull fine-tuning updates all of a model's weights, costly in compute and memory and leaving a full-size copy per task. LoRA freezes the base model and trains small low-rank adapter matrices, dropping trainable parameters by orders of magnitude while matching most of full fine-tuning's quality. QLoRA layers on 4-bit base quantization to fit huge models on one GPU. AI, ML, and GenAI interviews probe it because PEFT is how teams actually fine-tune, and because LoRA adapters make serving hundreds of variants cheap.
Core
🧠 Foundations of LLMs & GenAISign in
DPO and Preference-Optimization VariantsDirect Preference Optimization aligns a model straight from preference pairs with a simple classification-style loss, bypassing RLHF's separate reward model and RL loop, which makes alignment far simpler and more stable. A family of variants then loosens DPO's requirements: SimPO drops the reference model, KTO drops the need for paired data, and ORPO folds SFT and alignment into one step. AI, ML, and GenAI interviews probe it because DPO is now the common way teams align open models, and the variants show you understand what each requirement buys.
Core
🧠 Foundations of LLMs & GenAISign in
Fine-Tuning Hyperparameters and OverfittingChoosing to fine-tune is the easy part. The run succeeds or fails on a short list of dials: learning rate, epochs, effective batch size, LoRA rank and alpha, which modules you target, and max sequence length. Overfitting is the default outcome when those dials are set by copying a blog post, and its signature is a train loss that keeps falling while eval loss turns up. AI, ML, and GenAI interviews probe this because it separates people who have actually run a fine-tune from people who have only read about one.
Core
🤖 Retrieval & AgentsSign in
Choosing and Adapting Embedding ModelsChoosing an embedding model is a call about retrieval quality, cost, and operational risk on your own data, not about which model leads a public leaderboard. The hard parts are benchmarking against your own queries, weighing dimensionality against storage and latency, judging whether to fine-tune for your domain, and preparing for the re-embedding migration whenever the model changes. AI, ML, and GenAI interviews test it because candidates reach for the leaderboard winner and overlook the drift and migration costs that bite later.
Core
📊 Evaluation & ML FoundationsSign in
Transfer LearningTransfer learning reuses a model pretrained on a large general corpus as the starting point for a new task, so you inherit learned features rather than training from scratch. The two modes are feature extraction (freeze the backbone, train only a new head) and fine-tuning (unfreeze some layers and keep training), and the choice hinges on how much labeled data you have and how far the new domain has drifted. AI, ML, and GenAI engineer interviews probe it because it is the default for vision and NLP when labels are scarce, and because candidates often fine-tune when they should freeze, or the reverse.