Fine-tuning, RLHF & Alignment·Question 49 of 61Advanced

How do you serve fine-tuned models at scale - merged checkpoints vs adapters, versioning, rollback?

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

The core decision is merged checkpoint vs. runtime adapter, and it's driven by how many variants you operate:

  • One or two fine-tunes, high traffic → merge ($W' = W + \frac{\alpha}{r}BA$) and serve a standard checkpoint: zero adapter overhead, simplest inference path, compatible with every serving optimisation (quantization, compilation, speculative decoding) without adapter-awareness. Cost: a full-size artefact per variant, slow deploys (reload GBs), rollback = model swap.
  • Many variants (per-customer/per-task fine-tunes) → multi-LoRA serving: one base model resident in GPU memory, adapters (tens of MB each) attached per-request. vLLM-style stacks batch requests for different adapters through a single base forward pass with gathered adapter kernels (the S-LoRA/Punica lineage), and page cold adapters between CPU/GPU. This is the only economical shape for hundreds of tenants - the alternative is hundreds of dedicated replicas.
  • Hybrid: merge the one adapter carrying 90% of traffic into a dedicated pool; serve the long tail via multi-LoRA.
Full worked answer

The core decision is merged checkpoint vs. runtime adapter, and it's driven by how many variants you operate:

  • One or two fine-tunes, high traffic → merge ($W' = W + \frac{\alpha}{r}BA$) and serve a standard checkpoint: zero adapter overhead, simplest inference path, compatible with every serving optimisation (quantization, compilation, speculative decoding) without adapter-awareness. Cost: a full-size artefact per variant, slow deploys (reload GBs), rollback = model swap.
  • Many variants (per-customer/per-task fine-tunes) → multi-LoRA serving: one base model resident in GPU memory, adapters (tens of MB each) attached per-request. vLLM-style stacks batch requests for different adapters through a single base forward pass with gathered adapter kernels (the S-LoRA/Punica lineage), and page cold adapters between CPU/GPU. This is the only economical shape for hundreds of tenants - the alternative is hundreds of dedicated replicas.
  • Hybrid: merge the one adapter carrying 90% of traffic into a dedicated pool; serve the long tail via multi-LoRA.

Operational discipline (where real-world credibility shows):

  • Pin the base: an adapter is a delta against exact weights - record base model + revision hash in the adapter's metadata; loading against a different base is silent corruption. Same for quantization: an adapter trained QLoRA-style against an NF4 base should be evaled on whatever precision serves it.
  • Version like code: immutable adapter artefacts with dataset hash, training config, eval report attached; promotion through eval gates (task metric + regression suite) before any traffic.
  • Deploy/rollback: adapter hot-swapping means new versions load in seconds without touching the base or restarting the server; rollback is repointing an adapter ID - one big reason to delay merging until a variant's traffic justifies it. Canary by routing a traffic slice to the new adapter ID and diffing online metrics.
  • Watch the interactions: adapters add small per-token overhead and constrain some kernel fusions; measure your actual latency SLO under multi-LoRA batching, and cap concurrently-active adapters per replica based on memory headroom.

What a good answer covers

  • One or two fine-tunes, high traffic → merge ($W' = W + \frac{\alpha}{r}BA$) and serve a standard checkpoint
  • Many variants (per-customer/per-task fine-tunes) → multi-LoRA serving
  • Hybrid: merge the one adapter carrying 90% of traffic into a dedicated pool; serve the long tail via…
  • Pin the base: an adapter is a delta against exact weights - record base model + revision hash in the…
  • Version like code: immutable adapter artefacts with dataset hash, training config, eval report attached;…

Key terms: merged checkpoint vs. runtime adapter · Many variants (per-customer/per-task fine-tunes) · multi-LoRA serving · Hybrid · Operational discipline · Pin the base · Version like code · Deploy/rollback · hot-swapping · Watch the interactions

Interviewer follow-ups to expect

  1. Why can serving a QLoRA-trained adapter on an fp16 base shift behaviour?

  2. Design routing for 500 tenant adapters where 10 tenants are 80% of traffic. What changes if variants need different system prompts too?

Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep