Skip to content
Forward Deployed

Forward Deployed
Model Development and Post-Training

Model Development and Post-Training

By Sourav Banerjee · Last updated 13 Oct 2026 · Report an issue

Case studyAdvanced6 documents, 45 min in total
For
Engineers preparing for Forward Deployed, solutions or applied-AI engineering interviews
Assumes
Comfort with retrieval, agents and basic cloud architecture — the related reviews below cover each
Objectives
  • Explain the system end to end at interview depth, including its dangerous constraint
  • Answer follow-up questions on components, failure modes, evaluation and rollout
How to use it
Read the tabs in order. The Interview Guide stands alone; later tabs assume it. Mark each tab as read to track the case as one unit.
Reading order
  1. Interview Guide · 6 min
  2. Technical Deep Dive · 4 min
  3. Quick Review · 2 min
  4. Full Design 1 · 12 min
  5. Full Design 2 · 10 min
  6. Full Design 3 · 11 min
Sources
The references for every tab are in Full Design 3 → References.

Cites its sources in the Sources and Full Design tab

Interview Guide · 6 min — Start here. The answer you would talk through in the interview, readable on its own.

Model Development and Post-Training: Main Interview Guide

Source: Sources and Full Design, especially §§1–12. Use the Deep Dive for methods and arithmetic and the Cheat Sheet for rehearsal. The source constructs the design from reported prompts; its run sizes and throughput are illustrations, not measured training results.

The anchor and its variants

The anchor is “design a model that solves math problems,” walking from data through supervised fine-tuning (SFT), post-training and evaluation. Three neighboring prompts change one constraint in that pipeline.

Case Shared foundation What changes
#84 Math model (anchor) Verified data → SFT → scored rollouts → eval gate Correct answers and, if required, valid working.
#73 Compute-constrained LLM training Same data/run/checkpoint discipline Model size, parallelism and GPU-hour allocation.
#81 Harmless but useful model Same post-training and gate Balance harmful compliance against over-refusal.
#83 Polite phone model Same trained candidate and eval loop Distill/quantize to device memory and test on the phone.

Questions to ask the interviewer

Ask Design consequence
Which math level and task distribution? Determines datasets and what counts as generalisation.
Final answer only or correct working/proofs too? Chooses final-answer verifier versus step-level review.
Calculator/code tools allowed? Moves arithmetic outside weights and changes SFT examples.
Who uses it and what does a wrong answer cost? Sets abstention and human-check requirements.
Adapt an existing base model or pretrain? Changes budget by orders of magnitude.
What GPU-hour, latency and device limits apply? Chooses model size, adapters and deployment path.

Requirements: Functional + Non-Functional

The easiest way to frame requirements in an interview is:

Functional = what the system does. Non-functional = how well it does it and what constraints it must satisfy.

Functional requirements — what the system must do

  1. Collect answer-checkable examples.
  2. Deduplicate and decontaminate against evaluation.
  3. SFT on worked solutions and honest “ill-posed” cases.
  4. Sample model attempts.
  5. Score correctness / working / style with the right verifier or preference method.
  6. Update and checkpoint.
  7. Gate release on held-out accuracy, general ability, safety, and contamination.

Non-functional requirements — how well / under what constraints

Requirement Example target / constraint
Reproducibility Data / config / seed / checkpoint lineage.
Budget Fixed compute with stop rules.
Integrity No hidden benchmark leakage; no unmeasured general-skill regression.
Safety No safety “win” from blanket refusal.
On-device variant Fit memory; meet latency/battery on the real phone.
FLOPs (illustrative) 7B × 50M SFT tokens ≈ 2.1×10¹⁸ FLOPs (6ND). 50K prompts × 8 rollouts × 1K ≈ 400M gen tokens ≈ 5.6×10¹⁸ gen + 1.68×10¹⁹ update. With these assumed workloads, sampled post-training (~10× SFT) and eval dominate. ~2 GPU-hour SFT is an assumed-throughput sketch, not a guarantee.

Interview shortcut

If asked “What are the requirements?”, say:

“Functionally, clean data, SFT, sample, score, checkpoint, then a held-out gate. Non-functionally, reproducible lineage, no eval leak, and the model does not approve its own release.”

Architecture

The model is the object being trained, not an agent that approves its own release. Programs, calibrated graders and humans provide labels; deterministic experiment tracking and release policy decide which checkpoint advances. Evaluation failure loops back to data/error analysis.

Diagram: Public / licensed / human / synthetic problems; Dedup + train/eval decontamination; Verify answers and label sources; Data mixture incl. general tasks; Base model; SFT: worked solutions + format; (Versioned checkpoint); Sample multiple model answers; Program verifier / step grader / preference labels; RL with drift control or DPO update; (Candidate checkpoint + run lineage); Held-out eval gate: math, general, safety, leakage; Release candidate; Error analysis / revised data mix; Optional distill / quantize for deviceDiagram: Public / licensed / human / synthetic problems; Dedup + train/eval decontamination; Verify answers and label sources; Data mixture incl. general tasks; Base model; SFT: worked solutions + format; (Versioned checkpoint); Sample multiple model answers; Program verifier / step grader / preference labels; RL with drift control or DPO update; (Candidate checkpoint + run lineage); Held-out eval gate: math, general, safety, leakage; Release candidate; Error analysis / revised data mix; Optional distill / quantize for device

Step-by-step architecture

  • Collect problems with trustworthy answer labels, deduplicate near twins, remove evaluation overlap and record collection/label provenance.
  • Verify final answers where programs or symbolic checks can do so; send ambiguous or high-impact labels to humans. Mix general tasks to resist math-only forgetting.
  • Start from a base model and use SFT to teach the worked-solution format, marked final answers and appropriate uncertainty; save a reproducible checkpoint.
  • Sample several answers from that checkpoint and score with a final-answer verifier, step grader or preference labels according to the target; audit high-reward examples for reward hacking.
  • Update the policy with a drift control or use DPO (direct preference optimisation) on preference pairs; log data hash, code, config, seed and optimizer/checkpoint state.
  • Compare every candidate with a decontaminated held-out set plus general-skill and safety/over-refusal suites. A failed gate sends evidence back to error analysis and the data mix.
  • Deploy only a passing candidate. If a device ceiling applies, distill and quantize, then rerun quality, latency, memory and battery evaluation on the actual device. Reviewed production feedback enters a gated data flywheel.

Choices to defend

SFT versus post-training: SFT teaches the shape of a response. For checkable math, scored model attempts teach selection of correct answers. A final-answer verifier can reward correct numbers reached by bad working, so use step labels if reasoning validity matters. Preference pairs are better suited to tone and helpfulness. Keep a drift penalty and inspect high-reward samples, or the model learns the scorer’s blind spots.

Evaluation integrity: split by source and time, inspect n-gram/embedding overlap, and report pass@1 with its sampling settings. A large offline gain can be leakage. Gate general ability, fabrication on ill-posed problems, harmful compliance and over-refusal, not only math accuracy. Do not tune repeatedly on the final test set.

Compute budget: size by ~6ND training FLOPs, memory and effective throughput. Use LoRA/QLoRA for quick iteration; full fine-tuning only after a demonstrated adapter ceiling. For larger runs, use sharded state, parallelism appropriate to layer size, streamed data with recorded order and checkpoints including optimiser and loader position. Track evaluation gain per GPU-hour and kill stagnant runs.

Phone variant: illustrative 3B weights need about 1.5GB at 4-bit before KV (key–value) cache and runtime overhead; a 1–2GB budget may require a smaller model, shorter context or both. Distill for task behaviour, quantize, train politeness preferences and measure the quantized student on the slowest supported phone.

Two-minute interview answer

“I would pin the target before picking a method: level of math, final answer versus valid working, tool access and budget. I collect checkable examples, deduplicate and decontaminate them, then use short SFT to teach the response format. I sample the model’s own answers and use a program verifier for final-answer correctness, adding step review only if the reasoning must itself be valid. Post-training includes drift control and audits of high-reward samples. Each checkpoint passes a held-out, source/time-separated gate for math, general ability, ill-posed cases and safety before release. I budget GPU hours around rollouts and evaluation, checkpoint the full run state, and treat compute, harm or device constraints as changes to specific stages rather than redesigning the entire pipeline.”

Where next

Revise the concepts