Renaissance Labs · Code
Code / Stage 01
Stage 01

Data: pretrain and mid-train

Raw code, cleaned and mixed. Where a model learns what code looks like.

Who needs this

Most useful if you train from scratch or continue pretraining. If you only have a few GPUs, you will mostly use this stage to borrow a filtered subset or to understand what your base model already saw.

Decisions you will make

  • Continue pretraining a good open base model, or start from scratch. For almost everyone the first option wins on cost: a strong open code base model already carries most of the signal.
  • How much to filter. Quality filters (educational or textbook-style classifiers, license filters, deduplication) usually pay back more than adding raw volume.
  • Whether to add a short high-quality annealing or mid-training phase (synthetic, reasoning-heavy, repo-level data) at the end of pretraining.

Pitfalls

  • Near-duplicate files inflate benchmark scores and waste tokens. Deduplicate at file and repository level before you train.
  • Benchmark contamination: remove problems and solutions from your eval sets from the training mix, then confirm with a held-out or post-cutoff eval.
  • Licenses are per file. A corpus being open to download does not mean every file in it is permissively licensed. Read the card and keep the license metadata.

Datasets 30

Dataset2023-01

CommitPack

Raw commit corpus (code before/after plus message) from which CommitPackFT was filtered.

DataSFTMixed licenses
Dataset2025-06

Common Pile: Stack v2 (openly licensed)

Stack v2 filtered to openly licensed repos (all detected licenses on the Blue Oak list), part of the Common Pile v0.1 for license-clean pretraining.

DataMixed licenses
Dataset2025-06

Common Pile: Stack v2 edu filtered

Educational-quality subset of the openly licensed Stack v2 used for Comma v0.1.

DataMixed licenses
Dataset2024-03

Cosmopedia

Large synthetic textbooks, blog posts and stories generated from seed web data; includes code-flavored subsets used in SmolLM pretraining.

DataPermissive
Dataset2025-10

Dolma 3 Dolmino mix (100B)

Ai2 OLMo 3 mid-training mix with fill-in-the-middle Stack-Edu, synthetic Python (CraneCode) and code meta-reasoning data.

DataPermissive
Dataset2024-12

FineMath

High-quality math web pages with step-by-step reasoning, used with code in SmolLM2 mid-training.

Dataodc-by
Dataset2022-10

GitHub Code (CodeParrot)

BigQuery-derived GitHub dump with repo, path, language and license per file; used for CodeParrot.

DataMixed licenses
Dataset2022-07

GitHub Code Clean

Filtered github-code: average line length under 100, alphanumeric fraction over 0.25 and autogenerated files removed.

DataMixed licenses
Dataset2022-10

GitHub Jupyter parsed

Jupyter notebooks parsed to markdown (as text) and Python code cells only.

DataMixed licensesHF repo ~7.2 GB
Dataset2023-03

H4 Stack Exchange preferences

Stack Overflow questions with at least two scored answers, built for preference-model training and usable for LM training.

DataPreferencecc-by-sa-4.0~22 GB download
Dataset2023-02

Jupyter code-text pairs

Pairs of notebook markdown and code from Jupyter notebooks (BigCode).

DataSee source
Dataset

Nemotron-CC-Code-v1

NVIDIA's code-from-web pretraining set: code-related pages from Common Crawl, reprocessed for training; part of the Nemotron pretraining family.

DataGated or custom terms
Dataset2025-08

Nemotron-Pretraining-Code-v1

Code part of NVIDIA's Nemotron Nano 2 pretraining data: LLM-synthesized code and metadata for a permissively licensed GitHub subset.

DataGated or custom terms
Dataset2025-12

Nemotron-Pretraining-Code-v2

Second Nemotron code pretraining release: more GitHub metadata plus synthetic code data.

DataGated or custom terms
Dataset2026-06

Nemotron-Pretraining-Code-v3 (metadata)

Incremental metadata list of permissively licensed GitHub files for Nemotron 3 Ultra pretraining; use with v1/v2.

DataPermissive
Dataset2024-11

OpenCoder annealing corpus

Annealing-phase data of OpenCoder: algorithm-related code from The Stack v2 plus synthetic rewrites and synthetic QA seeded from it.

Dataodc-by
Dataset2024-11

OpenCoder FineWeb code corpus

Code-related web pages recalled from FineWeb with a trained fastText-style recall pipeline (url, tag, text, file_path, dump fields).

DataPermissive
Dataset2024-11

OpenCoder FineWeb math corpus

Math-related web pages recalled from FineWeb, used alongside code in OpenCoder pretraining.

DataPermissiveHF repo ~9.9 GB
Dataset2023-10

OpenWebMath

Math web documents extracted from Common Crawl with LaTeX preserved; used in StarCoder2 and many mixes.

DataPermissive
Dataset2024-11

RefineCode (metadata)

Repo and path metadata to reproduce OpenCoder's RefineCode pretraining corpus, which applies 130+ language-specific heuristic rules.

DataPermissive
Dataset2024-07

SmolLM-Corpus (Python-Edu, Cosmopedia, FineWeb-Edu-Dedup)

Pretraining corpus of SmolLM v1 including Python-Edu: Python files scored 4 or more by an educational code classifier.

DataPermissive
Dataset2025-03

Stack-Edu

Educational-quality subset of StarCoder2Data, selected with language-specific classifiers (score and int_score columns), built for SmolLM2. Ships blob ids, not file text.

DataMixed licenses
Dataset2024-02

StarCoder2 data extras

The non-code parts of the StarCoder2 mix: arXiv, GitHub issues, Stack Overflow, Wikipedia, Kaggle notebooks, docs, LLVM IR and OpenWebMath.

DataCopyleft
Dataset2023-05

StarCoderData

The StarCoder (v1) training set: filtered code from The Stack plus GitHub issues, commits and Jupyter, in ready-to-train form.

DataGated or custom terms
Dataset2023-03

The Stack GitHub issues

GitHub issue and discussion text collected for StarCoder-era training.

DataGated or custom termsHF repo ~67 GB
Dataset2022-11

The Stack v1

First BigCode corpus of permissively licensed GitHub code (2022 cutoff), used for StarCoder and SantaCoder.

DataMixed licenses
Dataset2024-02

The Stack v2

StarCoder2 training corpus built on the Software Heritage archive (2023), with per-file license labels. The HF release holds metadata and SWH blob ids; contents come from the SWH S3 bucket.

DataMixed licenses
Dataset2024-02

The Stack v2 (dedup)

Near-deduplicated variant of The Stack v2 (metadata plus SWH blob ids) for building custom training mixes.

DataMixed licenses
Dataset2024-02

The Stack v2 train (smol ids)

Id list for the smaller training subset of The Stack v2 used in StarCoder2 training; a lightweight route to a few-hundred-billion-token mix.

DataGated or custom terms
Dataset2026-07

The Stack v3 (train)

Successor to The Stack v2: a direct GitHub crawl (cutoff 2025-08-07) with file contents inline, grouped by repository, near-deduplicated, quality filtered and PII redacted. Built for repo-level code pretraining.

DataMixed licenses

Models 11

Model2024-01

Code Llama 70B (legacy)

Meta's 2024 code Llama; included for historical comparison only.

DataGated or custom terms
Model2024-05

Codestral-22B-v0.1

Mistral's 2024 code model; weights open for research and testing only.

DataGated or custom terms
Model2024-06

DeepSeek-Coder-V2 (Instruct 236B / Lite)

June 2024 MoE code model continued-pretrained from DeepSeek-V2; strong at release, now legacy.

DataSFTPermissive
Model2024-04

Granite Code 8B Base

IBM enterprise-oriented code model trained on license-permissive data; legacy but cleanly licensed.

DataApache-2.08.05B params, ctx 4,096
Model2025-11

Olmo 3 32B (Base/Think)

Fully open (weights, data, checkpoints incl. stage1/2/3) Allen AI model suite with Base, Instruct and Think; best for transparent post-training research. No dedicated 'OLMo-Coder' was found.

DataSFTRLApache-2.0
Model2024-11

OpenCoder-8B (Base/Instruct)

Fully transparent code LLM: weights plus data pipeline, ablations and training protocol released. Best choice for studying code pretraining and annealing recipes end to end.

DataSFTGated or custom terms7.77B params, ctx 8,192
Model2024-11

Qwen2.5-Coder family (32B shown)

Sep-Nov 2024 code-specialized Qwen family with base and instruct variants from 0.5B to 32B. Still the most widely used open base for code SFT/RL recipes (SWE-smith, OpenHands LM, Open-R1 style work).

DataSFTRLMixed licenses
Model2026-01

Qwen3-Coder-Next (and -Base)

Open-weight coding-agent model from Jan 2026 built for local agents (80B total, 3B active). A Base variant is published for further post-training.

DataSFTRLApache-2.0
Model2025-04

Seed-Coder-8B (Base/Instruct/Reasoning)

ByteDance Seed (2025) family built from model-curated pretraining data; base, instruct and RL-trained reasoning variants in one permissive license.

DataSFTRLMIT8.25B params, ctx 32,768
Model2025-07

SmolLM3-3B

Fully open 3B model with dual-mode reasoning; handy as a tiny testbed for code recipes (see smollm repo).

DataSFTApache-2.0
Model2024-02

StarCoder2-15B

Open pretrained code model trained on The Stack v2 with opt-outs excluded; the data and training are documented.

DataGated or custom terms

Papers 9

Recipes 2