Learn/Finetuning an LLM/Part 2 · 2. Data Curation
Lesson 2 of 3
SyllabusFinetuning an LLM · Part 2

Dataset Design for Finetuning

How to build high-leverage finetuning data: examples, negative samples, balance, and annotation rules.

Course outline & contents
Finetuning an LLM
Dataset Design for Finetuning

Small, clean datasets usually outperform large noisy datasets. The highest leverage work is curation.

Each row should include:

  1. instruction: what the user asks.
  2. context: optional grounding.
  3. response: ideal assistant output.
  4. tags: difficulty, domain, safety labels.
Json
{
  "instruction": "Summarize this outage report in 5 bullets.",
  "context": "<incident log>",
  "response": "- Root cause...",
  "tags": ["ops", "summary", "format:bullets", "difficulty:medium"]
}

Make sure your data spans:

  1. Easy, medium, and hard examples.
  2. Ambiguous prompts requiring clarification.
  3. Safety-sensitive requests and refusal behavior.
  4. Edge-case formatting and long-context scenarios.
  • Mode collapse: model repeats one style for all prompts.
  • Overfitting to template phrasing.
  • Missing negative examples (what not to do).
  • Label inconsistency across annotators.
  1. Keep responses concise unless depth is explicitly requested.
  2. Prefer deterministic formats for operational tasks.
  3. Ban hallucinated sources.
  4. Add one "gold" example per high-risk workflow and re-test each release.
Track your progressSign in and your progress follows you across devices.
Sign in to track progress Next lesson
← Previous lessonFinetuning Roadmap: What to Tune and WhyNext lesson →Training, Evaluation, and Deployment