← Datasets

Compare

SmolLM-Corpus
#1163 · remove
smoltalk2
#56 · remove
Kinddatasetdataset
Published20242025
LicenseODC-By (HF card YAML odc-by). FineWeb-Edu-dedup also subject to Common Crawl Terms of Use. python-edu inherits Stack-v2 / SWH / GitHub licenses (card: refer to the-stack-v2). Mixtral-8x7B-Instruct-v0.1 terms may still apply to Cosmopedia v2 if used to train a distributed model.Mixed. Card: newly generated subsets Apache-2.0; Hub cardData.license unset. Upstream licenses still apply (OpenThoughts3 Apache-2.0; Llama-Nemotron-Post-Training CC-BY-4.0; OpenHermes/Tulu/SmolTalk/LongAlign/Aya/Table-GPT/s1K/Mixture-of-Thoughts per those cards). Treat as Apache-2.0 for HF-new rows only; Unknown for the concat as a whole.
License familyPermissiveOther
AccessFreefree
Language codesen—
Modalitiestexttext
Size100M to 1B rows1M to 10M rows
Downloads (last month)51,24933,862
Likes492173
Last updated2024-09-062025-10-31
Formatsparquetparquet
ScaleHub 237.0M rows across 3 configs. cosmopedia-v2 train 39,134,000 / 6 columns / 104 parquet / 122.4 GB download / YAML dataset_size 212,503,640,747 bytes (~212.5 GB) / blog 28B tokens. fineweb-edu-dedup train 190,168,005 / 3 columns / 234 parquet / 550.1 GB download / YAML dataset_size 957,570,164,451 bytes (~957.6 GB) / blog 220B tokens. python-edu train 7,678,448 / 6 columns / 2 parquet / 643.9 MB — metadata only (blob_id/repo_name/path/score; no file text on Hub); blog 4B tokens after SWH S3 download. size_categories 100M<n<1B. Mix ~248B public text tokens (28B+220B) plus 4B Python if SWH fetch succeeds. usedStorage Unknown (do not sum overlapping FineWeb-Edu standalone). Hub overview 662.2K downloads / 480 likes at check. gated=false.YAML+card: 8,610,022 rows across 3 configs (Mid 4,779,894 / SFT 3,383,242 / Preference 446,886). size_categories 1M<n<10M. YAML download_size 87,748,124,143 bytes (~87.75 GB) matching usedStorage 87,748,124,143; uncompressed dataset_size ~189.97 GB (Mid 117.95 + SFT 65.99 + Preference 6.04). Card token tables: Mid 35,172.1M tokens; SFT 19,292.4M; Preference chosen 850.62M. 400 parquet shards. Hub 175.3K downloads / 164 likes at check.
Formatparquet in three Hub configs (cosmopedia-v2, fineweb-edu-dedup, python-edu). cosmopedia-v2 columns: prompt, text, token_length, audience, format, seed_data. fineweb-edu-dedup: text, id, metadata. python-edu: blob_id, repo_name, path, length_bytes, score, int_score.parquet. Configs Mid/SFT/Preference. Mid/SFT columns: messages (list of {content, role}) + source; SFT also chat_template_kwargs (custom_instructions, enable_thinking, python_tools, xml_tools). Preference: prompt, chosen, rejected, chat_template_kwargs, source.
TypePretraining mix / synthetic textbooks + educational web + Python-edu metadataPost-training mix / mid-train + SFT + preference
CostFreeFree
LanguagesEnglish 100% (card language:en). FineWeb-Edu-dedup preview language=en / language_score 0.928. Cosmopedia v2 Mixtral English textbooks. python-edu is Python source if fetched. No LID percent table. Per-language percents N/A.English-dominant. SFT multilingual splits cover 8 languages (fr, es, it, pt, de, ar, ru, zh) via Qwen translation of SmolTalk prompts (Qwen 2.5 report recipe). Aya think split is multilingual. Mid (Nemotron reasoning + OpenThoughts3) and most SFT/Preference rows are English. No LID table.
ModalityText-only (English web/textbooks + Python source if downloaded). No images.Text-only
DomainSLM pre-training; synthetic textbooks; educational web; educational Pythonpost-training; math/code/science reasoning; multilingual instruction; tool-calling; long-context SFT; preference alignment
Time periodBlog 2024-07-16. HF createdAt 2024-07-15; lastModified 2024-09-06 (Hub Updated 6 Sep 2024). Cosmopedia v2 Mixtral generation; FineWeb-Edu from FineWeb CC; python-edu from Stack-v2-train-full-ids. One-shot mix, not a live crawl.HF createdAt 2025-07-10; lastModified 2025-10-31. Mid/SFT/Preference mix for SmolLM3 (blog 2025). Teacher traces from Qwen3-32B / Qwen3-235B-A22B / DeepSeek-V3-0324 / Llama-Nemotron post-training / OpenThoughts3 (QwQ-32B). Upstream Tulu 3 / OpenHermes-2.5 / SmolTalk / LongAlign / Aya / Table-GPT / s1K-1.1.
PurposeTrain small LMs (SmolLM 135M/360M/1.7B) on a curated educational+synthetic mixThree-stage SmolLM3-3B post-training mix (mid-train reasoning, dual think/no_think SFT, APO preference)
Used forSmolLM 135M/360M (600B tokens from this mix) and SmolLM 1.7B (1T tokens). Hub overview 662.2K downloads / 480 likes at check. Distinct from already-cataloged Cosmopedia (v1) and FineWeb-Edu (full 1.3T).HuggingFaceTB/SmolLM3-3B (and SmolLM3-3B-Base long-context/reasoning stages). papers_local 631. Hub 175.3K downloads / 164 likes at check. Discord posted the HF URL.
AuthorsBen Allal, Lozhkov, Penedo, Wolf, von Werra (Hugging Face TB; blog 2024-07-16). Cosmopedia v2 generated by Mixtral-8x7B-Instruct-v0.1. FineWeb-Edu web authors from Common Crawl. python-edu from GitHub via Stack-v2 / Software Heritage.HuggingFaceTB curated. Mix of upstream public datasets (nvidia/Llama-Nemotron-Post-Training-Dataset, open-thoughts/OpenThoughts3-1.2M, open-r1/Mixture-of-Thoughts science, teknium/OpenHermes-2.5, allenai Tulu 3, HuggingFaceTB/smoltalk, THUDM/LongAlign, CohereLabs/aya_dataset, LipengCS/Table-GPT, open-r1/s1K-1.1, NousResearch/hermes-function-calling-v1, xlam traces) plus new Qwen3-32B / Qwen3-235B-A22B / DeepSeek-V3-0324 generations. Preference think split: chosen Qwen3-32B vs rejected Qwen3-0.6B.
BiasEducational-web + Mixtral synthetic textbooks (BISAC 34k topics; blog 40% middle-school / 30% college / 30% mix+stories) + high-score Python. FineWeb-Edu-dedup is a 220B-token subset of already-cataloged FineWeb-Edu — not extra FineWeb-Edu n. Cosmopedia v2 is the Mixtral successor of already-cataloged Cosmopedia v1 — do not concat v1 as extra n. python-edu needs gated Stack v2 / SWH (same caveat as skipped HuggingFaceTB/python-edu and stack-edu).Reasoning-heavy: Mid is 76.25% Llama-Nemotron-Post-Training reasoning_r1 vs 23.75% OpenThoughts3 by rows (53%/47% by tokens). SFT think is dominated by OpenThoughts3-1.2M_think (33.5% of SFT rows / 86.7% of SFT tokens). Dual think/no_think copies of several sources. Decontaminated vs SmolLM3 evals; emoji rows dropped in SFT. Preference think uses a weak Qwen3-0.6B rejector. Multilingual coverage is 8 languages, not web-scale LID.
Text qualitycosmopedia-v2 preview rows 0–1 are fluent college-audience textbooks (Ruangguru distance-learning / induction pan-searing) seeded from FineWeb, token_length 805 and 793. fineweb-edu-dedup preview is an AACAP 2011 parent-help fact sheet (edu score 3.375 / 755 tok / CC-MAIN-2013-20). python-edu preview is metadata only (blob_id, Fib_circle.py, score 3.84 → int_score 4). Residual: Mixtral synthetic; CC boilerplate; python-edu text not on Hub.ChatML messages (SFT/Mid) and chosen/rejected preference triples. Card: decontaminated against SmolLM3 benchmarks; SFT also dropped emoji samples. Think traces from Qwen3-32B / OT3 QwQ-32B / Nemotron R1; no_think variants strip traces. Preview not independently verified beyond Hub schema. Quality inherits upstream (OT3, Nemotron, OpenHermes, Tulu).
Sample sizeThree Hub configs, not one concat: cosmopedia-v2 39,134,000; fineweb-edu-dedup 190,168,005; python-edu 7,678,448 metadata. No val/test. Do not add HuggingFaceTB/python-edu standalone (annotations-only) or HuggingFaceTB/cosmopedia v1 as extra n.3 configs / 29 named splits. Mid: Llama_Nemotron_Post_Training_Dataset_reasoning_r1 3,644,790 (124 shards, 27.1 GB) + OpenThoughts3_1.2M 1,135,104 (113 shards, 26.6 GB). SFT 25 splits: 10 think (1.5M rows) + 15 no_think (1.9M); largest OpenThoughts3_1.2M_think 1,133,524 / OpenThoughts3_1.2M_no_think 435,193 / smol_magpie_ultra_no_think 406,843 / OpenHermes_2.5_no_think 384,900. Preference: tulu_3 no_think 230,501 + think 216,385. Training uses per-split Weight column (not a uniform concat).
Long contextMixed (Cosmopedia v2 textbooks; FineWeb-Edu pages, preview 755 tok). Exact token histogram Unknown; blog 28B/220B/4B.Mixed. LongAlign-64k splits (7,526 think / 6,249 no_think) are 64k-token documents (avg ~15–18k tokens). OpenThoughts3 think avg ~14.8k tokens/example. Everyday convs are short multi-turn.
Intermediate stepsYes (BISAC topics + FineWeb retrieval → Mixtral Cosmopedia v2; FineWeb-Edu classifier + dedup 220B; Llama3-annotated Python-edu scorer ≥4 on Stack-v2-train). Blog huggingface.co/blog/smollm.Yes (upstream concat; benchmark decontam; SFT emoji filter; chat_template_kwargs extracted from system/tool text; think vs no_think splits; Multi-IF 2-turn generation; Qwen3 rewrite of SmolTalk/Aya/Table-GPT/LongAlign prompts; APO preference with Qwen3-32B chosen vs Qwen3-0.6B rejected). Recipe: github.com/huggingface/alignment-handbook/tree/main/recipes/smollm3.
Idea qualityHighHigh
NoveltyHigh (public SmolLM mix; Cosmopedia v2 39M is not already-cataloged Cosmopedia v1)High (public 8.6M-row SmolLM3 post-train recipe with dual think/no_think and documented stage weights)
Text conversionReady parquet for cosmopedia-v2 and fineweb-edu-dedup; streaming required (~672 GB download those two). python-edu requires boto3 S3 fetch from softwareheritage (card: ~6h on 16-core us-east-1); do not treat 7.7M metadata rows as text tokens. load_dataset('HuggingFaceTB/smollm-corpus', 'cosmopedia-v2', split='train'). Do not concat with already-cataloged Cosmopedia / FineWeb-Edu as extra n.Ready parquet; load_dataset('HuggingFaceTB/smoltalk2', '<Mid|SFT|Preference>', split='<split>'). Streaming recommended (~87.75 GB). SFT-ready ChatML.
Collection methodDownloadDownload
StaticUnknown (HF lastModified 2024-09-06; one-shot).Unknown (HF lastModified 2025-10-31; one-shot SmolLM3 recipe dump)
ProcessedUnknownUnknown
SummaryTrain small LMs (SmolLM 135M/360M/1.7B) on a curated educational+synthetic mixThis dataset contains three subsets (Mid, SFT, Preference) that correspond to the three phases of Post-Training for [SmolLM3-3B](https://huggingface.co/HuggingFaceTB/SmolLM3-3B). You can find more details in our [blog post](https://huggingface.co/blog/smollm3) about how we used the data in each of the stages [SmolLM3](https://huggingface.co/HuggingFaceTB/SmolLM3-3B).