← Datasets

Compare

KodCode-V1
#1166 · remove
SmolLM-Corpus
#1163 · remove
Kinddatasetdataset
Published20252024
LicenseCC BY-NC 4.0 (HF card YAML cc-by-nc-4.0). Non-commercial. GPT-4o-0513 / Qwen2.5-Coder / DeepSeek-R1 terms may still apply if used to train a distributed model. Upstream LeetCode/Codeforces/APPS/TACO/CodeContests seed licenses remain.ODC-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.
License familyNon-commercialPermissive
AccessFreeFree
Language codesenen
Modalitiestexttext
Size100K to 1M rows100M to 1B rows
Downloads (last month)13,96051,249
Likes119492
Last updated2025-03-172024-09-06
Formatsparquetparquet
ScalePaper 447K verified triplets after style rewrite (279K after self-verification + 168K Complete/function-signature reformats). YAML default train 484,097 / use_with_caution 3,335 (sum 487,432) / download_size 2,642,644,096 bytes (~2.64 GB) / dataset_size 7,496,353,254 bytes (~7.50 GB). Hub/datasets-server train 484.1K / 19 columns / 15 parquet ~2.6 GB plus use_with_caution 3.3K / 1 parquet 21.0 MB. size_categories 100K<n<1M. Card subset counts (≈446K, not extra overlapping n): Prefill 43K; Leetcode 27K; Codeforces 33K; Apps 21K; Taco 81K; Code Contests 36K; Algorithm 31K; Data Structure 34K; Docs 43K; Filter 77K; Package 7K; Evol 13K. HF train 484k vs paper 447k is v1.0+v1.1 Online Judge restyle — catalog YAML 484,097. Hub overview 42.1K downloads / 114 likes at check. gated=false.Hub 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.
Formatparquet under data/train-* and data/use_with_caution-*. Columns: version, style, subset, question_id, question, solution, test, test_info, gpt_pass_sequence, gpt_pass_trial_num, gpt_difficulty, gpt_pass_percentage, trials, chosen_trial, metadata, benchmark_similarity, benchmark_instruction, benchmark_task_id, filter_reason. Single default config; train + use_with_caution.parquet 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.
TypeAnnotated synthetic code SFT/RL / question + verified solution + unit testsPretraining mix / synthetic textbooks + educational web + Python-edu metadata
CostFreeFree
LanguagesEnglish questions + Python solutions/tests (card language:en). Preview is English instruct + pytest. No LID table. Per-language percents N/A.English 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.
ModalityText-only (English + Python). No images.Text-only (English web/textbooks + Python source if downloaded). No images.
Domaincode generation; Python interview/contest/DSA; verifiable unit tests; SFT and RLSLM pre-training; synthetic textbooks; educational web; educational Python
Time periodPaper arXiv 2503.02951 (Hub publishedAt 2025-03-04T19:17:36Z; Daily Papers 2025-03-06). HF createdAt 2025-02-28; lastModified 2025-03-17T07:56:27Z. Card v1.1 adds Online Judge style. Teacher GPT-4o-0513; SFT sibling uses DeepSeek R1. One-shot synthetic release, not a live GitHub scrape.Blog 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.
PurposeLargest fully-synthetic open question–solution–test dump for coding SFT and RL, with self-verified pytest/stdio testsTrain small LMs (SmolLM 135M/360M/1.7B) on a curated educational+synthetic mix
Used forPaper KodCode-tuned models reported above Qwen2.5-Coder-32B-Instruct and DeepSeek-R1-Distill-Llama-70B on HumanEval(+)/MBPP(+)/BigCodeBench/LiveCodeBench. Hub siblings KodCode-V1-SFT-R1 / KodCode-V1-SFT-4o are post-training rewrites — not extra n of this RL dump. Hub overview 42.1K downloads / 114 likes at check; owner listing 3,854 downloads. Paper 34 upvotes / GitHub 321 stars at paper-metadata check.SmolLM 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).
AuthorsXu (UW; Microsoft GenAI internship), Liu (Microsoft GenAI), Yin/Zhou (UT Austin), Poovendran (UW); arXiv 2503.02951. Questions synthesized from Magpie-Prefill (Qwen2.5-Coder-7B-Instruct), GPT-4o-0513 expansions of LeetCode/Codeforces/APPS/TACO/CodeContests seeds, DSA snippets, package docs, Magpie Filter, Package Instruct, Evol Instruct. Solutions/tests by GPT-4o-0513. Not human contest authors for the synthesized slice.Ben 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.
BiasFully synthetic GPT-4o Python. Contest-assessment subsets (Taco 81K largest) plus Magpie Prefill/Filter and package Docs. gpt_difficulty is pass-rate over ≤10 self-verification trials (easy/medium/hard), not human contest rating. benchmark_similarity vs HumanEval/MBPP/BigCodeBench/LiveCodeBench is a column. Distinct from already-cataloged TACO / OpenCodeInstruct / OpenCodeReasoning / CodeForces-CoTs / rStar-Coder. SFT-R1/SFT-4o/Light-RL-10K are siblings — not extra n.Educational-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).
Text qualityPreview row 0 (v1.0 instruct Leetcode_3_I max product of two distinct elements) is a well-posed Python function with pytest tests; chosen trial_gpt4o_7 passed at 100% branch coverage after 9 fails (gpt_pass_percentage 0.1 → gpt_difficulty hard). Paper self-verification vs human tests: 97.5% MBPP val / 99.47% LiveCodeBench-V5 after format/precision review. Residual: this item is interview-easy despite the hard pass-rate label; benchmark_similarity 0.746 is high vs the contamination set; CC BY-NC; GPT-4o terms; not independently re-executed here.cosmopedia-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.
Sample sizedefault train 484,097 / use_with_caution 3,335. subset/style/version/gpt_difficulty are columns not Hub configs. Paper 447K is the v1.0 verified set before the v1.1 Online Judge restyle. Do not add KodCode-V1-SFT-R1 (483,437) / KodCode-V1-SFT-4o (409,552) / KodCode-Light-RL-10K (10,000) as extra n. Do not concat with already-cataloged TACO or OpenCodeInstruct.Three 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.
Long contextMixed (short Prefill vs contest/Docs items; YAML ~7.50 GB / 487,432 ≈ ~15 KB uncompressed/row including trials). Exact token histogram Unknown without aggregating.Mixed (Cosmopedia v2 textbooks; FineWeb-Edu pages, preview 755 tok). Exact token histogram Unknown; blog 28B/220B/4B.
Intermediate stepsYes (12-subset question synthesis; GPT-4o-0513 solution+test generation with pytest-cov 100% branch coverage; up to 10 retries on hard items; Complete/Online-Judge restyle; DeepSeek-R1 test-based reject sampling lives on the SFT-R1 sibling). Code MIT-style at github.com/KodCode-AI/kodcode.Yes (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.
Idea qualityHighHigh
NoveltyHigh (public 447–484k self-verified Python question–solution–test triplets vs already-cataloged TACO 26k human contests / OpenCodeInstruct Genetic-Instruct)High (public SmolLM mix; Cosmopedia v2 39M is not already-cataloged Cosmopedia v1)
Text conversionReady parquet; load_dataset('KodCode/KodCode-V1', split='train'). ~2.64 GB download — streaming optional. use_with_caution is the filtered split. Do not concat SFT-R1 / SFT-4o / Light-RL-10K as extra n of this RL dump.Ready 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.
Collection methodDownloadDownload
StaticUnknown (HF lastModified 2025-03-17; v1.1 Online Judge add; one-shot).Unknown (HF lastModified 2024-09-06; one-shot).
ProcessedUnknownUnknown
SummaryLargest fully-synthetic open question–solution–test dump for coding SFT and RL, with self-verified pytest/stdio testsTrain small LMs (SmolLM 135M/360M/1.7B) on a curated educational+synthetic mix