AI Engineering
/
Model Adaptation
/

Design a model specialization program

Model Adaptation · 3 to 4 hours

Design a model specialization program

Design a specialization program for a fictional hint model within GPU-hour and expert-review budgets: choose learning signals and parameterization, protect splits and evaluation, and plan a release with rollback. Then investigate a candidate that won a preference comparison while experts found wrong explanations.

Hard
System Design

System design and experimental reasoning

4 h

Premium

Used in interview rounds:

AI System Design (Hard)

Overview

Design an adaptation program that stays trustworthy across model changes, preference data, domain shifts, and releases. The hard part is choosing which behavior to optimize while preserving other capabilities and keeping reproducible evidence: a more sophisticated optimizer cannot repair an ambiguous objective or a contaminated evaluation. You practice on a fictional hint model with fixed GPU-hour and expert-review budgets, then investigate a candidate that won a preference comparison while experts reported wrong explanations.

Study time: 3 to 4 hours

Interview format: System design discussion with budget arithmetic and a failure investigation

By the end you can

  • Separate the learning signal, the trainable parameters, the numeric representation, and the deployment form, and justify each choice from a measured behavior gap
  • Compute LoRA trainable entries and adapter size for a stated configuration, and explain what rank does and does not limit
  • Explain what the DPO objective optimizes relative to a reference policy, and how preference labels can reward artifacts instead of quality
  • Plan training runs, repeated seeds, and evaluation within a GPU-hour and expert-review budget
  • Trace an experiment result that conflicts with expert review to training targets, labels, pair generation, or evaluation coverage before choosing a remedy
  • Specify a release manifest, per-slice gates, rollback, and data-removal handling for an adapted model

Prerequisites

Helpful background: Familiarity with gradients, probability, and experimental design helps.

This topic covers choosing between prompting, retrieval, and fine-tuning, validating training data, and proving that specialization helped. Training infrastructure and distributed training are out of scope.

In this guide

  1. Separate objectives from parameterization
  2. Low-rank adaptation mechanics
  3. Quantized adaptation and export
  4. Continued pretraining and SFT
  5. Preference optimization
  6. Reward-based adaptation
  7. Distillation and synthetic supervision
  8. Multi-task and tenant specialization
  9. Causal evidence and ablations
  10. Deployment and release architecture
  11. Data correction and removal
  12. Scenario: specialize a hint model on a fixed budget
  13. Failure investigation: last quarter's candidate

Hard questions are part of Premium: the study guide, reference answer, rubric, and exercises unlock with Premium.

Practice the interview question

Answer it in your own words before you look at the reference answer.