Magpie-Align — LLM Instruction / SFT Dataset
3M self-synthesized instruction pairs generated by prompting Llama 3 to produce both instructions and responses using a novel pre-query template approach. Unlike previous datasets, Magpie requires no seed data or human curation, achieving superior quality through alignment filtering.
Dataset Details
| Provider | magpie-align |
| Category | Instruction / SFT |
| Size | 3M Pairs |
| License | Apache 2.0 |
| Downloads | 650k |
| Tags | Self-Synthesized, Llama 3, Large-Scale, Filtered, 2024 |
from datasets import load_dataset
ds = load_dataset("Magpie-Align/Magpie-Pro-300K-Filtered")
Fine-tune with this dataset
Estimated VRAM to fine-tune with QLoRA (4-bit base model + LoRA adapters), using conservative defaults:
| 7B QLoRA | ~6GB VRAM |
| 13B QLoRA | ~10GB VRAM |
Check if your GPU can fine-tune this →
New to fine-tuning? Follow the step-by-step walkthrough: Fine-Tune Your First LLM in 1 Hour
Related datasets
- Infinity-Instruct — Large-scale general SFT when you need millions of samples
- Smoltalk — General SFT for small models (the SmolLM2 recipe)
- Python-Edu — Continued pretraining for Python code understanding
- OpenHermes 2.5 — The default general-purpose SFT mix for 7B-13B fine-tunes
Frequently asked questions
Can I use Magpie-Align commercially?
Yes — Magpie-Align is released under Apache 2.0, a permissive license that allows commercial use, including training models you ship in a product. Check the dataset card for attribution requirements before release.
How much data does Magpie-Align contain, and do I need all of it?
Magpie-Align contains 3M Pairs. You rarely need all of it: for style and format fine-tuning, a few hundred to a few thousand examples are enough — load a slice (e.g. split="train[:1000]") and scale up only if quality plateaus.
What is Magpie-Align best used for?
Fresh synthetic SFT data without seed data or scraping. It belongs to the Instruction / SFT section of our dataset hub, where you'll find alternatives and complementary sets.
← All datasets | Fine-Tuning Guide