Skip to content
derpx06.dev
WritingExplainersNotesAbout
works on my machineit's always DNSship itLGTMTODO: sleepoff by oneread the docsgit push --force-with-lease404: sleep not foundhave you tried turning it off and on againrubber duck says: explain itpremature optimisationworks on my machineit's always DNSship itLGTMTODO: sleepoff by oneread the docsgit push --force-with-lease404: sleep not foundhave you tried turning it off and on againrubber duck says: explain itpremature optimisation

Learning in public.

A student's notebook on system design, distributed systems and databases. Shared as I learn.

ReadWritingExplainersNotesAbout
ElsewhereGitHubLinkedInHugging FaceLeetCode
Say hellomanaskhairnar1511@gmail.com
derpx06
NORMALmain© 2026 Derpx06Pune, Indiatop ↑
Learn/Finetuning an LLM/Part 2 · 2. Data Curation
Lesson 2 of 3

Dataset Design for Finetuning

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

Derpx062 May · 1 min read
Finetuning an LLM
Dataset Design for Finetuning
Contents
Data quality beats model sizeA practical schema for instruction dataCoverage checklistCommon failure modesQuick annotation rules
0% read · 1 min leftBack to top ↑
Course outline & contents0%
Finetuning an LLM
Dataset Design for Finetuning
Contents
Data quality beats model sizeA practical schema for instruction dataCoverage checklistCommon failure modesQuick annotation rules

Data quality beats model size

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

A practical schema for instruction data

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"]
}

Coverage checklist

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.

Common failure modes

  • Mode collapse: model repeats one style for all prompts.
  • Overfitting to template phrasing.
  • Missing negative examples (what not to do).
  • Label inconsistency across annotators.

Quick annotation rules

  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