Renaissance Labs · Code
Code / Stage 02
Stage 02

SFT: instructions, reasoning, trajectories

Teach the format: follow instructions, explain, edit, call tools, solve step by step.

Who needs this

The first thing most teams run on an existing base model. Cheap, fast to iterate, and the stage where data quality is most visible in the numbers.

Decisions you will make

  • Instruction data versus reasoning traces versus agent trajectories. Pick by the goal: short answers and edits need instructions; competitive programming benefits from long reasoning traces; repository tasks need multi-turn trajectories.
  • Teacher model and license: synthetic datasets inherit the terms of the model that wrote them. Check each card.
  • How much data. Several published recipes get strong results with a few tens of thousands of carefully filtered examples, so start small and measure.

Pitfalls

  • Training on data generated from the benchmark's own problems (or paraphrases) gives inflated scores and a model that is no better in practice.
  • Unverified synthetic code often contains wrong solutions. Execute it or test it, and drop what fails.
  • Mixing too many styles can degrade formatting. Keep a chat template and a loss mask on responses only, and check outputs by eye.

Benchmarks 1

Datasets 57

Dataset2021-05

APPS

Interview-level and competition Python problems with solutions and test cases.

SFTRLEvalMIT (card list)
Dataset2025-01

Bespoke-Stratos-17k

DeepSeek-R1 distillation of the Sky-T1 recipe (code, math, science, puzzles) used for Bespoke-Stratos models; made at about $800 of generation per the card.

SFTApache-2.017K examples (per name)
Dataset2023-03

Code Alpaca 20K

Self-Instruct-style code instruction set that started the open code-instruction line; seed of Evol-CodeAlpaca.

SFTCC-BY-4.0 (HF card)
Dataset2024-02

Code-Feedback (OpenCodeInterpreter)

Multi-turn code data with execution feedback and human-feedback-style follow-ups for iterative refinement (OpenCodeInterpreter).

SFTApache-2.0 (HF card)
Dataset2022-2023

CodeContests (DeepMind)

Competitive problems from Codeforces, CodeChef, AtCoder and others with generated tests and correct/incorrect human solutions in Python, C++ and Java.

SFTRLEvalCC-BY-4.0
Dataset2024-02

CodeFeedback-Filtered-Instruction

287K queries from Magicoder-OSS, Python ShareGPT, Magicoder-Evol and Evol-Instruct, filtered to complexity 4-5 by Qwen-72B-Chat.

SFTApache-2.0 (HF card)
Dataset2023-01

CommitPack

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

DataSFTMixed licenses
Dataset2023-06

CommitPackFT

Filtered subset of CommitPack where commit messages resemble natural-language instructions; basis of OctoPack/OctoCoder instruction tuning.

SFTMixed licenses
Dataset2023-12

EditPackFT

Further-filtered CommitPackFT subset formatted for instructional code editing (before code, instruction, after code), used to train CanItEdit-evaluated models.

SFTMIT (HF card)22,602 rows
Dataset2023-07

Evol-CodeAlpaca v1

Open re-creation of the WizardCoder Evol-Instruct code data: Code Alpaca 20K evolved with 10 augmentation strategies and answered by GPT-4.

SFTApache-2.0 (HF card)
Dataset2023-07

Evol-Instruct-Code-80k-v1

Community replication of the WizardCoder Evol-Instruct code data.

SFTNon-commercial
Dataset2024-01

Glaive Code Assistant v3

Synthetic code Q&A from Glaive's data platform; v3 includes v1 and v2.

SFTApache-2.0 (HF card)
Dataset2024-03

gretelai/synthetic_text_to_sql

Synthetic text-to-SQL with schemas, prompts, SQL and explanations across many SQL task types.

SFTApache-2.0
Dataset2025-03

KodCode-V1

Fully synthetic coding questions with solutions and pytest-style tests validated by execution; fields include gpt pass percentage and difficulty.

SFTRLCC-BY-NC-4.0
Dataset2025-03

KodCode-V1-SFT-R1

KodCode with DeepSeek-R1 responses kept via test-based rejection sampling; columns include r1_solution, r1_correctness and gpt_difficulty.

SFTCC-BY-NC-4.0
Dataset2024-06

Lean Workbook

Auto-formalized competition-style problems in Lean 4, used for theorem-prover RL; Goedel-LM/Lean-workbook-proofs has 29,750 proofs.

SFTRLApache-2.0
Dataset2025-03

Ling-Coder-SFT

Subset of the SFT data used for Ling-Coder-Lite, synthesized with OSS-Instruct and Evol-Instruct style pipelines.

SFTApache-2.0 (HF card)
Dataset2025-03

Llama-Nemotron-Post-Training-Dataset (code)

Post-training data for Llama-3.3-Nemotron-70B and Llama-3.1-Nemotron-Ultra-253B; v1.1 added 500K code reasoning samples.

SFTRLGated or custom terms
Dataset2023-12

Magicoder Evol-Instruct 110K

Decontaminated version of theblackcat102/evol-codealpaca-v1 (WizardCoder-style Evol-Instruct on Code Alpaca seeds), decontaminated with the StarCoder/BigCode procedure.

SFTApache-2.0 (HF card)
Dataset2023-12

Magicoder OSS-Instruct 75K

Synthetic instructions generated by prompting an LLM with random open-source code snippets (OSS-Instruct) to reduce the bias of purely LLM-invented tasks.

SFTMIT (HF card)
Dataset2025-01

Magpie-Qwen2.5-Coder-Pro-300K

Raw conversations built by the Magpie self-synthesis method with Qwen2.5-Coder-32B-Instruct; includes task_category, difficulty and quality columns.

SFTSee source300,000 rows
Dataset2024-12

nebius SWE-agent-trajectories

SWE-agent trajectories with resolved or failed labels and patches, from a Llama-3.1-70B based agent on SWE-bench-like tasks.

SFTPreferenceCC-BY-4.0
Dataset2025-09

nebius SWE-rebench OpenHands trajectories

OpenHands trajectories on SWE-rebench tasks generated with Qwen3-Coder-480B-A35B-Instruct.

SFTCC-BY-4.0
Dataset2025-12

Nemotron-Agentic-Tool-Use-v1

Multi-turn tool-use conversations: interactive-agent trajectories (simulated user, agent, tool environment) and general tool-calling, judge-filtered.

SFTCC-BY-4.0size not read
Dataset2025-12

Nemotron-Cascade-RL-SWE

NVIDIA recipe data for SWE RL: difficulty-filtered mix of SWE-Bench-Train, SWE-rebench, SWE-smith, R2E-Gym-Subset and SWE-Fixer, with repos from SWE-bench Verified excluded to avoid contamination.

SFTRLCC-BY-4.0
Dataset2025-12

Nemotron-Cascade-SFT-SWE

Agentless-mini style SWE SFT data (localization, repair, test generation) from SWE-Bench-Train, SWE-reBench and SWE-Smith, difficulty-selected and decontaminated against SWE-Bench Verified repos.

SFTCC-BY-4.0
Dataset2025-07

Nemotron-Post-Training-Dataset-v1 (code split)

SFT compilation behind Llama-3.3-Nemotron-Super-49B-v1.5 with reasoning on/off responses; the code split carries reasoning traces.

SFTCC-BY-4.0
Dataset2026-03

Nemotron-SFT-Competitive-Programming-v2

Competitive coding with reasoning and critique, Python Exercism-style exercises (Aider problems decontaminated), and enterprise text-to-SQL records generated with NVIDIA Data Designer.

SFTPermissive
Dataset2026-03

Nemotron-SFT-OpenCode-v1

Agentic instruction data for the OpenCode CLI: tool calling, AGENTS.md prompts, agent skills, bash-only tools and clarifying-question tool, in six subsets.

SFTCC-BY-4.0
Dataset2026-03

Nemotron-SFT-SWE-v2

SWE-Bench-style data: OpenHands agentic trajectories and agentless sub-task SFT data built from SWE-Bench-Train, SWE-reBench, SWE-Smith and SWE-Fixer-Train.

SFTPermissive
Dataset2025-07

NuminaMath-LEAN

Competition problems with formal statements, ground-truth proofs and an rl_data field for Lean 4 training.

SFTRLApache-2.0104,155 train rows
Dataset2026-05

NVIDIA SWE-Zero / SWE-Hero OpenHands trajectories

OpenHands agent trajectories with model_patch and repo license columns, for SFT or rejection sampling on SWE tasks.

SFTCC-BY-4.0
Dataset2025-02

open-r1 CodeForces-CoTs

DeepSeek-R1 chain-of-thought solutions in C++ and Python for Codeforces problems, used to train OlympicCoder.

SFTCC-BY-4.0
Dataset2025-05

open-r1 Mixture-of-Thoughts (code)

Verified DeepSeek-R1 reasoning traces across math, code and science; code part is competitive-programming focused.

SFTSee source
Dataset2025-03

open-r1/codeforces

Codeforces problems with statements, editorials, official tests and generated checkers, including interactive problems; the 'verifiable' config keeps problems with complete tests.

SFTRLEvalCC-BY-4.0
Dataset2025-04

OpenCodeInstruct (NVIDIA)

Largest open code instruction set: each row has question, solution, generated unit tests, execution results and an LLM quality assessment, so you can filter by test score.

SFTCC-BY-4.0
Dataset2024-11

OpenCoder opc-sft-stage1

Stage-1 SFT mix of OpenCoder: filtered general instructions plus large-scale synthetic and real-user code instructions.

SFTMIT (HF card tag)
Dataset2024-11

OpenCoder opc-sft-stage2

High-quality stage-2 code SFT: educational synthetic, evolved, McEval-style multilingual and package-usage instructions.

SFTMIT (HF card tag)
Dataset2025-04

OpenCodeReasoning

R1-generated reasoning solutions for competitive problems with difficulty column and source license column.

SFTCC-BY-4.0
Dataset2025-05

OpenCodeReasoning-2 (NVIDIA)

Second release: R1 generations with QwQ critiques and right/wrong judgements, for both code completion and code critique SFT.

SFTCC-BY-4.0
Dataset2025-01

OpenThoughts-114k

DeepSeek-R1 reasoning traces with correctness verification; code rows include test cases and starter code.

SFTApache-2.0
Dataset2025-12

OpenThoughts-Agent-v1-SFT

Teacher-agent traces on nl2bash and InferredBugs (C# and Java bugs) tasks, in the Terminus-2 harness, used for OpenThinker-Agent-v1.

SFTApache-2.0~15,200 traces (card)
Dataset2025-05

OpenThoughts3-1.2M

Result of 1,000+ controlled data-recipe experiments; each question annotated 16x with QwQ-32B. Trains OpenThinker3-7B.

SFTApache-2.0
Dataset2025-05

rStar-Coder

Competitive problems with mutually verified test cases, with configs synthetic_sft, synthetic_rl, synthetic_rl_testcase, seed_sft, seed_testcase.

SFTRLCC-BY-4.0
Dataset2025-01

Sky-T1 data 17K

Training data of Sky-T1-32B-Preview (code and math with QwQ-generated reasoning).

SFTApache-2.0
Dataset2024-11

SmolTalk

General SFT mixture used for SmolLM2 with code-containing subsets such as smol-magpie-ultra.

SFTSee source
Dataset2018

Spider

Cross-domain text-to-SQL; databases are executable SQLite so execution accuracy gives a reward.

SFTRLEvalCC-BY-SA-4.0
Dataset2024-04

StarCoder2 self-oss-instruct (SelfCodeAlign data)

Instruction data produced by StarCoder2-15B itself via the SelfCodeAlign pipeline (concept extraction, task generation, sampled responses with tests, execution filter). Used for StarCoder2-15B-Instruct.

SFTODC-By (HF card tag)50,661 rows
Dataset2025-05

SWE-bench-extra

Nebius earlier large SWE-bench-format task collection (patch, test_patch, F2P/P2P, license per instance), precursor to SWE-rebench.

SFTRLCC-BY-4.06,376 train instances
Dataset2025-05

SWE-Dev

Feature-driven development tasks: product requirement, partial source, developer-written unit tests and ground-truth code, supporting SFT and RL with test-based reward.

SFTRLApache-2.0
Dataset2024-12

SWE-Gym OpenHands sampled trajectories

OpenHands trajectories sampled on SWE-Gym tasks with a resolved flag, with trajectory-level resolved labels.

SFTSee source
Dataset2025-04

SWE-smith trajectories

SWE-agent trajectories with Claude 3.7 Sonnet on SWE-smith instances; columns include messages, resolved, model and patch.

SFTMIT
Dataset2025-03

SWE-Synth

Synthetic bug-fix instances with setup patches, F2P/P2P tests and problem statements, plus Moatless SFT trajectories in sibling datasets.

SFTRLSee source9,459 train instances
Dataset2025-03

SynSQL-2.5M

Million-scale synthetic cross-domain text-to-SQL used to train the OmniSQL models.

SFTApache-2.0
Dataset2025-02

SYNTHETIC-1

Prime Intellect crowdsourced DeepSeek-R1 traces with verification_info and score columns across math, coding, SWE and more.

SFTRLApache-2.0
Dataset2023-12

TACO

Large algorithmic problem set with tests, solutions, difficulty and algorithm tags, aggregated from many contest sites.

SFTRLApache-2.0
Dataset2024-11

Tulu 3 SFT Mixture (code parts)

General SFT mixture for Tulu 3; a template for how much code to blend into a general assistant.

SFTNon-commercial

Environments 8

Environment2026-08

Lego-RL-2699 and LegoFlow-SWE

SWE-Lego family: Harbor-format RL environments, teacher trajectories and a Harbor-packaged SWE-bench Verified for evaluating against the same trainer.

SFTRLEvalCopyleft
Environment2026-03

OpenSWE (GAIR, daVinci-Env)

Large open set of executable Python SWE environments with synthesis pipeline released.

SFTRLGated or custom terms
Environment2025-02

R2E-Gym (Subset)

Procedurally generated executable environments from commits (back-translated issue text, LM-generated tests) used to train SWE agents and verifiers; includes dev splits in the Lite variant.

SFTRLApache-2.0
Environment2025-06

SWE-Flow / Repo2RLEnv swe_flow recipe

Test-driven synthesis: trace passing tests, remove exercised functions, ask the agent to reconstruct them, reward via retained tests. Hugging Face Repo2RLEnv now packages the recipe as Harbor tasks.

SFTRLMIT
Environment2024-12

SWE-Gym

Real GitHub issue tasks with FAIL_TO_PASS and PASS_TO_PASS tests, built for training and verifying SWE agents. Lite (230) and Raw (64,689 unvalidated PR rows) variants exist.

SFTRLMIT
Environment2025-05

SWE-rebench (nebius, v1)

Continuously mined Python GitHub issue tasks with install configs, F2P/P2P tests and docker_image names, from Nebius; also feeds a decontaminated leaderboard.

SFTRLEvalCC-BY-4.0
Environment2026-02

SWE-rebench V2

Language-agnostic executable SWE tasks with pre-built images, F2P/P2P tests and LLM quality filtering. A companion set has 126,300 PR-derived tasks.

SFTRLCC-BY-4.0
Environment2025-04

SWE-smith

Synthetic bug-injection tasks generated per repo (LM-written, rewritten, procedural and PR-mirror bugs) with test-based validation and per-task Docker image names. Java and other-language variants are listed under SWE-bench on HF.

SFTRLMIT

Models 24

Model2024-06

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

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

DataSFTPermissive
Model2025-12

DeepSeek-V3.2

Dec 2025 DeepSeek V3 line model, MIT licensed; a common open teacher and RL starting point before V4.

SFTMIT
Model2026-04

DeepSeek-V4-Pro (and V4-Flash-0731)

DeepSeek V4 generation (Apr 2026): Pro is the largest open DeepSeek; V4-Flash-0731 card says it outperforms V4-Pro (Preview) on listed benchmarks despite far fewer active parameters.

SFTMIT
Model2026-09

DeepSeek-V4.1-Flash

Sep 2026 DeepSeek open MoE with 1M context, MIT licensed; the card describes an encoder-decoder (CED) design with KV-cache compression.

SFTMIT
Model2025-11

Devstral 2 (123B)

Larger Dec 2025 Devstral for agentic coding under a modified MIT license.

SFTGated or custom terms125.0B params, 256k ctx
Model2025-11

Devstral Small 2 (24B)

Dec 2025 Mistral agentic coding model, Apache licensed; earlier Devstral-Small-2505 and 2507 are also Apache-2.0 (verified).

SFTRLApache-2.0
Model2026-08

GLM-5.3

Aug 2026 Z.ai open model; card says it uses the GLM-5.2 base with gains from post-training only, and claims open-source SOTA on Terminal Bench 3.0.

SFTGated or custom terms
Model2026-08

GLM-5.3-Flash

Aug 2026 smaller GLM-5.3 with new base model, hybrid sparse/linear attention and native multimodality; MIT licensed.

SFTRLMIT
Model2025-08

gpt-oss-120b

Aug 2025 OpenAI open-weight reasoning model with an Apache license; a permissive teacher/baseline.

SFTRLApache-2.0116.8B params (MoE)
Model2026-11

Kimi K3.1 Pro

Nov 2026 open-weight agentic model post-trained from Kimi K3 with large-scale joint RL; the largest open model checked here.

SFTGated or custom terms
Model2025-06

Kimi-Dev-72B

Qwen2.5-72B-based SWE model trained with Agentless-style RL; card reports 60.4% on SWE-bench Verified (Moonshot-reported, workflow approach).

SFTRLMIT
Model2026-06

NVIDIA Nemotron 3 Ultra 550B-A55B

Jun 2026 hybrid Mamba-2 plus MoE general model whose card includes SWE-bench Verified and LiveCodeBench rows; a permissively licensed (OpenMDW) very large teacher.

SFTOpenMDW-1.1
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
Model2025-04

OpenCodeReasoning-Nemotron-32B

NVIDIA reasoning code model distilled via SFT only from the OpenCodeReasoning dataset on Qwen2.5-32B-Instruct.

SFTApache-2.032.8B params, ctx 32,768
Model2025-03

OpenHands LM 32B v0.1

Qwen2.5-Coder-32B-Instruct tuned on SWE-Gym-derived data for the OpenHands agent; card reports 37.2% SWE-bench Verified resolve rate.

SFTMIT
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
Model2025-07

Qwen3-Coder-30B-A3B-Instruct

Small MoE Qwen3 coder that is easy to fine-tune and serve; the most downloaded recent Qwen coder in HF search (about 1.95M downloads on the check date).

SFTRLApache-2.0
Model2025-07

Qwen3-Coder-480B-A35B-Instruct

July 2025 flagship Qwen coder: large MoE for agentic coding and repository-scale context. Commonly used as a permissively licensed teacher for trajectory distillation.

SFTApache-2.0
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
Model2026-08

Qwen3.8-27B

Newest open Qwen generation (Aug 2026): dense vision-language model with thinking mode and gains in coding and long-horizon agentic tasks. A strong post-trained starting point for SFT/RL on a single node, and a mid-size teacher.

SFTRLApache-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
Model2025-04

SWE-agent-LM-32B

SWE-smith showcase: Qwen2.5-Coder-32B-Instruct fine-tuned on 5k SWE-agent trajectories generated with Claude 3.7 Sonnet.

SFTApache-2.0

Papers 13

Paper2024-06

DeepSeek-Coder-V2

Continued pretraining of a MoE on code and math tokens to reach closed-model-level code results at release.

DataSFTn/apaper
Paper2025-09

Kimi-Dev: Agentless Training as Skill Prior

Argues Agentless-style training induces localization/edit/reflection priors; the abstract reports 60.4% on SWE-bench Verified (workflow mode) and 48.6% pass@1 as an agent after SFT on 5k public trajectories.

SFTRLn/apaper
Paper2023-05

LIMA: Less Is More for Alignment

About 1,000 curated examples can align a model, arguing for quality over quantity in SFT.

SFTn/apaper
Paper2023-12

Magicoder: OSS-Instruct

Seeds an LLM with real open-source snippets to generate 75K diverse, realistic instruction pairs; 7B models beat larger ones at release.

SFTn/apaper
Paper2023-08

OctoPack: Instruction Tuning Code LLMs

CommitPack: 4 TB of Git commits across 350 languages used as natural code-instruction data; 46.2% HumanEval pass@1 for StarCoder-16B tuned without OpenAI outputs (abstract).

SFTn/apaper
Paper2024-11

OpenCoder: The Open Cookbook

Releases weights plus reproducible data pipeline, ablations and training protocol for a top-tier code LLM at its release.

DataSFTn/apaper
Paper2025-04

OpenCodeReasoning

SFT-only distillation dataset for competitive coding; abstract reports 61.8% LiveCodeBench and 24.6% CodeContests and analyzes execution filtering.

SFTn/apaper
Paper2024-09

Qwen2.5-Coder Technical Report

Describes data, training and evaluation for the Qwen2.5-Coder family.

DataSFTn/apaper
Paper2025-04

R2E-Gym

Procedural SWE environment of 8.7K tasks via test generation and back-translation from commits; 34.4% on SWE-bench Verified with a 32B model; hybrid test-time scaling (abstract).

SFTRLn/apaper
Paper2024-10

SelfCodeAlign

Self-alignment pipeline: model extracts concepts, generates tasks, samples responses with tests, keeps passing examples; 74k pairs from CodeQwen1.5-7B (abstract).

SFTn/apaper
Paper2024-12

SWE-Gym

First environment for training SWE agents: 2,438 real Python tasks with executable runtimes; up to 19% absolute gains on SWE-bench Verified/Lite via SFT, plus trained verifiers (abstract).

SFTRLn/apaper
Paper2025-04

SWE-smith

Pipeline that turns any Python repo into an execution environment and synthesizes 100s-1000s of task instances by breaking tests; builds a 50k-instance dataset from 128 repos (abstract).

SFTRLn/apaper
Paper2023-06

WizardCoder: Evol-Instruct for code

Adapts Evol-Instruct to progressively harder code instructions and fine-tunes StarCoder.

SFTn/apaper

Recipes 4

Tools 6