← Datasets

Compare

TACO
#1162 · remove
CodeForces-CoTs
#1160 · remove
Kinddatasetdataset
Published20232025
LicenseApache-2.0 (HF card YAML). TACO.py Info.license string says MIT — conflict; YAML/tag used here. Mixed upstream (APPS, CodeContests, Description2Code MIT, contest-site terms). HackerRank legal rights Unknown (card).HF card YAML/tag CC-BY-4.0; README body ODC-By 4.0 — conflict. Both attribution licenses; YAML/tag used here with the README ODC-By note. DeepSeek-R1 terms may still apply if used to train a distributed model. Codeforces problem-statement terms remain.
License familyPermissivePermissive
AccessFreeFree
Language codescode—
Modalitiestexttext
Size10K to 100K rows100K to 1M rows
Downloads (last month)20,4935,548
Likes144226
Last updated2024-06-192025-03-28
Taskstext-generation—
Formats—parquet
ScaleYAML ALL train 25,443 / test 1,000 (sum 26,443) / download_size 2,419,844,942 bytes (~2.42 GB) / dataset_size 4,720,792,728 bytes (~4.72 GB). Paper 26,443 problems / 1,539,152 verified Python 3 solutions (from 2,045,502 before dedup; mean 58.21 solutions/problem). Train mean 51.6 tests/problem; test mean 202.3. LFS ALL/ 9 train parquet 286.9+327.2+177.5+179.5+205.7+271.7+213.8+260.1+251.6 MB plus test 245.8 MB. Loading-script train/*.arrow 9 files ~4.24 GB listed (529.6+612.9+335.2+402.7+417.0+503.1+447.5+525.7+465.6 MB) — same n, do not concat with ALL parquet. size_categories 10K<n<100K. datasets-server 501 (arbitrary Python / trust_remote_code). usedStorage Unknown. Hub overview 81.5K downloads / 143 likes at check. gated=false. Paper train 25,433 vs YAML 25,443 — catalog YAML 25,443.Card ~10k CF problems, up to five R1 traces, totaling close to 100k samples. YAML default solutions train 47,780 / download_size 1,887,049,179 bytes (~1.89 GB) / dataset_size 4,968,074,271 bytes (~4.97 GB). 10 LFS parquet ~173.6–208.2 MB. Other configs are overlapping subsets — not extra n: checker_interactor 35,718; solutions_decontaminated 40,665; solutions_py 9,556; solutions_py_decontaminated 8,133; solutions_short_and_long_decontaminated 16,266; solutions_w_editorials 29,180; solutions_w_editorials_decontaminated 24,490; solutions_w_editorials_py 11,672; solutions_w_editorials_py_decontaminated 9,796; test_input_generator 20,620. Config-sum 253.9K / YAML download_size sum ~9.69 GB is stored overlap, not extra problems. size_categories 100K<n<1M. Hub/datasets-server solutions 47.8K / 23 columns. Hub overview 80.5K downloads / 223 likes at check. gated=false.
Formatparquet under ALL/ plus Arrow train/test used by TACO.py (trust_remote_code). Columns: question, solutions, starter_code, input_output, difficulty, raw_tags, name, source, tags, skill_types, url, Expected Auxiliary Space, time_limit, date, picture_num, memory_limit, Expected Time Complexity. Default config ALL.parquet per config (solutions/train-00000-of-00010.parquet …). Default config solutions. Columns include id, contest metadata, title/description/formats/examples/editorial, prompt, generation, finish_reason, api_metadata, messages. Decontaminated configs add tests plus accepted/failed_solutions.
TypeAnnotated contest-code corpus / problem + Python solutions + unit tests + skill/difficulty metadataAnnotated code-reasoning SFT / problem + R1 CoT + messages
CostFreeFree
LanguagesEnglish problem statements + Python 3 solutions (card language:code). No LID table. Per-language percents N/A.English problem statements + C++/Python solutions (card). Prompt is English. No LID table. Per-language percents N/A.
ModalityText-only (English + Python). picture_num flags optional problem images — not extra problem n; not a vision corpus.Text-only (English statements + C++/Python). No images.
Domaincompetitive programming; Python code generation; algorithmic skill labelscompetitive programming; Codeforces; code reasoning SFT
Time periodPaper arXiv 2312.14852 (Hub publishedAt 2023-12-22T17:25:42Z). HF createdAt 2023-12-20; lastModified 2024-06-19T09:16:49Z. Card: some test-set cases later removed/modified — use newest version. One-shot contest harvest, not a live scrape.HF createdAt 2025-02-27; lastModified 2025-03-28T12:21:06Z. Problems from the first Codeforces contests through 2025. One-shot DeepSeek-R1 generation, not a live scrape.
PurposeTrain and evaluate NL-to-Python models on contest problems with topics/algorithms/skills/difficulty metadataTrain reasoning models on Codeforces tasks using DeepSeek-R1 CoT traces (C++ default; Python _py configs)
Used forPaper TACO StarCoder finetunes (flagopen/starcoder*). Already-cataloged OpenCodeInstruct used 25,443 TACO questions as algorithmic seeds — this is the original problem+solution dump, not extra OpenCodeInstruct n. Hub overview 81.5K downloads / 143 likes at check. Paper 4 upvotes / GitHub 240 stars at paper-metadata check.Open-R1 code SFT. Hub overview 80.5K downloads / 223 likes at check; owner listing 6,466 downloads. Sibling open-r1/codeforces (problems+editorials; 101 likes / 12.0K downloads) is the problem dump — not extra n.
AuthorsLi, Fu, Zhang, Huang, Sun, Lyu, Liu, Jin, Li (BAAI / Shandong Normal / Peking University; arXiv 2312.14852). Problems from contest platforms (Codeforces, CodeChef, HackerRank, GeeksforGeeks, plus APPS/CodeContests/Description2Code). Human contest authors; solutions are submitted Python 3.Hugging Face Open-R1 (Penedo, Lozhkov, Kydlíček, Ben Allal, Beeching, Piqueres Lajarín, Gallouédec, Habib, Tunstall, von Werra). Traces generated by DeepSeek-R1. Problem authors are Codeforces setters; card ~60% have human editorials.
BiasPython-3-only (paper: C++ dominates contests; they kept Python for cleaner syntax). Contest-platform mix (Codeforces/CodeChef/HackerRank/GfG plus APPS/CodeContests). Difficulty configs EASY–VERY_HARD and 8 skill filters are views of ALL, not extra n. Distinct from already-cataloged OpenCodeInstruct / CodeForces-CoTs / DeepCoder Preview Dataset / rStar-Coder.Codeforces contest mix (ICPC/CF rounds); C++ default vs one Python completion per problem in _py. Unfiltered traces (card ~84% of Python pass public tests). Decontaminated configs drop 8-gram overlap vs AIME24/25, GPQA Diamond, MATH-500, LiveCodeBench. Distinct from already-cataloged OpenCodeInstruct / OpenCodeReasoning / DeepCoder Preview Dataset / rStar-Coder.
Text qualityREADME sample is CF 1492/B (card reordering) with multiple Python solutions and I/O tests. Paper: unit-test verification; test-set cases later patched (card Key Update). Residual: datasets-server 501 so quality not independently sampled across all 26k here; some picture_num>0 items; HackerRank license Unknown (card). Do not paste long solutions as gold.solutions_py preview row 0 is 2012 CF 153/B Binary notation (n≤1e6); R1 632 completion_tokens then print(bin(n)[2:]) — a trivial item in the unfiltered set. finish_reason stop. Card: traces not filtered for correctness. Residual: easy/historic contests; R1 overthink; C++/Python mix; DeepSeek-R1 terms; not independently executed here.
Sample sizeALL train 25,443 / test 1,000. Difficulty configs (EASY/MEDIUM/MEDIUM_HARD/HARD/VERY_HARD) and skill configs are filters of ALL — not extra n. Do not concat with already-cataloged OpenCodeInstruct or open-r1/codeforces-cots. Unofficial DONG19/TACO parquet remap is 26,443 — not extra n.Default solutions 47,780. _py is one completion per problem (9,556). _w_editorials / _decontaminated / short_and_long / checker_interactor / test_input_generator are overlapping views. No val/test. Do not concat with open-r1/codeforces problem dump or already-cataloged OpenCodeInstruct.
Long contextMixed (full problem + many solutions; YAML ~4.72 GB / 26,443 ≈ ~179 KB uncompressed/row). Exact token histogram Unknown without aggregating.Yes (R1 CoTs; solutions YAML ~4.97 GB / 47,780 ≈ ~104 KB uncompressed/row). Exact token histogram Unknown; preview 632 completion_tokens on a trivial item so the mean is higher.
Intermediate stepsYes (scrape CodeChef/CF/HR/GfG; merge APPS/CodeContests/Description2Code; decomment/dedup solutions; augment tests; 968→36 algorithmic categories; unit-test verify). Code at github.com/FlagOpen/TACO.Yes (compile open-r1/codeforces from CF; prompt R1 for C++/Python solutions, editorial-conditioned variants, short+long, test-input generators, checker/interactor classifiers; 8-gram decontam). Decontam script github.com/huggingface/open-r1/blob/main/scripts/decontaminate.py.
Idea qualityHighHigh
NoveltyHigh (public 26k labeled contest dump with 1.54M solutions vs already-cataloged OpenCodeInstruct Genetic-Instruct)High (public ~48k R1 CF traces vs already-cataloged OpenCodeInstruct Genetic-Instruct / OpenCodeReasoning)
Text conversionReady parquet; load_dataset('BAAI/TACO', split='train') uses default ALL. ~2.42 GB parquet / ~4.24 GB arrows — streaming recommended. datasets-server 501 — do not wait on viewer. Filter difficulties=[...] or skills=[...] are views, not extra n. Do not concat ALL parquet + train arrows.Ready parquet; load_dataset('open-r1/codeforces-cots', 'solutions'). Default solutions ~1.89 GB — streaming recommended. Do not concat configs as extra n.
Collection methodDownloadDownload
StaticUnknown (HF lastModified 2024-06-19; test cases patched; one-shot).Unknown (HF lastModified 2025-03-28; contests through 2025; one-shot).
ProcessedUnknownUnknown
SummaryTrain and evaluate NL-to-Python models on contest problems with topics/algorithms/skills/difficulty metadataTrain reasoning models on Codeforces tasks using DeepSeek-R1 CoT traces (C++ default; Python _py configs)