Cosmopedia: how to create large-scale synthetic data for pre-training Large Language Models
Cosmopedia is an open synthetic pre-training dataset of over 30 million files and 25 billion tokens of textbooks, blog posts, stories and WikiHow-style articles generated with Mixtral-8x7B-Instruct to reproduce Phi-1.5's training data. Most of the effort went into prompt curation to keep diversity high and duplication under 1%. Prompts were seeded from curated educational sources (Stanford, Khan Academy, OpenStax, WikiHow), from RefinedWeb samples clustered into 145 topics (112 kept, over 80% of prompts), and from UltraChat/OpenHermes for common-sense stories. Varying audience and style with explicit format instructions multiplies prompts, while naive audience swaps still produce duplicates.
Related posts
- SmolLM - blazingly fast and remarkably powerful
Hugging Face hardMasterSmolLM is a family of small language models (135M, 360M, 1.7B parameters) trained on SmolLM-Corpus, a new dataset combining Cosmopedia v2 synthetic textbooks (28B tokens), classifier-filtered Python-Edu (4B tokens) and deduplicated FineWeb-Edu (220B tokens). Ablations showed that better prompts mattered more than stronger generator models: BISAC-based topics with search-retrieved seed pages, plus textbooks aimed at middle-school readers, gave the best scores on most benchmarks. Filtering Python with an LLM-annotated educational classifier made training converge more than 3x faster. Using a trapezoidal LR schedule, MobileLLM-style deep-narrow architectures with GQA for the small models, and training well past Chinchilla-optimal token counts, the models beat MobileLLM, Qwen2 and Phi-1.5 in their size classes and are small enough to run on phones and in the browser.
- Open Preference Dataset for Text-to-Image Generation by the 🤗 Community
Hugging Face easyNoviceData is Better Together released an Apache 2.0 text-to-image preference dataset of 10K pairs, with over 30K annotations from more than 250 community members collected in under two weeks. Imgsys prompts were deduplicated, filtered for NSFW content with text and image classifiers plus manual review, and rewritten with distilabel across style categories and simple versus complex variants. Images came from FLUX.1-dev and Stable Diffusion 3.5 Large. Annotators found FLUX better for anime, manga and 3D, and SD3.5 better for cinematic and art styles. A LoRA fine-tune of FLUX-dev on the chosen samples improved its weaker art and cinematic outputs.
- Synthetic data: save money, time and carbon with open source
Hugging Face mediumAdeptAn open-source LLM (Mixtral-8x7B-Instruct) can annotate task-specific data that is then used to fine-tune a small, efficient student model. On financial_phrasebank investor sentiment, a RoBERTa model trained this way matches GPT-4 at 94% accuracy and 0.94 F1 macro. It costs about $2.7 versus $3061 to analyze a large news corpus, emits roughly 0.12 kg CO2 versus an estimated 735–1100 kg, and responds in 0.13 seconds versus multiple seconds. The walkthrough covers chat templates, output cleaning, and Chain-of-Thought plus Self-Consistency prompting, which lifts zero-shot accuracy above 91.6%. It then covers validating the synthetic labels and fine-tuning with AutoTrain.
- Designing synthetic datasets for the real world: Mechanism design and reasoning from first principles
Google Research hardMasterSimula treats synthetic data generation as dataset-level mechanism design. It works without seed data and decomposes generation into separately controllable axes: reasoning-built hierarchical taxonomies for global coverage, 1-of-N meta-prompting for local diversity, a configurable complexification step for difficulty, and a dual-critic loop for label quality. With Gemini 2.5 Flash as teacher and Gemma-3 4B as student, on datasets of up to 512K points across five domains, the full system beat simpler baselines and reached higher accuracy with fewer samples. The best settings were domain-specific: high complexity gave a 10% gain on GSM8k but hurt on LEXam, where the teacher was weaker. The work also proposes reasoning-based evaluation metrics, Taxonomic Coverage and Elo-style Calibrated Complexity Scoring.
- NVIDIA Releases 6 Million Multi-Lingual Reasoning Dataset
Hugging Face mediumAdeptNemotron Post-Training Dataset V2 translates NVIDIA's English reasoning post-training data into French, Spanish, German, Italian and Japanese, translating prompts and responses while keeping the original English reasoning chains. LLM translation of long SFT data tends to hallucinate, so the pipeline translates line by line, skips code blocks, and forces outputs inside special brackets so malformed translations can be detected and discarded. Discard rates reach 26% for Spanish code data, and fastText language ID filtering removes another 1.1% of examples. Qwen2.5-32B-Instruct-AWQ (German) and Qwen2.5-14B-Instruct (other languages) did the translation, chosen for quality, single-A100 fit and Apache 2.0 licensing. The release ties in with Nemotron Nano 2 9B, a hybrid Transformer–Mamba model with a configurable thinking budget.