Guide 12: Which Dataset Should I Use? A Complete Selection Guide

Written by Jakub Rusinowski · Last updated July 10, 2026

Choosing the right dataset is the single biggest factor in a successful fine-tuning run. This guide cuts through the confusion with a practical decision framework.

In This Guide

Choosing the right dataset is the single biggest factor in a successful fine-tuning run. This guide cuts through the confusion with a practical decision framework.


The Five Dataset Categories

CategoryWhat It IsWhen to Use
PretrainingRaw text at massive scale (web, books, code)Training a model from scratch — requires 100B+ tokens and serious GPU clusters
InstructionPrompt + response pairs teaching a model to follow instructionsMost common fine-tuning goal — makes a base model into an assistant
PreferenceChosen/rejected response pairs for alignment (RLHF/DPO)After SFT, when you want to make responses more helpful, safe, or stylistically aligned
CodeSource code, coding problems, and solutionsBuilding a coding assistant or improving a model's programming ability
EvaluationBenchmarks to measure model capability (not for training)Testing and comparing models — run these after fine-tuning to measure improvement

Quick Decision Table: Goal → Dataset

Your GoalCategoryTop Picks
Make a helpful chat assistantInstructionStanford Alpaca, ShareGPT 52K, OpenHermes 2.5
Teach complex reasoningInstructionWizardLM Evol Instruct 70k
Small but powerful assistantInstructionLIMA (1k), Smoltalk
Build a coding assistantCodeMagicoder-OSS-Instruct, CodeFeedback
Pretrain a code modelCodeThe Stack v2
Align with human preferencesPreferenceAnthropic HH-RLHF, UltraFeedback
Quick local DPO experimentPreferenceDPO Mix 7K
Multi-turn conversation qualityInstructionShareGPT 52K
Benchmark your fine-tuned modelEvaluationMMLU (knowledge), HumanEval (code), MT-Bench (chat)

Dataset Quality Signals

Not all datasets are equal. Here's how to evaluate one before committing:

Good signals:

Warning signs:


Quality vs. Quantity: The LIMA Lesson

The LIMA paper (2023) made a striking discovery: a model fine-tuned on just 1,000 carefully curated examples was competitive with models trained on millions of examples from noisy datasets.

Key insight: surface alignment is shallow. Models already have world knowledge from pretraining. Fine-tuning teaches *format and style*, not new facts. A small, high-quality dataset (200–1,000 examples) often outperforms a large, noisy one (100k+).

Practical rule: Start with 500–2,000 high-quality examples specific to your task. Scale only if quality examples are exhausted.


Where to Find More Datasets


Building Your Own Dataset

Sometimes the best dataset doesn't exist yet. Here's a minimal viable approach:

1. Define your task precisely — 'customer support for a SaaS product' beats 'helpful assistant'

2. Collect 200–500 examples — real user questions + ideal answers, or synthesize with Claude/GPT-4

3. Use JSONL format:

{"messages": [{"role": "user", "content": "How do I reset my password?"}, {"role": "assistant", "content": "Click 'Forgot Password' on the login page..."}]}
{"messages": [{"role": "user", "content": "Where can I find my invoice?"}, {"role": "assistant", "content": "Invoices are in Settings → Billing → Invoice History."}]}

4. Iterate on failures — after one fine-tuning run, look at which types of queries the model gets wrong, add more examples for those cases.

5. Mix with general data — combine your custom data 50/50 with a general instruction dataset like OpenHermes 2.5 to prevent catastrophic forgetting.


→ Ready to fine-tune? See the full workflow guide | → Browse all datasets

← All Guides | Check GPU Compatibility