# CodeX-5M-Thinking

- **ID:** 335
- **Kind:** dataset
- **URL:** https://huggingface.co/datasets/Modotte/CodeX-2M-Thinking
- **Authors:** Modotte
- **Venue:** Modotte
- **Published:** 2025
- **Source:** huggingface
- **Language:** en
- **Access:** free
- **License:** apache-2.0
- **License family:** Permissive (auto-classified)
- **Tags:** hf-dataset-language-modeling
- **Topics:** Language Modeling, QA
- **Added:** 2026-07-17
- **Verified:** 2026-07-17
- **Research status:** done
- **Page:** https://papers.projxon.ai/entries/335

## Summary

src="https://cdn-uploads.huggingface.co/production/uploads/677fcdf29b9a9863eba3f29f/ZP4YDDIRewH5M-jKmE4Rt.png"

## Attributes

- **Purpose:** Language Modeling, QA
- **Scale:** 1M<n<10M
- **Time period:** created 2025-11-15; updated 2026-02-10
- **Author type:** mixed

## From the source (fetched 2026-10-03)

- **Repository:** Modotte/CodeX-2M-Thinking (Hugging Face)
- **Created:** Nov 15, 2025 (Hugging Face)
- **Last updated:** Feb 10, 2026 (Hugging Face)
- **Downloads (last month):** 914 (Hugging Face)
- **Likes:** 128 (Hugging Face)
- **Size:** 1M to 10M rows (Hugging Face)
- **Modalities:** text (Hugging Face)
- **Tasks:** text-generation, question-answering (Hugging Face)
- **Formats:** parquet (Hugging Face)

## Dataset profile

- **Scale:** Hub/datasets-server default train 2,189,671 / 2 columns / 251 parquet shards / parquet 24,444,866,393 bytes (~24.44 GB) / in-memory 57,683,757,757 (~57.68 GB). usedStorage 24,444,866,393 bytes (~24.44 GB). YAML size_categories 1M<n<10M matches 2.19M. Card “2 million examples” undersells Hub n; pretty_name CodeX-5M-Thinking / YAML dataset_name Modotte/CodeX-5M-Thinking oversells n — catalog Hub 2,189,671, not 2M and not 5M. siblings 253 (README + gitattributes + data/shard_00000..00250.parquet). Hub overview 25.0K (24,999) downloads / 126 likes at check; API downloads 1,437. gated=false; private=false.
- **Format:** Parquet data/shard_00000.parquet … shard_00250.parquet (251 files). Columns input, output. Single default train. No val/test.
- **Type:** Synthetic coding SFT corpus / problem + <think> solution
- **License:** Apache-2.0 (HF card YAML apache-2.0) for the packaging. NVIDIA source-dataset licenses and teacher-model terms still apply where examples were taken from NVIDIA dumps. Catalog both. Not independently lawyered here.
- **Cost:** Free
- **Languages:** English problem statements (card language:en). Independently inspected train 0–2 / 100 prompts are English contest statements; solutions are Python with <think> English. Card also claims Java / C++ / JavaScript coverage — per-language percents of the 2,189,671 Unknown without aggregating. Not independently LID-ed here.
- **Modality:** Text-only. Hub modality:text. No images/audio.
- **Domain:** synthetic coding SFT; contest programming; algorithms; step-by-step code reasoning
- **Time period:** Fully synthetic (no real-world dates). HF createdAt 2025-11-15T16:35:25Z; lastModified 2026-02-10T07:23:38Z. One-shot generated dump, not a live recrawl. Card bibtex year 2024 vs Hub created 2025-11 — catalog both.
- **Purpose:** Ungated input/output coding dump with <think> traces for code-generation / reasoning SFT
- **Used for:** None named beyond card fine-tune / benchmark claims. Hub overview 25.0K (24,999) downloads / 126 likes at check; API downloads 1,437. Distinct from already-cataloged OpenCodeReasoning / rStar-Coder / OpenCoder FineWeb Code Corpus / MathX-5M. Do not concat those or NVIDIA source slices as extra n.
- **Authors:** Packager Parvesh Rawal / Modotte. Human vs synthetic: card fully synthetic (closed+open models) plus “expert-verified” / NVIDIA-sourced examples. No per-row author column. Unique-prompt histogram Unknown.
- **Bias:** Card claimed mix Basic 30% / Intermediate 30% / Advanced 40% — not independently re-counted here. AtCoder/Codeforces-style contest priors on inspected rows (Takahashi eating contest; ice-cream tree coloring). Closed-model distill ToS. Card: many examples taken from NVIDIA existing datasets — possible overlap with already-cataloged OpenCodeReasoning / rStar-Coder; do not add those n. Distinct from already-cataloged MathX-5M (same Modotte lineup, different card).
- **Text quality:** Independently inspected train 0: AtCoder eating-contest binary-search solution with a working Python main(); train 1 a cycle-detection / Kahn topological-sort course-schedule sketch; train 2 a GCF/Euclid function with extra same-number / non-int guards. Residual: datasets-server statistics are PARTIAL 189,891 of 2,189,671 (~8.67%) — do not treat prefix histograms as the full dump; pretty_name 5M vs Hub 2.19M; card “2 million”; bibtex year 2024 vs created 2025; long <think> traces (PARTIAL output max 92,627 chars). Not independently re-executed on all 2.19M here.
- **Sample size:** Single default train 2,189,671. 251 shards are the partition, not extra n. No Hub val/test. Do not add card 2M / pretty_name 5M or the 189,891 statistics prefix as extra unique n. Do not concat already-cataloged OpenCodeReasoning / rStar-Coder / MathX-5M as extra n of this card.
- **Long context:** Yes (long CoT). datasets-server PARTIAL 189,891-row prefix: input chars mean 1,361 / median 1,232 / min 33 / max 22,378; output mean 25,298 / median 21,584 / min 750 / max 92,627. Do not treat prefix as the full 2.19M. Exact full-dump token histogram Unknown without aggregating 2,189,671 rows.
- **Intermediate steps:** Yes (synthetic generation; card: dedup / normalize / quality score / ranking / expert selection / pytest-style verify). Exact generator script not on this card. Independent of NVIDIA dumps except as acknowledged source mix.
- **Idea quality:** High
- **Novelty:** High (public 2.19M thinking-code dump vs already-cataloged OpenCodeReasoning / rStar-Coder / MathX-5M; remaining dump leftover; partial NVIDIA source overlap)
- **Text conversion:** Ready parquet; load_dataset('Modotte/CodeX-2M-Thinking', split='train', streaming=True). ~24.44 GB / 251 shards — streaming recommended. Do not concat card “2 million” or pretty_name 5M as the corpus n. Do not concat OpenCodeReasoning / rStar-Coder / MathX-5M as extra n.
- **Collection method:** Download
- **Static:** Unknown (HF lastModified 2026-02-10; frozen generated dump).
- **Processed:** Unknown

## Links

- Dataset: https://huggingface.co/datasets/Modotte/CodeX-2M-Thinking
- Related: https://huggingface.co/datasets/Modotte/CodeX-2M-Thinking
- Related: https://huggingface.co/datasets/Modotte/MathX-5M

## Research notes

- downloads=2097; likes=125
- Remaining high-value dump HF (data-source-dump.jsonl; public ungated coding-reasoning text). Discord posted https://huggingface.co/datasets/Modotte/CodeX-2M-Thinking (message 1493399250774528170). gated=false; public. Catalog Hub 2,189,671 / ~24.44 GB parquet / usedStorage ~24.44 GB / 251 shards, not pretty_name CodeX-5M-Thinking and not card “2 million” as n. Cite Rawal / Modotte CodeX-2M-Thinking (bibtex 2024; Hub 2025). Not in papers_local.csv. Not on the Aug 13 live Datasets sheet export. Distinct from already-cataloged OpenCodeReasoning / rStar-Coder / OpenCoder FineWeb Code Corpus / MathX-5M. Hub overview 25.0K vs API 1,437 — catalog both. Residual: PARTIAL 189,891 stats; 5M pretty_name; NVIDIA mix; long traces.

## Similar entries

- [harmonic-reasoning-v1](https://papers.projxon.ai/entries/339) (dataset, #339)
- [Claude Opus 4.6/4.7 Reasoning Dataset](https://papers.projxon.ai/entries/390) (dataset, #390)
- [stem-reasoning-complex](https://papers.projxon.ai/entries/213) (dataset, #213)
- [Medical-Reasoning-SFT-Mega](https://papers.projxon.ai/entries/210) (dataset, #210)
- [Open Wikipedia (Markdown)](https://papers.projxon.ai/entries/308) (dataset, #308)
- [AI/ML Master Foundations — Curated Research Book Collection](https://papers.projxon.ai/entries/295) (dataset, #295)
