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
Click a column header to sort. Click a dataset name for the full card with license details, sample data, and code.
| Dataset | Category | Size | License | Best for |
|---|---|---|---|---|
| FineWeb | Pretraining | 15 TB | ODC-By 1.0 | Pretraining or continued pretraining on high-quality English web text |
| Cosmopedia | Pretraining | 25B Tokens | Apache 2.0 | Synthetic-textbook pretraining for small models (the SmolLM recipe) |
| Python-Edu | Instruction / SFT | 400 GB | MIT | Continued pretraining for Python code understanding |
| OpenHermes 2.5 | Instruction / SFT | 1M Rows | Apache 2.0 | The default general-purpose SFT mix for 7B-13B fine-tunes |
| UltraFeedback | Preference (RLHF / DPO) | 64k Rows | MIT | The default DPO preference set to run after any SFT pass |
| LLaVA Instruct | Vision | 158k Samples | CC-BY-NC 4.0 | Adding image understanding to an open LLM (the LLaVA recipe) |
| SlimPajama | Pretraining | 627B Tokens | Apache 2.0 | Efficient English pretraining on a heavily deduplicated corpus |
| Databricks Dolly 15k | Instruction / SFT | 15k Rows | CC-BY-SA 3.0 | Commercially safe instruction tuning - fully human-written |
| Stanford Alpaca | Instruction / SFT | 52k Rows | CC-BY-NC 4.0 | Learning the classic instruction format; research only (CC BY-NC) |
| ShareGPT 52K | Instruction / SFT | 52k Conversations | CC-BY-NC 4.0 | Teaching natural multi-turn dialogue (non-commercial) |
| WizardLM Evol Instruct 70k | Instruction / SFT | 70k Rows | Apache 2.0 | Boosting complex-instruction handling with Evol-Instruct data |
| LIMA: Less Is More for Alignment | Instruction / SFT | 1k Rows | CC-BY-NC-SA 4.0 | Style and format alignment with a tiny curated set - quality over quantity |
| Smoltalk | Instruction / SFT | 1M Rows | Apache 2.0 | General SFT for small models (the SmolLM2 recipe) |
| The Stack v2 | Code | 900B Tokens | Various (per-file) | Pretraining code models across 600+ programming languages |
| Magicoder-OSS-Instruct-75K | Code | 75k Rows | MIT | Code instruction tuning grounded in real open-source snippets |
| CodeFeedback-Filtered-Instruction | Code | 74k Rows | Apache 2.0 | Training coding models that respond to execution feedback |
| MMLU (Massive Multitask Language Understanding) | Evaluation & Benchmarks | 16k Questions | MIT | Benchmarking general knowledge - never train on it |
| HumanEval | Evaluation & Benchmarks | 164 Problems | MIT | Benchmarking Python code generation - never train on it |
| Winogrande | Evaluation & Benchmarks | 44k Problems | Apache 2.0 | Benchmarking commonsense reasoning |
| MT-Bench | Evaluation & Benchmarks | 80 Questions | Apache 2.0 | Judging multi-turn chat quality with LLM-as-judge |
| Anthropic HH-RLHF | Preference (RLHF / DPO) | 170k Pairs | MIT | Safety-focused preference training (helpfulness and harmlessness) |
| DPO Mix 7K | Preference (RLHF / DPO) | 7k Pairs | Apache 2.0 | A small, balanced DPO starter set |
| MetaMathQA | Reasoning | 395K Pairs | MIT | Boosting GSM8K/MATH-style math skills in 7B models |
| Orca Math Word Problems | Reasoning | 200K Problems | MIT | Grade-school math word problems for small models |
| Open-Platypus | Instruction / SFT | 25K Questions | CC BY NC 4.0 | A quick STEM and logic boost on a small budget (non-commercial) |
| OpenOrca | Instruction / SFT | 4.2M Samples | MIT | Explanation-style SFT at scale (the Orca recipe) |
| Infinity-Instruct | Instruction / SFT | 7.5M Instructions | Apache 2.0 | Large-scale general SFT when you need millions of samples |
| Magpie-Align | Instruction / SFT | 3M Pairs | Apache 2.0 | Fresh synthetic SFT data without seed data or scraping |
| HelpSteer2 | Preference (RLHF / DPO) | 21K Samples | CC BY 4.0 | Training reward models with fine-grained quality ratings |
| Nectar | Preference (RLHF / DPO) | 183K Prompts | Apache 2.0 | Reward-model training with 7-way ranked responses |
| Tulu 3 SFT Mix | Instruction / SFT | 939K Samples | ODC-BY | Reproducing a state-of-the-art fully open post-training recipe |
| SWE-bench | Evaluation & Benchmarks | 2,294 Tasks | MIT | Benchmarking real-world software engineering - never train on it |
| MATH (Hendrycks) | Evaluation & Benchmarks | 12,500 Problems | MIT | Benchmarking competition math ability |
| NuminaMath | Reasoning | 860K Problems | Apache 2.0 | Chain-of-thought math fine-tuning up to olympiad level |
| WebInstruct | Instruction / SFT | 220M Pairs | CC BY-SA 4.0 | Web-scale instruction mining for domain skills |
| LMSYS-Chat-1M | Instruction / SFT | 1M Conversations | CC BY-NC 4.0 | Studying real-world usage patterns across 25 models (non-commercial) |
| WildChat-1M | Instruction / SFT | 1M Chats | AI2 ImpACT | Training on real user conversations; safety and robustness research |
| No Robots | Instruction / SFT | 10k Rows | CC BY-NC 4.0 | Your first fine-tune — small, clean, 100% human-written SFT data (non-commercial license) |
| SmolTalk 2 | Instruction / SFT | 3 Subsets (Mid 4.8M Rows) | Apache 2.0 | Reproducing a complete modern post-training pipeline (mid-training → SFT → preference) for small models |
| OpenThoughts3-1.2M | Reasoning | 1.2M Rows | Apache 2.0 | Distilling strong math/code/science reasoning into 7B–32B models |
| s1K-1.1 | Reasoning | 1k Rows | Apache 2.0 | Cheap, fast reasoning fine-tunes — 1k samples means minutes of training, not days |
| Glaive Function Calling v2 | Agentic & Function Calling | 113k Rows | Apache 2.0 | Teaching a model basic function-calling: when to call, what JSON to emit, how to use results |
| xLAM Function Calling 60k | Agentic & Function Calling | 60k Rows | CC BY 4.0 | High-precision tool calling — every sample was verified by actually executing the API call |
| Hermes Function Calling v1 | Agentic & Function Calling | 12k Samples | Apache 2.0 | Models that must return valid structured JSON — for agents, extraction, and tool pipelines |
| FineWeb 2 | Pretraining | 8TB Compressed | ODC-By 1.0 | Pretraining or continued pretraining in languages other than English |
| Aya Dataset | Multilingual | 204k Rows | Apache 2.0 | Instruction-tuning in non-English languages with real human-written data |
| OpenCodeReasoning | Reasoning | 735k Samples | CC BY 4.0 | Fine-tuning coding models that show their reasoning before writing the solution |
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 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 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 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 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 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 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 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 (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 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.