A comprehensive reference for datasets available on Hugging Face for pre-training, fine-tuning, and evaluating language models.
Large-scale datasets for training foundation models from scratch.
| Dataset Name | Size | Tokens | Languages | Description | License | Link |
|---|---|---|---|---|---|---|
| FineWeb | 44TB | 15T | English | State-of-the-art web dataset from 96 CommonCrawl snapshots (2013-2024). Outperforms C4, Pile, RefinedWeb. Rigorous filtering and deduplication. | ODC-By 1.0 | HuggingFaceFW/fineweb |
| FineWeb-Edu | ~5.4TB | 1.3T (threshold 3) 5.4T (threshold 2) | English | Educational subset of FineWeb. Filtered by Llama3-70B classifier for educational quality. Best for knowledge/reasoning benchmarks (MMLU, ARC, OpenBookQA). | ODC-By 1.0 | HuggingFaceFW/fineweb-edu |
| FinePDFs | 3.65TB | 3T | 1,733 languages | Largest PDF corpus. 475M documents extracted via Docling + RolmOCR. Combines well with web data. Complementary to FineWeb. | ODC-By | HuggingFaceFW/finepdfs |
| C4 (Colossal Clean Crawled Corpus) | 750GB | 172B | English (primary) | Classic dataset from T5 paper. CommonCrawl-based with heuristic filtering. Multiple variants (en, en.noclean, en.noblocklist, multilingual mC4). | ODC-By | allenai/c4 |
| The Pile | 825GB | 825B | English | 22 high-quality datasets combined. Diverse sources (books, code, web, academic). Influential but book subset removed due to copyright. | MIT (varies by subset) | monology/pile-uncopyrighted |
| RedPajama-Data-1T | ~1TB | 1.2T | English (primarily) | Open replication of LLaMA training data. Includes CommonCrawl (878B), C4 (175B), GitHub (59B), ArXiv (28B), Wikipedia (24B), StackExchange (20B). | Apache 2.0 | togethercomputer/RedPajama-Data-1T |
| SlimPajama | ~627GB | 627B | English | Cleaned and deduplicated version of RedPajama. Removes duplicates and low-quality content. More efficient than original. | Apache 2.0 | cerebras/SlimPajama-627B |
| Dolma | ~3TB | 3T | English (primarily) | AllenAI's diverse dataset. Web content, academic publications, code, books, encyclopedic materials. High-quality curation. | ODC-By | allenai/dolma |
| RefinedWeb | ~600GB | 500B (filtered) 5T (unfiltered) | English | Falcon LLM training data. Aggressive quality filtering from CommonCrawl. FineWeb aimed to surpass this. | ODC-By | tiiuae/falcon-refinedweb |
| StarCoder Data | 783GB | ~250B | 86 programming languages | Code training dataset. 54GB GitHub Issues, 13GB Jupyter notebooks, 32GB commits. Used to train StarCoder models. | Apache 2.0 | bigcode/starcoderdata |
| The Stack | ~6TB | Variable | 358 programming languages | Massive code dataset from GitHub. Deduplicated and filtered. Opt-out mechanism for developers. | Multiple (check per language) | bigcode/the-stack |
| FineVision | 5TB | 10B (answer tokens) | Multilingual | Latest multimodal dataset (Sep 2025). 17.3M images, 24.3M samples, 88.9M QA turns. 200+ sources for VLM training. +20% performance boost. | Various | HuggingFaceM4/FineVision |
Datasets for instruction-tuning and alignment of pre-trained models.
| Dataset Name | Size | Type | Description | Use Cases |
|---|---|---|---|---|
| Magpie-Ultra | 1M samples | Synthetic Instructions | Synthetically generated instruction pairs covering text editing, coding, comprehension. Improves reasoning and factual correctness. | Instruction tuning, conversational agents |
| OpenOrca | 4.4M samples | Synthetic Reasoning | GPT-4/GPT-3.5 generated explanations. Reasoning-focused instruction following. | Reasoning models, educational apps |
| Ultrachat | 1.4M samples | Conversational | Multi-turn dialogues covering diverse topics. Used by Zephyr and other chat models. | Multi-turn chat, dialogue systems |
| HH-RLHF (Anthropic) | 169K samples | Preference Data | Human preference data for RLHF. Helpfulness and harmlessness ratings. | Preference-based training, alignment |
| Orca-Math-200K | 200K samples | Math Reasoning | Math word problems with step-by-step solutions. High-quality synthetic data. | Math tutors, reasoning bots |
| WizardLM-Evol-Instruct | 250K samples | Evolved Instructions | Instructions generated through evolutionary prompting. Increasing complexity. | General instruction following |
| Alpaca | 52K samples | Instruction Following | Self-instruct dataset generated by GPT-3.5. Simple task completion. | Basic instruction tuning |
| Dolly-15K | 15K samples | Human-Generated | Human-written instruction-response pairs. High quality but small. Open license. | High-quality instruction data |
| ShareGPT | ~90K conversations | Conversational | Real ChatGPT conversations shared by users. Multi-turn dialogue. | Chat models, dialogue training |
| ReasonMed | 370K samples | Medical Reasoning | Largest medical reasoning dataset (Q2 2025). Multi-agent verification and refinement. Used to train ReasonMed-7B. | Medical AI, healthcare applications |
Datasets for evaluating general knowledge, reasoning, and language understanding.
| Benchmark | Size | Format | Description | What It Measures | Difficulty |
|---|---|---|---|---|---|
| MMLU (Massive Multitask Language Understanding) | 15,908 questions | Multiple choice (4 options) | 57 subjects from elementary to professional level. Covers humanities, STEM, social sciences. Standard benchmark. | Multitask accuracy, expert knowledge across domains | Medium (being saturated) |
| MMLU-Pro | 12,000 questions | Multiple choice (10 options) | Enhanced MMLU with harder questions, more options. Requires reasoning. Sources: original MMLU + STEM websites + TheoremQA + SciBench. | Robust multitask understanding, deeper reasoning | High |
| GPQA (Graduate-Level Google-Proof Q&A) | 448 questions (main) 198 (diamond) | Multiple choice (4 options) | Graduate-level science questions by domain experts. Biology, physics, chemistry. Extremely difficult. Gated access to prevent contamination. | Expert-level scientific knowledge, advanced reasoning | Very High |
| ARC (AI2 Reasoning Challenge) | 7,787 questions | Multiple choice | Science questions from standardized tests (grade 3-9). ARC-Easy and ARC-Challenge subsets. | Scientific reasoning, elementary knowledge | Medium |
| HellaSwag | 70,000 examples | Multiple choice | Commonsense natural language inference. Sentence completion with context. | Commonsense reasoning, language understanding | Medium |
| TruthfulQA | 817 questions | Multiple choice + generation | Questions designed to cause false answers. Tests truthfulness and informativeness. | Truthfulness, resistance to common misconceptions | High |
| Winogrande | 44,000 questions | Binary choice | Winograd Schema challenge. Pronoun resolution requiring common sense. | Commonsense reasoning | Medium-High |
| CommonsenseQA | 12,247 questions | Multiple choice (5 options) | Questions requiring background commonsense knowledge. | Commonsense knowledge application | Medium |
| OpenBookQA | 6,000 questions | Multiple choice (4 options) | Elementary science with open book facts provided. Requires reasoning beyond facts. | Multi-hop reasoning, science knowledge | Medium |
| PIQA (Physical Interaction QA) | 21,000 questions | Binary choice | Physical commonsense reasoning. Everyday scenarios. | Physical world understanding | Medium |
| GAIA | 450+ questions | Unambiguous answer | Non-trivial questions requiring tools and autonomy. 3 difficulty levels. Agent-oriented. | Tool use, autonomous problem-solving, multi-step reasoning | Very High |
| MuSR (Multistep Soft Reasoning) | Algorithmically generated | Long-form (~1000 words) | Complex problems: murder mysteries, object placement, team allocation. Requires long-range context parsing. | Long-context reasoning, complex integration | Extremely High |
Datasets for evaluating code generation and programming capabilities.
| Benchmark | Size | Languages | Description | What It Measures | Notes |
|---|---|---|---|---|---|
| HumanEval | 164 problems | Python | Hand-written programming problems. Docstrings to code. Simple to moderate difficulty. Used by Codex/GPT-4. | Functional correctness, code generation | Small size limits statistical significance |
| HumanEval+ | 164 problems | Python | HumanEval with 80x more test cases per problem. Much more rigorous testing. | Robust functional correctness | Harder to pass than original |
| MBPP (Mostly Basic Python Problems) | 1,000 problems | Python | Crowd-sourced entry-level Python problems. Task description + code + 3 tests. | Basic programming ability, instruction following | Good for practical coding |
| MBPP+ | 1,000 problems | Python | MBPP with 35x more test cases. More comprehensive testing. | Robust code generation | Stricter than original |
| MultiPL-E | 164 problems | 18+ languages | HumanEval translated to multiple languages (Java, JavaScript, C++, Go, Rust, etc.). | Multilingual code generation | Based on HumanEval |
| CodeContests | Thousands | Multiple | DeepMind's competitive programming dataset. Used to train AlphaCode. Real algorithmic thinking required. | Advanced coding, algorithmic problem-solving | Very challenging |
| LiveCodeBench | Continuously updated | Multiple | Real-time coding problems from contests. Prevents training data contamination. | Current coding ability without memorization | Regularly refreshed |
| DS-1000 | 1,000 problems | Python (data science) | Data science coding problems. NumPy, Pandas, Scikit-learn, PyTorch, TensorFlow. | Data science library usage | Domain-specific |
| APPS | 10,000 problems | Python | Competitive programming and interview questions. Varying difficulty. | Algorithmic problem-solving, interview prep | Large, diverse |
| SWE-bench | 2,294 tasks | Python | Real GitHub issues from popular repos. Full repository context. | Real-world software engineering, debugging | Most realistic |
| SWE-bench Verified | 500 tasks | Python | Human-verified subset of SWE-bench. Higher quality, more reliable. | Production-grade engineering capability | Gold standard for coding |
Datasets for evaluating mathematical and logical reasoning capabilities.
| Benchmark | Size | Type | Description | What It Measures | Difficulty |
|---|---|---|---|---|---|
| GSM8K | 8,500 problems | Math word problems | Grade school math problems. Requires multi-step arithmetic reasoning. | Elementary math reasoning | Medium |
| MATH | 12,500 problems | Competition math | Problems from math competitions. Algebra, geometry, calculus, number theory. Requires advanced techniques. | Advanced mathematical reasoning | Very High |
| AIME (American Invitational Mathematics Examination) | ~15-30 problems/year | Competition math | Annual high school math competition. Extremely difficult. Used to test reasoning models. | Elite mathematical problem-solving | Extremely High |
| TheoremQA | 800 questions | STEM theorems | Requires applying theorems from math, physics, EE, CS. Graduate-level. | Theorem application, STEM reasoning | Very High |
| MathVista | 6,141 examples | Visual math | Math problems with visual elements (charts, diagrams, geometry). | Visual mathematical reasoning | High |
| DROP (Discrete Reasoning Over Paragraphs) | 96,000 questions | Reading comprehension | Math/logic reasoning over paragraphs. Numerical reasoning. Note: Removed from some leaderboards due to evaluation issues. | Discrete reasoning, numerical | Medium-High |
| BBH (Big-Bench Hard) | 6,511 examples | Diverse reasoning | 23 challenging tasks from BIG-Bench. Logic, math, common sense. | Challenging multi-domain reasoning | High |
| AGIEval | ~8,000 questions | Standardized tests | Human-centric standardized exams (SAT, LSAT, GRE, etc.). | Human-level test performance | High |
| LogiQA | 8,678 questions | Logical reasoning | Logical reasoning questions from Chinese civil service exams. | Formal logical reasoning | High |
Datasets for evaluating vision-language and multimodal capabilities.
| Benchmark | Size | Modalities | Description | What It Measures |
|---|---|---|---|---|
| MMMU (Massive Multi-discipline Multimodal Understanding) | 11,500 questions | Image + Text | College-level subject questions requiring images. Art, business, science, health, humanities. | Expert multimodal understanding |
| MMMU-Pro | Enhanced | Image + Text | More challenging version of MMMU with 10 options vs 4. Reduced guessing. | Robust multimodal reasoning |
| DocVQA | 50,000 questions | Document images | Question answering on document images. Forms, receipts, reports. | Document understanding, OCR-free reading |
| ChartQA | 9,608 questions | Chart images | Questions about charts and graphs. Data extraction and reasoning. | Visual data interpretation |
| AI2D | 5,000 diagrams | Scientific diagrams | Science diagram understanding and QA. | Scientific visual reasoning |
| ScienceQA | 21,000 questions | Images + Text | Multimodal science questions. Elementary and high school level. | Multimodal science reasoning |
| OCRBench | Variable | Documents | Comprehensive OCR evaluation across document types. | Text extraction accuracy |
| TextVQA | 45,336 questions | Images with text | Questions requiring reading text in images. | Visual text understanding |
| VQAv2 | 265,016 questions | Natural images | Open-ended visual question answering on photos. | General visual understanding |
| GQA (Visual Reasoning) | 22M questions | Images + Scene graphs | Compositional visual reasoning. Requires multi-step logic. | Compositional visual reasoning |
| CameraBench | Large-scale | Video + Camera motion | Understanding camera motion in videos. Geometric vs semantic movements. Expert-annotated. | Camera movement understanding (Q2 2025) |
| OmniDocBench | Variable | Documents | Comprehensive document understanding benchmark for multilingual parsing. | Document AI capability |
Domain-specific datasets for training and evaluation.
| Dataset | Size | Description | Use Case |
|---|---|---|---|
| ReasonMed | 370K samples | Medical reasoning dataset via multi-agent verification. Used for ReasonMed-7B (outperforms Llama 3.1 70B on PubMedQA). | Medical AI training |
| PubMedQA | 1,000 questions | Biomedical research question answering. Yes/no/maybe format. | Medical knowledge evaluation |
| MedQA | 61,000 questions | US Medical licensing exam questions. Multiple choice. | Medical expertise assessment |
| MedMCQA | 194,000 questions | Indian medical entrance exam questions. Diverse medical topics. | Medical knowledge testing |
| Dataset | Size | Description | Use Case |
|---|---|---|---|
| LegalBench | 162 tasks | Legal reasoning tasks. Contracts, precedents, statutory interpretation. | Legal AI evaluation |
| CUAD | 510 contracts | Contract understanding and analysis. 41 types of important clauses. | Contract analysis |
| Dataset | Size | Languages | Description |
|---|---|---|---|
| FLORES | 3,001 sentences | 200 languages | Multilingual translation evaluation. |
| XNLI | 7,500 pairs | 15 languages | Cross-lingual natural language inference. |
| XSum | 227,000 articles | English | Extreme summarization of BBC articles. |
| Dataset | Size | Description |
|---|---|---|
| arXiv Papers (FineWeb-Edu subset) | 63,357 papers | Academic papers in multi-markdown format for semantic search and summarization. |
| StackExchange | Millions of Q&As | Programming and technical Q&A from Stack Overflow, Math.SE, etc. |
| Dataset | Size | Description | Release |
|---|---|---|---|
| RTEB (Retrieval Embedding Benchmark) | Hybrid | Real-world retrieval evaluation. Public + private datasets. 20 languages. Critical domains: law, healthcare, finance, code. | Oct 2025 |
| BEIR | 18 datasets | Diverse retrieval tasks. Zero-shot retrieval evaluation. | Standard |
| MS MARCO | 8.8M passages | Information retrieval and question answering. | Classic |
| Benchmark | Description | What It Measures |
|---|---|---|
| MT-Bench | 80 multi-turn conversations | Multi-turn instruction following, rated by GPT-4 judge |
| AlpacaEval | 805 instructions | Instruction following quality vs reference model |
| Chatbot Arena | Human voting | Real human preferences via anonymous A/B testing |
| IFEval | 500+ prompts | Verifiable instruction following (specific constraints) |
| Dataset | Description |
|---|---|
| ToxiGen | Toxicity detection in generation |
| RealToxicityPrompts | Toxicity measurement for completions |
| CrowS-Pairs | Social bias measurement |
| BBQ (Bias Benchmark for QA) | Question answering bias evaluation |
| Goal | Recommended Dataset | Reason |
|---|---|---|
| Best overall quality | FineWeb or FineWeb-Edu | State-of-the-art curation, outperforms alternatives |
| Educational focus | FineWeb-Edu | Optimized for knowledge/reasoning benchmarks |
| Document understanding | FinePDFs | Complementary to web data, 3T tokens from PDFs |
| Code models | The Stack + StarCoder Data | Largest code corpus with proper licensing |
| Multimodal | FineVision | 24M samples, 200+ sources, low contamination |
| Quick experiments | C4 or SlimPajama | Well-tested, smaller, faster to download |
| Goal | Recommended Dataset |
|---|---|
| Instruction following | Magpie-Ultra, OpenOrca |
| Conversational ability | Ultrachat, ShareGPT |
| Reasoning | OpenOrca, Orca-Math-200K |
| Alignment | HH-RLHF |
| Medical AI | ReasonMed |
| High quality | Dolly-15K (human-written) |
| Capability to Test | Use These Benchmarks |
|---|---|
| General knowledge | MMLU, MMLU-Pro |
| Expert knowledge | GPQA |
| Coding | HumanEval+, MBPP+, SWE-bench Verified |
| Math reasoning | GSM8K, MATH, AIME |
| Commonsense | HellaSwag, Winogrande, PIQA |
| Multimodal | MMMU-Pro, DocVQA, ChartQA |
| Truthfulness | TruthfulQA |
| Instruction following | IFEval, MT-Bench |
| Long-context reasoning | MuSR |
| Real-world coding | SWE-bench Verified |
GPQA: Gated access to prevent contamination
LiveCodeBench: Continuously updated to avoid memorization
FineWeb-Edu: Only 1% benchmark overlap (lowest among major datasets)
SWE-bench: Real GitHub issues, hard to contaminate
MMLU: Becoming saturated (frontier models >85%)
HumanEval: Only 164 problems (1-2% = 1-2 problems)
Solution: Use MMLU-Pro, HumanEval+, GPQA for harder tests
ODC-By: Open Data Commons, very permissive
Apache 2.0: Permissive open source
MIT: Very permissive
CC-BY: Attribution required
CC-BY-NC: Non-commercial only
Always check individual dataset licenses before commercial use
DROP: Removed from some leaderboards due to normalization issues (Dec 2023)
MMLU variants: Different implementations give different scores (Eleuther, HELM, original)
Book3 in Pile: Removed due to copyright concerns
Use multiple benchmarks (single benchmarks misleading)
Include domain-specific tests for your use case
Check for contamination in training data
Use held-out test sets when possible
Consider both automated metrics and human evaluation
Pay attention to few-shot vs zero-shot settings
xfrom datasets import load_dataset
# Load full datasetdataset = load_dataset("HuggingFaceFW/fineweb", "default")
# Load specific splitdataset = load_dataset("cais/mmlu", "all", split="test")
# Load with streaming (for large datasets)dataset = load_dataset("HuggingFaceFW/fineweb", streaming=True)
# Load specific configurationdataset = load_dataset("HuggingFaceFW/fineweb", "sample-10BT")xxxxxxxxxx# Download datasethuggingface-cli download HuggingFaceFW/fineweb --repo-type dataset
# Login for gated datasetshuggingface-cli login| Dataset | Release Date | Significance |
|---|---|---|
| FinePDFs | Sep 2025 | First large-scale PDF corpus (3T tokens) |
| FineVision | Sep 2025 | Largest open VLM dataset (24M samples) |
| RTEB | Oct 2025 | New standard for retrieval evaluation |
| ReasonMed | Q2 2025 | Largest medical reasoning dataset (370K) |
| MMLU-Pro | 2024 | Harder MMLU replacement (12K questions, 10 options) |
| CameraBench | Q2 2025 | First camera motion understanding benchmark |
Hugging Face Datasets: https://huggingface.co/datasets
Dataset Viewer: Built into Hugging Face (preview before downloading)
Papers with Code: https://paperswithcode.com/datasets
Leaderboards: https://huggingface.co/spaces (search "leaderboard")
Documentation: https://huggingface.co/docs/datasets
Last Updated: December 20, 2025
Note: Dataset availability and links may change. Always verify on Hugging Face Hub. Benchmark scores and difficulty ratings are approximate and may vary by model and evaluation setup.
Sources: Hugging Face Dataset Hub, official dataset papers, benchmark leaderboards, community documentation (December 2025)