LearnQuestion bank

You’re assembling 20k conversations to fine-tune a support assistant. What decides whether the fine-tune helps, and what are the technical gotchas?

Applied LLMTechnicalMedium

Theme reported publicly: Cohere, Isomorphic Labs

Answer it yourself first, out loud or on paper, then compare.

Answer

Model answer, written in a candidate's voice

In short

  • Quality and representativeness beat raw count: correct, consistent, production-like, deduplicated, intent-balanced, PII-scrubbed
  • Training text must match serving exactly: tokenizer chat template, system prompt, tool schema, no hand-built formatting
  • Loss only on assistant tokens, correct multi-turn masking, EOS/end-of-turn included
  • Held-out eval plus general-capability regression checks, with contamination/leakage checks
  • Hyperparameters tuned for small sets: low LR, few epochs, early stopping, packing with masks preserved

In full

The fine-tune helps only if the 20k conversations are clean, representative, and evaluated honestly, not merely large. I would filter for correct and consistent examples, deduplicate near-identical threads, cover the real intent mix from production, and remove PII before training; 20k is not a magic number if the data is skewed or noisy. Every example must be rendered with the exact serving chat template, system prompt, and tool schema using the tokenizer’s template rather than hand-built strings, and loss should be applied only to assistant tokens with correct multi-turn handling and EOS/end-of-turn included. I would hold out a stratified eval set by intent and source, measure task success and behaviour on it, and also run general-capability regression checks so the assistant does not get better at support while degrading on ordinary reasoning or instruction following. I would check contamination by confirming eval items are absent from training, scanning for near-duplicates and n-gram overlap, and excluding production logs that leak the eval distribution. Because 20k is small, I would use a conservative learning rate, few epochs, early stopping, and packing only with correct assistant-only masks so packed sequences do not leak loss or attention across examples.

Corrected by an independent AI reviewer.

What a strong answer covers

  • Quality over volume: correct, consistent, representative of production; deduplicated; intent coverage; PII removed
  • Exactly the serving chat template, system prompt and tool schema (applied with the tokenizer’s template, never hand-built)
  • Loss on assistant tokens only; correct multi-turn handling; EOS included
  • Held-out eval plus general-capability regression checks; contamination checks
  • Hyperparameters: learning rate, epochs (overfitting quickly on small sets), packing with correct masks

Common mistakes

  • Train/serve template mismatch
  • training on user turns or on bad agent replies copied from logs