← Datasets

Compare

cosmopedia
#313 · remove
smoltalk2
#56 · remove
Kinddatasetdataset
Published20242025
Licenseapache-2.0Mixed. 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
Size10M to 100M rows1M to 10M rows
Downloads (last month)22,41233,862
Likes755173
Last updated2024-08-122025-10-31
Formatsparquetparquet
ScaleYAML: 31,064,744 samples across 8 configs. Card: >30M files / 25B tokens (Mistral-7B tokenizer on the text column). Parquet download_size 92,200,777,603 bytes (~92.2 GB / 85.9 GiB); uncompressed dataset_size ~165.9 GB (154.5 GiB); 336 parquet files. size_categories 10M<n<100M. Hub 577.2K downloads / 740 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 per config (prompt, text_token_length, text, seed_data, format, audience). Eight configs under data/{split}/train-*.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 corpus / synthetic textbooks and web-seeded generationsPost-training mix / mid-train + SFT + preference
CostFreeFree
LanguagesEnglish 100% (card language:en; Mixtral generations). Seed web was English-like RefinedWeb-style; educational seeds (Stanford/OpenStax/KhanAcademy) are English courses.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-onlyText-only
Domainsynthetic textbooks/blogposts/stories/WikiHow; English pretraining; web-topic coverage via Mixtralpost-training; math/code/science reasoning; multilingual instruction; tool-calling; long-context SFT; preference alignment
Time periodHF createdAt 2024-02-18; lastModified 2024-08-12. Mixtral-8x7B-Instruct-v0.1 generations (2023–2024). Seed web similar to RefinedWeb; Stanford/OpenStax/KhanAcademy course outlines scraped; AutoMathText and UltraChat/OpenHermes-2.5 seeds. Phi-1.5 inspiration arXiv 2309.05463 (2023-09). Discord posted 2026-04-06.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.
PurposeLargest open synthetic pretraining set at release (~30M files / ~25B tokens) mapping RefinedWeb/RedPajama world knowledge into cleaner textbook-like textThree-stage SmolLM3-3B post-training mix (mid-train reasoning, dual think/no_think SFT, APO preference)
Used forCosmo-1B (HuggingFaceTB/cosmopedian-1b). SmolLM / SmolLM2 use Cosmopedia v0.2 inside HuggingFaceTB/smollm-corpus, not this v0.1 repo. Hub 577.2K downloads / 740 likes at check. Discord posted the HF pointer.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.
AuthorsAll text generated by Mixtral-8x7B-Instruct-v0.1. Seed authors: anonymous web pages (clustered internal crawl), Stanford/OpenStax/KhanAcademy course pages, AutoMathText, UltraChat world-questions, OpenHermes-2.5, scraped WikiHow titles. HuggingFaceTB (Ben Allal, Lozhkov, Penedo, Wolf, von Werra) curated prompts/clusters.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.
BiasSynthetic Mixtral style can be uniform (iterated prompts to cut 'Once upon a time' / boilerplate intros). Web splits (~73.3% of rows) inherit cluster topics after dropping 35/145 clusters (adult and very-uneducational). Educational seeds overweight US university/Khan/OpenStax syllabi. Audience/format mix (grade-school through researchers; textbook vs blog vs story) is the main diversity lever. Residual Phi-style textbook tone.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 qualityPrompted Mixtral textbooks/stories/posts; <1% MinHash duplicates after varying format+audience on the same seed. Decontaminated with 10-gram retrieval + difflib (keep if matched_substrings/benchmark_len ≤ 0.5) vs MMLU, HellaSwag, PIQA, SIQA, Winogrande, OpenBookQA, ARC-easy, ARC-challenge (card reports small removal counts per split). v0.1 still has redundant titles/intros on web_samples_v1; v2 prompts asked for depth-over-breadth and no title. Not a web-quality crawl like FineWeb.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 sizeConfigs (train only): web_samples_v1 12,426,348 (40.0%); web_samples_v2 10,345,867 (33.3%); stories 4,992,964 (16.1%); auto_math_text 1,949,895 (6.3%); stanford 1,020,024 (3.3%); wikihow 179,191; openstax 126,332; khanacademy 24,123. Web v1+v2 = 73.3% of rows. Some seeds repeated under different format/audience (Stanford used 4 styles).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 (synthetic articles; text_token_length is Mistral-7B tokens, sample rows ~500–600 tokens; textbooks can be longer than stories). Not book-length documents.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 (web topic clustering + Mixtral educational scores; manual drop of 35/145 clusters; seed-conditioned prompts with format+audience; Mixtral generation; MinHash dedup; 10-gram+difflib decontam). Code: github.com/huggingface/cosmopediaYes (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 (first 25B-token open synthetic textbook mix at v0.1; Phi-1.5-style at web scale)High (public 8.6M-row SmolLM3 post-train recipe with dual think/no_think and documented stage weights)
Text conversionReady parquet; load_dataset('HuggingFaceTB/cosmopedia', '<config>'). Full download ~92.2 GB. Smaller Cosmopedia-100k subset exists.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-08-12; this repo is v0.1. Cosmopedia v0.2 lives in HuggingFaceTB/smollm-corpus, already noted on other catalog rows)Unknown (HF lastModified 2025-10-31; one-shot SmolLM3 recipe dump)
ProcessedUnknownUnknown
SummaryNote: Cosmopedia v0.2 is available at [smollm-corpus](https://huggingface.co/datasets/HuggingFaceTB/smollm-corpus)** ``` User: What do you think "Cosmopedia" could mean? Hint: in our case it's not related to cosmology.This 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).