# OpenCoder Datasets

- **ID:** 29
- **Kind:** collection
- **URL:** https://huggingface.co/collections/OpenCoder-LLM/opencoder-datasets-672e6db6a0fed24bd69ef1c2
- **Authors:** Siming Huang, Tianhao Cheng, Jason Klein Liu, Jiaran Hao, Liuyihan Song, Yang Xu, and OpenCoder-LLM team
- **Venue:** OpenCoder-LLM / Hugging Face
- **Source:** huggingface
- **Language:** 607 programming languages; English and Chinese (natural language)
- **Access:** free
- **License:** Open (various per dataset; RefineCode metadata and corpora released for research)
- **License family:** Other (auto-classified)
- **Topics:** Code / Programming
- **Added:** 2026-07-17
- **Verified:** 2026-07-17
- **Research status:** done
- **Page:** https://papers.projxon.ai/entries/29

## Summary

The OpenCoder Datasets collection comprises the full reproducible training data pipeline for the OpenCoder code LLM family, including RefineCode (960B tokens of high-quality code across 607 programming languages with 130+ language-specific filtering rules), FineWeb-code-corpus (148GB), FineWeb-math-corpus (10GB), an annealing corpus (24GB, 15.6M examples), and two-stage SFT datasets (4.21M + 436K examples). Released alongside the OpenCoder paper (ACL 2025), it provides complete transparency into the data curation process for training top-tier code LLMs.

## Attributes

- **Purpose:** A complete collection of reproducible training datasets for building top-tier code LLMs, serving as an 'open cookbook' that includes pretraining corpora, annealing data, and supervised fine-tuning data.
- **Scale:** RefineCode: 960B tokens; code-corpus: 148GB; math-corpus: 10GB; annealing: 24GB/15.6M examples; SFT: 4.21M + 436K examples
- **Used for:** Training OpenCoder 1.5B and 8B code LLMs; reproducible code LLM research; code generation, logical reasoning, and agent systems
- **Time period:** 2024 (released Nov 2024)
- **Author type:** mixed

## Dataset profile

- **Scale:** HF: 100,920,235 train docs; size_categories 100M<n<1B; YAML dataset_size 254,927,419,643 bytes (~254.9 GB); datasets-server dataset_size 264.6 GB; download_size / usedStorage 147,948,949,488 bytes (~147.9 GB); 510 parquet shards ~290 MB each. GitHub table 148 GB. Paper Table 2: Processed FineWeb 55B tokens (5.7% of RefineCode 960B) covering this repo plus opc-fineweb-math-corpus (5,241,900 docs / download 9.95 GB / dataset_size 18.2 GB). HF 1,704 downloads / 55 likes at check.
- **Format:** parquet (url, tag, text, file_path, dump, file_size_in_byte, line_count)
- **Type:** Pretraining corpus / code-related FineWeb recall
- **License:** MIT on this card. Built from FineWeb (ODC-By 1.0 + Common Crawl ToU). Sibling opc-fineweb-math-corpus is odc-by.
- **Cost:** Free
- **Languages:** English 100% (inherited FineWeb fastText en score >= 0.65). OpenCoder models also train Chinese from other web sources (SkyPile / annotated CC domains), not this repo. Sampled `tag` values are "code".
- **Modality:** Text-only (code-related natural language with inline code snippets)
- **Domain:** code-related English web; FineWeb-derived pretraining; programming forums/docs/tutorials
- **Time period:** FineWeb Common Crawl dumps inherited in `dump` (viewer samples CC-MAIN-2018-43, 2021-49, 2022-27, 2023-14, 2023-40; FineWeb original window Summer 2013–April 2024). HF createdAt 2024-11-09; lastModified 2024-11-24. Paper arXiv 2411.04905 (2024-11-07). GitHub posted the 55B FineWeb-recalled pages 2024-11-11.
- **Purpose:** Public FineWeb slice of OpenCoder pretraining: code-related pages recalled with iterative fastText (paper: part of RefineCode’s ~75B code-related web tokens / 55B Processed FineWeb)
- **Used for:** OpenCoder-8B-Base (2.5T tokens, 90% raw code / 10% code-related web; paper: the 1.5B run omitted this recall because processing was incomplete). infly/OpenCoder-8B-Instruct HumanEval pass@1 83.5. GitHub OpenCoder-llm 2,105 stars at check. Discord posted the OpenCoder-LLM collection.
- **Authors:** Public-web authors from FineWeb/Common Crawl (vendor forums, GitHub issues, blogs, SEO pages). OpenCoder-LLM / INF / M-A-P curated. Residual AI-generated web text possible; not quantified.
- **Bias:** Code-forum/tutorial-like English web overweighted vs raw FineWeb. Three-round fastText recall from 500k Autonomous Data Selection seeds. Viewer samples include false positives (watch-collector pages tagged code) and SEO “error fix” pages. High-resource programming English (Intel/embedded forums, GitHub, Stack-like).
- **Text quality:** FineWeb-filtered then fastText code recall. Mixed: genuine device-driver/dev-ops threads and tutorials plus boilerplate/SEO. Not the RefineCode raw-code heuristic set (130+ language-specific rules). Residual FineWeb toxicity/boilerplate remains.
- **Sample size:** Single default train split 100,920,235. Companion math corpus 5.24M is a separate repo, not a config here. No official 10BT-style subsample.
- **Long context:** Mixed (full web documents; OpenCoder-8B trained at 8K, 1.5B at 4K).
- **Intermediate steps:** Yes (FineWeb URL+trafilatura+LID+heuristics+MinHash, then 3-round fastText recall). Paper also recalls from Common Crawl, SkyPile, AutoMathText, and GitHub text files — those slices are not this repo.
- **Idea quality:** High
- **Novelty:** High
- **Text conversion:** Ready parquet; load_dataset("OpenCoder-LLM/opc-fineweb-code-corpus"); streaming recommended (~148 GB download).
- **Collection method:** Download
- **Static:** Unknown (HF lastModified 2024-11-24; FineWeb later grew past the paper crawl window; this snapshot was not refreshed)
- **Processed:** Unknown

## Links

- Dataset: https://huggingface.co/datasets/OpenCoder-LLM/opc-fineweb-code-corpus
- Related: https://arxiv.org/abs/2411.04905
- Related: https://huggingface.co/datasets/OpenCoder-LLM/opc-fineweb-code-corpus
- Related: https://huggingface.co/collections/OpenCoder-LLM/opencoder-datasets-672e6db6a0fed24bd69ef1c2
- Related: https://github.com/OpenCoder-llm/OpenCoder-llm
- Related: https://opencoder-llm.github.io/
- Related: https://huggingface.co/datasets/OpenCoder-LLM/opc-fineweb-math-corpus
- Related: https://huggingface.co/datasets/HuggingFaceFW/fineweb

## Research notes

- Published at ACL 2025 (arXiv:2411.04905). Collection includes 6 datasets: opc-sft-stage1, opc-sft-stage2, opc-fineweb-math-corpus, opc-fineweb-code-corpus, opc-annealing-corpus, RefineCode-code-corpus-meta. RefineCode built on The Stack v2 with additional filtering.
- Discord posted the OpenCoder-LLM collection (message 1362451409097855268), not this dataset URL. Canonical public pretraining text dump is this FineWeb-code recall; RefineCode raw code is metadata-only (OpenCoder-LLM/RefineCode-code-corpus-meta: 336,845,710 Stack-v2-covered files, source withheld for legal reasons). GitHub README still links OpenCoder-LLM/fineweb-code-corpus; live repo is opc-fineweb-code-corpus. SFT siblings: opc-sft-stage1 (viewer 4,216,321 rows / usedStorage ~32.1 GB / MIT; paper Table 5 RealUser 0.7M + Diverse 2.3M + Infinity 1.0M) and opc-sft-stage2 (HF 436,347 across educational 118,278 / evol 111,183 / mceval 35,943 / package 170,943; paper Table 5 ~367k; GitHub 375k). Annealing opc-annealing-corpus: paper metadata 15,572,160 rows / GitHub 24 GB / ODC-By. Not in papers_local.csv.

## Related entries

- Related: [FineWeb](https://papers.projxon.ai/entries/23) (dataset, #23)
- Related: [The Stack v2](https://papers.projxon.ai/entries/232) (dataset, #232)
- Related: [Infinity Instruct](https://papers.projxon.ai/entries/319) (dataset, #319)
- Related: [OpenCoder FineWeb Math Corpus](https://papers.projxon.ai/entries/1152) (dataset, #1152)
- Related: [OpenCoder SFT Stage 2](https://papers.projxon.ai/entries/1153) (dataset, #1153)

## Similar entries

- [UltraData-Code (OpenBMB L0–L3 tiered code pretrain: L2 algorithmic + L3 synthesis)](https://papers.projxon.ai/entries/1035) (dataset, #1035)
- [BigO(Bench): Can LLMs Generate Code with Controlled Time and Space Complexity?](https://papers.projxon.ai/entries/777) (paper, #777)
- [Invent a Dataset: Measuring Dataset Generation Abilities With Zero Seed Data](https://papers.projxon.ai/entries/834) (paper, #834)
- [Code Vulnerability and Security DPO Dataset](https://papers.projxon.ai/entries/318) (dataset, #318)
- [ProgramBench: write-a-program-from-scratch SWE-agent benchmark; Muse Spark 1.3 results](https://papers.projxon.ai/entries/830) (benchmark, #830)
- [The ultimate guide to multi-harness RL](https://papers.projxon.ai/entries/839) (post, #839)
