MidnightTokensdeveloper portal
Sign In
Unit Study Document

Instruction Tuning & Dataset Curation

7 min readβ€’Visual explainer included

The Garbage In, Garbage Out Rule 🧹

Training on thousands of low-quality responses causes models to output repetitive or unhelpful text. Recent studies prove that fine-tuning on 1,000 highly curated, clean instruction pairs produces superior alignments than 100,000 messy forum scrape records. We format instruction sets in standard ChatML or Llama-3 instruction templates to fit model tokenizers.

ChatML Formatting: Explicit roles (system, user, assistant) are defined using special tokens (e.g. <|im_start|>) to prevent target models from confusing inputs during gradient calculation.
Fast Drill

Active Recalls

Card 1 of 1
Question

What is ChatML?

Tap card to flip
Answer

A structured chat markup format that explicitly separates user inputs, model replies, and system instructions via special tokens.

Mastery: 0%
Knowledge Check

Quiz Practice

Question 1 of 1
Why has data quality become the main bottleneck in model customization?

Chapter Scratchpad

Auto-saves immediately

Active Recall Cards

Review core concepts before doing the quiz

Fast Drill

Active Recalls

Card 1 of 1
Question

What is ChatML?

Tap card to flip
Answer

A structured chat markup format that explicitly separates user inputs, model replies, and system instructions via special tokens.

Mastery: 0%

AI Study Buddy

Always online

Hi! I'm Spooky, your study buddy! Let's learn together.