LLM Training Dataset Hub

Written by Jakub Rusinowski · Last updated June 15, 2026

47 curated open datasets for fine-tuning and training LLMs — instruction tuning, reasoning traces, function calling, preference data, and more. Every entry includes the exact license, size, and a load_dataset() snippet.

Start here: Fine-Tune Your First LLM in 1 Hour · Fine-Tuning Reference (SFT, LoRA & DPO) · Check if your GPU can fine-tune

Compare all 47 datasets

Click a column header to sort. Click a dataset name for the full card with license details, sample data, and code.

DatasetCategorySizeLicenseBest for
FineWebPretraining15 TBODC-By 1.0Pretraining or continued pretraining on high-quality English web text
CosmopediaPretraining25B TokensApache 2.0Synthetic-textbook pretraining for small models (the SmolLM recipe)
Python-EduInstruction / SFT400 GBMITContinued pretraining for Python code understanding
OpenHermes 2.5Instruction / SFT1M RowsApache 2.0The default general-purpose SFT mix for 7B-13B fine-tunes
UltraFeedbackPreference (RLHF / DPO)64k RowsMITThe default DPO preference set to run after any SFT pass
LLaVA InstructVision158k SamplesCC-BY-NC 4.0Adding image understanding to an open LLM (the LLaVA recipe)
SlimPajamaPretraining627B TokensApache 2.0Efficient English pretraining on a heavily deduplicated corpus
Databricks Dolly 15kInstruction / SFT15k RowsCC-BY-SA 3.0Commercially safe instruction tuning - fully human-written
Stanford AlpacaInstruction / SFT52k RowsCC-BY-NC 4.0Learning the classic instruction format; research only (CC BY-NC)
ShareGPT 52KInstruction / SFT52k ConversationsCC-BY-NC 4.0Teaching natural multi-turn dialogue (non-commercial)
WizardLM Evol Instruct 70kInstruction / SFT70k RowsApache 2.0Boosting complex-instruction handling with Evol-Instruct data
LIMA: Less Is More for AlignmentInstruction / SFT1k RowsCC-BY-NC-SA 4.0Style and format alignment with a tiny curated set - quality over quantity
SmoltalkInstruction / SFT1M RowsApache 2.0General SFT for small models (the SmolLM2 recipe)
The Stack v2Code900B TokensVarious (per-file)Pretraining code models across 600+ programming languages
Magicoder-OSS-Instruct-75KCode75k RowsMITCode instruction tuning grounded in real open-source snippets
CodeFeedback-Filtered-InstructionCode74k RowsApache 2.0Training coding models that respond to execution feedback
MMLU (Massive Multitask Language Understanding)Evaluation & Benchmarks16k QuestionsMITBenchmarking general knowledge - never train on it
HumanEvalEvaluation & Benchmarks164 ProblemsMITBenchmarking Python code generation - never train on it
WinograndeEvaluation & Benchmarks44k ProblemsApache 2.0Benchmarking commonsense reasoning
MT-BenchEvaluation & Benchmarks80 QuestionsApache 2.0Judging multi-turn chat quality with LLM-as-judge
Anthropic HH-RLHFPreference (RLHF / DPO)170k PairsMITSafety-focused preference training (helpfulness and harmlessness)
DPO Mix 7KPreference (RLHF / DPO)7k PairsApache 2.0A small, balanced DPO starter set
MetaMathQAReasoning395K PairsMITBoosting GSM8K/MATH-style math skills in 7B models
Orca Math Word ProblemsReasoning200K ProblemsMITGrade-school math word problems for small models
Open-PlatypusInstruction / SFT25K QuestionsCC BY NC 4.0A quick STEM and logic boost on a small budget (non-commercial)
OpenOrcaInstruction / SFT4.2M SamplesMITExplanation-style SFT at scale (the Orca recipe)
Infinity-InstructInstruction / SFT7.5M InstructionsApache 2.0Large-scale general SFT when you need millions of samples
Magpie-AlignInstruction / SFT3M PairsApache 2.0Fresh synthetic SFT data without seed data or scraping
HelpSteer2Preference (RLHF / DPO)21K SamplesCC BY 4.0Training reward models with fine-grained quality ratings
NectarPreference (RLHF / DPO)183K PromptsApache 2.0Reward-model training with 7-way ranked responses
Tulu 3 SFT MixInstruction / SFT939K SamplesODC-BYReproducing a state-of-the-art fully open post-training recipe
SWE-benchEvaluation & Benchmarks2,294 TasksMITBenchmarking real-world software engineering - never train on it
MATH (Hendrycks)Evaluation & Benchmarks12,500 ProblemsMITBenchmarking competition math ability
NuminaMathReasoning860K ProblemsApache 2.0Chain-of-thought math fine-tuning up to olympiad level
WebInstructInstruction / SFT220M PairsCC BY-SA 4.0Web-scale instruction mining for domain skills
LMSYS-Chat-1MInstruction / SFT1M ConversationsCC BY-NC 4.0Studying real-world usage patterns across 25 models (non-commercial)
WildChat-1MInstruction / SFT1M ChatsAI2 ImpACTTraining on real user conversations; safety and robustness research
No RobotsInstruction / SFT10k RowsCC BY-NC 4.0Your first fine-tune — small, clean, 100% human-written SFT data (non-commercial license)
SmolTalk 2Instruction / SFT3 Subsets (Mid 4.8M Rows)Apache 2.0Reproducing a complete modern post-training pipeline (mid-training → SFT → preference) for small models
OpenThoughts3-1.2MReasoning1.2M RowsApache 2.0Distilling strong math/code/science reasoning into 7B–32B models
s1K-1.1Reasoning1k RowsApache 2.0Cheap, fast reasoning fine-tunes — 1k samples means minutes of training, not days
Glaive Function Calling v2Agentic & Function Calling113k RowsApache 2.0Teaching a model basic function-calling: when to call, what JSON to emit, how to use results
xLAM Function Calling 60kAgentic & Function Calling60k RowsCC BY 4.0High-precision tool calling — every sample was verified by actually executing the API call
Hermes Function Calling v1Agentic & Function Calling12k SamplesApache 2.0Models that must return valid structured JSON — for agents, extraction, and tool pipelines
FineWeb 2Pretraining8TB CompressedODC-By 1.0Pretraining or continued pretraining in languages other than English
Aya DatasetMultilingual204k RowsApache 2.0Instruction-tuning in non-English languages with real human-written data
OpenCodeReasoningReasoning735k SamplesCC BY 4.0Fine-tuning coding models that show their reasoning before writing the solution

How to choose a dataset

Match the dataset to the task, not the other way around. Teaching a model to follow instructions or adopt your tone? Use an instruction/SFT set — start with No Robots (human-written) or Dolly 15k (commercial-safe). Improving how a model ranks and phrases answers? You need a preference set for DPO: UltraFeedback is the default choice, HelpSteer2 adds fine-grained quality ratings.

Building a math or coding "thinking" model? Fine-tune on reasoning traces: OpenThoughts3 for breadth, NuminaMath for math, OpenCodeReasoning for code. Making an agent that calls APIs? Function calling is its own skill — Glaive v2 for the basics, xLAM when precision matters. Non-English users? Aya for instructions, FineWeb 2 for continued pretraining.

Two rules save the most time: check the license before you train (CC BY-NC sets can't ship in a commercial product), and start smaller than you think — 1,000 good examples beat 100,000 noisy ones. When in doubt, follow the one-hour walkthrough in Fine-Tune Your First LLM, which uses these exact datasets.

Instruction / SFT (18)

Instruction datasets (SFT sets) are prompt–response pairs used for supervised fine-tuning — the first and most important step in teaching a base model to follow instructions, answer in your format, or adopt a specific tone. They range from 1k hand-written examples (LIMA) to multi-million-sample synthetic mixtures (Infinity-Instruct).

Reasoning (6)

Reasoning datasets store full chains of thought — the step-by-step "thinking" that leads to an answer — rather than just final responses. Fine-tuning on traces distilled from strong reasoning models (DeepSeek R1, QwQ) is how small local models learn to work through math, code, and science problems before answering.

Agentic & Function Calling (3)

Agentic datasets teach a model to call functions and tools: read a JSON schema, decide when a call is needed, emit valid arguments, and use the result. This is the core skill behind local AI agents — and it must be trained explicitly, because general chat data won't produce reliable tool calls.

Preference (RLHF / DPO) (5)

Preference datasets contain a prompt plus ranked or scored responses — a chosen answer and a rejected one. They power RLHF, reward models, and DPO: the post-SFT step that teaches a model which of two plausible answers humans actually prefer. Run these after an instruction-tuning pass, not instead of it.

Pretraining (4)

Pretraining corpora are massive raw-text collections — trillions of tokens of filtered web text, textbooks, and code — used to train base models from scratch or continue pretraining on a new language or domain. You won't fine-tune on these with a consumer GPU, but they define what open base models know.

Multilingual (1)

Multilingual datasets bring instruction-following and pretraining quality to languages beyond English — from human-annotated instruction pairs in 65 languages (Aya) to quality-filtered web text in 1,000+ languages (FineWeb 2). Essential if your users don't prompt in English.

Code (3)

Code datasets range from massive permissively-licensed source corpora (The Stack v2) to instruction pairs synthesized from real open-source code. Use them to specialize a model for your stack, improve completion quality, or train a local coding assistant.

Vision (1)

Vision (multimodal) datasets pair images with text instructions so language models learn to see. LLaVA-style instruction sets are the standard recipe for adding image understanding to an open LLM.

Evaluation & Benchmarks (6)

Evaluation sets are benchmarks — MMLU, HumanEval, SWE-bench — used to measure models, not to train them. Never mix them into training data: benchmark contamination inflates scores and is the first thing careful reviewers check for.

Frequently asked questions

What dataset should I use to fine-tune a chatbot?
Start with an instruction/SFT set. No Robots (10k human-written examples) is the cleanest first dataset, and Databricks Dolly 15k is a commercially safe alternative. For multi-turn chat behavior add UltraChat or WildChat, then refine tone with a preference dataset like UltraFeedback using DPO.
What's the difference between SFT and DPO datasets?
SFT datasets contain prompt–response pairs the model learns to imitate (supervised fine-tuning). DPO and preference datasets contain a prompt plus a chosen and a rejected answer, and the model learns to prefer the better one. Typical pipelines run SFT first, then DPO — for example Tulu 3 SFT followed by UltraFeedback.
Can I use Alpaca commercially?
No — Stanford Alpaca is released under CC BY-NC 4.0, a non-commercial license, because it was generated with OpenAI's text-davinci-003. For commercial fine-tuning use Databricks Dolly 15k (CC BY-SA 3.0), Tulu 3 SFT Mix (ODC-BY), or OpenHermes 2.5 (MIT) instead.
How big should my fine-tuning dataset be?
Quality beats quantity. LIMA showed 1,000 curated examples can align a 65B model, and s1K did the same for reasoning with 1k samples. For style and format changes, 200–1,000 good examples usually suffice; for new domain skills, aim for 10k–100k. Start small and evaluate before scaling.
What is a reasoning-trace dataset?
A reasoning-trace dataset stores not just final answers but the full chain of thought — the step-by-step thinking before each solution. Fine-tuning on traces (OpenThoughts3, NuminaMath-CoT, OpenCodeReasoning) distills reasoning ability from large models into small local ones, which then "think" before they answer.
Which datasets work with Unsloth?
Any dataset here in a standard format works with Unsloth after light formatting: Alpaca-style (instruction/output columns), ShareGPT-style (conversations), or ChatML messages. Popular Unsloth starters are No Robots, Alpaca, and Dolly 15k — our one-hour fine-tuning guide shows how to load them with SFTTrainer on a 6GB GPU.