# rStar-Coder

- **ID:** 58
- **Kind:** dataset
- **URL:** https://huggingface.co/datasets/microsoft/rStar-Coder
- **Authors:** microsoft
- **Venue:** microsoft
- **Published:** 2025
- **Source:** huggingface
- **Access:** free
- **License:** cc-by-4.0
- **License family:** Permissive (auto-classified)
- **Added:** 2026-07-17
- **Verified:** 2026-07-17
- **Research status:** done
- **Page:** https://papers.projxon.ai/entries/58

## Summary

pretty_name: rStar-Coder configs: config_name: synthetic_sft data_files: split: train path: synthetic_sft/*.parquet config_name: synthetic_rl data_files: split: train path: synthetic_rl/*.parquet config_name: synthetic_rl_testcase data_files: split: train path: synthetic_rl_testcase/*.parquet config_name: seed_sft data_files: split: train path: seed_sft/*.parquet config_name: seed_testcase data_files: split: train path: seed_testcase/*.parquet license: cc-by-4.0

## Attributes

- **Scale:** 1M<n<10M
- **Used for:** arXiv: 2505.21297
- **Time period:** created 2025-06-11; updated 2025-07-20
- **Author type:** unknown

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

- **Repository:** microsoft/rStar-Coder (Hugging Face)
- **Created:** Jun 11, 2025 (Hugging Face)
- **Last updated:** Jul 20, 2025 (Hugging Face)
- **Downloads (last month):** 10,560 (Hugging Face)
- **Likes:** 248 (Hugging Face)
- **Size:** 1M to 10M rows (Hugging Face)
- **Modalities:** code, text (Hugging Face)
- **Formats:** parquet (Hugging Face)

## Dataset profile

- **Scale:** Paper Table 1: 418,314 verified problems (37,754 expert + 380,560 synthetic) and 580K long-reasoning solutions. HF size_categories 1M<n<10M; usedStorage 506,050,071,749 bytes (~506.05 GB); 867 siblings; card warns all splits >480 GB. datasets-server (partial): seed_sft 591,660 / 12.08 GB parquet; synthetic_sft 398,183 / 6.51 GB; synthetic_rl 398,107 / 288 MB; seed_testcase ~7,801 est. (30 shards, ~7–9 GB each); synthetic_rl_testcase ~463,540 est. (797 shards). Viewer estimated_num_rows 1,859,291. Hub 10,417 downloads / 245 likes at check.
- **Format:** parquet in 5 configs (synthetic_sft, synthetic_rl, synthetic_rl_testcase, seed_sft, seed_testcase). Test-case inputs/outputs stored as JSON strings (need parse).
- **Type:** Annotated competitive-code corpus / SFT traces + RL problems + I/O test cases
- **License:** CC BY 4.0 (card). Upstream contest ToS still apply to seed statements.
- **Cost:** Free
- **Languages:** English problem statements + Python solutions (previews). No LID table. Contest platforms are English-dominant.
- **Modality:** Text + source code + structured I/O test cases
- **Domain:** competitive programming; code reasoning; long-CoT SFT and RL with verified I/O test cases
- **Time period:** HF createdAt 2025-06-11; lastModified 2025-07-20. Paper 2025-05-27 (arXiv 2505.21297). Seed contests: IOI 2002–2023, USACO 2011–2023, plus TACO/APPS/CodeContests/OpenR1 Codeforces (older). Teacher QWQ-32B and GPT-4o (2025).
- **Purpose:** Scale verified competition-level code problems + long-reasoning solutions + mutual-verified test cases for SFT/RL of small code reasoners.
- **Used for:** Paper rStar-Coder-1.5B/7B/14B (Qwen2.5). Official microsoft/* model repos not found on Hub at check; third-party Qwen3-0.6B derivatives exist. GitHub microsoft/rStar 1,423 stars.
- **Authors:** Seed: human contest authors (Codeforces/CodeChef/AtCoder/etc.). Synthetic problems: GPT-4o from seed+oracle. Long-CoT solutions: QWQ-32B with mutual verification (paper: 96.8% output-label accuracy). Microsoft Research Asia (Liu, Zhang, Zhu, et al.).
- **Bias:** Codeforces-heavy: paper verified 191,329/418,314 (45.7%); synthetic_rl seed_source codeforces 172,020/398,107 (43.2%), then codechef 59,071 / hackerearth 46,163 / geeksforgeeks 36,909 / atcoder 30,008. IOI+USACO olympiad tail is small (2,211+7,579). Solvability prioritized over diversity. seed_sft includes unverified traces (verified/is_passed flags; first-row preview False/False) so 591k ≠ 580k verified solutions.
- **Text quality:** Mutual-verification on diverse scale-controlled test inputs (10^0–10^5). Paper ablation 96.8% output-label accuracy. Official tests often too few; synthesized tests fill in. Residual unsolvable synthetics filtered but not zero. Python-centric implementations.
- **Sample size:** Five configs, each a single train split. Paper source totals as Table 1. synthetic_rl seed_source: codeforces 172,020; codechef 59,071; hackerearth 46,163; geeksforgeeks 36,909; atcoder 30,008; aizu 22,731; hackerrank 13,171; codewars 8,660; usaco 7,080; leetcode 2,277; kattis 17.
- **Long context:** Yes (long QWQ CoT + large test-case blobs; RL testcase shards are GB-scale per file)
- **Intermediate steps:** Yes (seed scrape+dedup; GPT-4o synthesis from problem+oracle; GPT-4o input generators+validators; QWQ-32B multi-solution mutual verification; oracle-run tests on seeds)
- **Idea quality:** High
- **Novelty:** High
- **Text conversion:** Ready parquet; load_dataset("microsoft/rStar-Coder", "synthetic_sft"|...). Stream or snapshot; test-case configs need JSON parse and large_string schema. Full download >480 GB.
- **Collection method:** Download
- **Static:** Unknown (HF lastModified 2025-07-20; one-shot release)
- **Processed:** Unknown

## Links

- Dataset: https://huggingface.co/datasets/microsoft/rStar-Coder
- Related: https://arxiv.org/abs/2505.21297
- Related: https://huggingface.co/datasets/microsoft/rStar-Coder
- Related: https://github.com/microsoft/rStar
- Related: https://huggingface.co/papers/2505.21297

## Research notes

- downloads=7198; likes=245
- Discord posted this HF pointer. Cite Liu et al. 2025 arXiv 2505.21297. Do not load seed_sft as 580k verified-only. Test-case configs are the bulk of the 506 GB. Distinct from rStar-Math (arXiv 2501.04519). Not in papers_local.csv. Not on the Aug 13 live Datasets sheet export.

## Related entries

- Related: [Nemotron-Research-GooseReason-0.7M](https://papers.projxon.ai/entries/236) (dataset, #236)

## Similar entries

- [High-Coder-Reasoning-Multi-Turn](https://papers.projxon.ai/entries/324) (dataset, #324)
- [Rust-Coder](https://papers.projxon.ai/entries/416) (dataset, #416)
- [CodeX-5M-Thinking](https://papers.projxon.ai/entries/335) (dataset, #335)
- [Thinking Longer, Not Larger: Enhancing Software Engineering Agents via Scaling Test-Time Compute](https://papers.projxon.ai/entries/460) (paper, #460)
- [CoderForge-Preview](https://papers.projxon.ai/entries/226) (dataset, #226)
- [Jupyter Agent Dataset](https://papers.projxon.ai/entries/72) (dataset, #72)
