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
APPS
Interview-level and competition Python problems with solutions and test cases.
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.
Code Alpaca 20K
Self-Instruct-style code instruction set that started the open code-instruction line; seed of Evol-CodeAlpaca.
Code-Feedback (OpenCodeInterpreter)
Multi-turn code data with execution feedback and human-feedback-style follow-ups for iterative refinement (OpenCodeInterpreter).
CodeContests (DeepMind)
Competitive problems from Codeforces, CodeChef, AtCoder and others with generated tests and correct/incorrect human solutions in Python, C++ and Java.
CodeFeedback-Filtered-Instruction
287K queries from Magicoder-OSS, Python ShareGPT, Magicoder-Evol and Evol-Instruct, filtered to complexity 4-5 by Qwen-72B-Chat.
CommitPack
Raw commit corpus (code before/after plus message) from which CommitPackFT was filtered.
CommitPackFT
Filtered subset of CommitPack where commit messages resemble natural-language instructions; basis of OctoPack/OctoCoder instruction tuning.
EditPackFT
Further-filtered CommitPackFT subset formatted for instructional code editing (before code, instruction, after code), used to train CanItEdit-evaluated models.
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.
Evol-Instruct-Code-80k-v1
Community replication of the WizardCoder Evol-Instruct code data.
Glaive Code Assistant v3
Synthetic code Q&A from Glaive's data platform; v3 includes v1 and v2.
gretelai/synthetic_text_to_sql
Synthetic text-to-SQL with schemas, prompts, SQL and explanations across many SQL task types.
KodCode-V1
Fully synthetic coding questions with solutions and pytest-style tests validated by execution; fields include gpt pass percentage and difficulty.
KodCode-V1-SFT-R1
KodCode with DeepSeek-R1 responses kept via test-based rejection sampling; columns include r1_solution, r1_correctness and gpt_difficulty.
Lean Workbook
Auto-formalized competition-style problems in Lean 4, used for theorem-prover RL; Goedel-LM/Lean-workbook-proofs has 29,750 proofs.
Ling-Coder-SFT
Subset of the SFT data used for Ling-Coder-Lite, synthesized with OSS-Instruct and Evol-Instruct style pipelines.
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.
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.
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.
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.
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.
nebius SWE-rebench OpenHands trajectories
OpenHands trajectories on SWE-rebench tasks generated with Qwen3-Coder-480B-A35B-Instruct.
Nemotron-Agentic-Tool-Use-v1
Multi-turn tool-use conversations: interactive-agent trajectories (simulated user, agent, tool environment) and general tool-calling, judge-filtered.
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.
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.
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.
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.
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.
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.
NuminaMath-LEAN
Competition problems with formal statements, ground-truth proofs and an rl_data field for Lean 4 training.
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.
open-r1 CodeForces-CoTs
DeepSeek-R1 chain-of-thought solutions in C++ and Python for Codeforces problems, used to train OlympicCoder.
open-r1 Mixture-of-Thoughts (code)
Verified DeepSeek-R1 reasoning traces across math, code and science; code part is competitive-programming focused.
open-r1/codeforces
Codeforces problems with statements, editorials, official tests and generated checkers, including interactive problems; the 'verifiable' config keeps problems with complete tests.
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.
OpenCoder opc-sft-stage1
Stage-1 SFT mix of OpenCoder: filtered general instructions plus large-scale synthetic and real-user code instructions.
OpenCoder opc-sft-stage2
High-quality stage-2 code SFT: educational synthetic, evolved, McEval-style multilingual and package-usage instructions.
OpenCodeReasoning
R1-generated reasoning solutions for competitive problems with difficulty column and source license column.
OpenCodeReasoning-2 (NVIDIA)
Second release: R1 generations with QwQ critiques and right/wrong judgements, for both code completion and code critique SFT.
OpenThoughts-114k
DeepSeek-R1 reasoning traces with correctness verification; code rows include test cases and starter code.
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.
OpenThoughts3-1.2M
Result of 1,000+ controlled data-recipe experiments; each question annotated 16x with QwQ-32B. Trains OpenThinker3-7B.
rStar-Coder
Competitive problems with mutually verified test cases, with configs synthetic_sft, synthetic_rl, synthetic_rl_testcase, seed_sft, seed_testcase.
Sky-T1 data 17K
Training data of Sky-T1-32B-Preview (code and math with QwQ-generated reasoning).
SmolTalk
General SFT mixture used for SmolLM2 with code-containing subsets such as smol-magpie-ultra.
Spider
Cross-domain text-to-SQL; databases are executable SQLite so execution accuracy gives a reward.
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.
SWE-bench-extra
Nebius earlier large SWE-bench-format task collection (patch, test_patch, F2P/P2P, license per instance), precursor to SWE-rebench.
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.
SWE-Gym OpenHands sampled trajectories
OpenHands trajectories sampled on SWE-Gym tasks with a resolved flag, with trajectory-level resolved labels.
SWE-smith trajectories
SWE-agent trajectories with Claude 3.7 Sonnet on SWE-smith instances; columns include messages, resolved, model and patch.
SWE-Synth
Synthetic bug-fix instances with setup patches, F2P/P2P tests and problem statements, plus Moatless SFT trajectories in sibling datasets.
SynSQL-2.5M
Million-scale synthetic cross-domain text-to-SQL used to train the OmniSQL models.
SYNTHETIC-1
Prime Intellect crowdsourced DeepSeek-R1 traces with verification_info and score columns across math, coding, SWE and more.
TACO
Large algorithmic problem set with tests, solutions, difficulty and algorithm tags, aggregated from many contest sites.
Tulu 3 SFT Mixture (code parts)
General SFT mixture for Tulu 3; a template for how much code to blend into a general assistant.
Environments 8
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.
OpenSWE (GAIR, daVinci-Env)
Large open set of executable Python SWE environments with synthesis pipeline released.
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.
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.
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.
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.
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.
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.
Models 24
DeepSeek-Coder-V2 (Instruct 236B / Lite)
June 2024 MoE code model continued-pretrained from DeepSeek-V2; strong at release, now legacy.
DeepSeek-V3.2
Dec 2025 DeepSeek V3 line model, MIT licensed; a common open teacher and RL starting point before V4.
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.
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.
Devstral 2 (123B)
Larger Dec 2025 Devstral for agentic coding under a modified MIT license.
Devstral Small 2 (24B)
Dec 2025 Mistral agentic coding model, Apache licensed; earlier Devstral-Small-2505 and 2507 are also Apache-2.0 (verified).
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.
GLM-5.3-Flash
Aug 2026 smaller GLM-5.3 with new base model, hybrid sparse/linear attention and native multimodality; MIT licensed.
gpt-oss-120b
Aug 2025 OpenAI open-weight reasoning model with an Apache license; a permissive teacher/baseline.
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.
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).
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.
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.
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.
OpenCodeReasoning-Nemotron-32B
NVIDIA reasoning code model distilled via SFT only from the OpenCodeReasoning dataset on Qwen2.5-32B-Instruct.
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.
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).
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).
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.
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.
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.
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.
SmolLM3-3B
Fully open 3B model with dual-mode reasoning; handy as a tiny testbed for code recipes (see smollm repo).
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.
Papers 13
DeepSeek-Coder-V2
Continued pretraining of a MoE on code and math tokens to reach closed-model-level code results at release.
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.
LIMA: Less Is More for Alignment
About 1,000 curated examples can align a model, arguing for quality over quantity in SFT.
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.
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).
OpenCoder: The Open Cookbook
Releases weights plus reproducible data pipeline, ablations and training protocol for a top-tier code LLM at its release.
OpenCodeReasoning
SFT-only distillation dataset for competitive coding; abstract reports 61.8% LiveCodeBench and 24.6% CodeContests and analyzes execution filtering.
Qwen2.5-Coder Technical Report
Describes data, training and evaluation for the Qwen2.5-Coder family.
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).
SelfCodeAlign
Self-alignment pipeline: model extracts concepts, generates tasks, samples responses with tests, keeps passing examples; 74k pairs from CodeQwen1.5-7B (abstract).
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).
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).
WizardCoder: Evol-Instruct for code
Adapts Evol-Instruct to progressively harder code instructions and fine-tunes StarCoder.
Recipes 4
Alignment Handbook
Hugging Face recipes for SFT and preference alignment.
Open-R1
Hugging Face's open reproduction of DeepSeek-R1: SFT, GRPO training scripts, code-reward environments and datasets.
OpenCoder repo
Code, data-processing pipeline and training recipe behind OpenCoder.
SmolLM recipes
Training, data and eval recipes for the SmolLM family including Stack-Edu related data.
Tools 6
Axolotl
YAML-driven fine-tuning framework with multi-GPU and many model families.
LLaMA-Factory
Unified fine-tuning of 100+ LLMs and VLMs (SFT, DPO, etc.) with a web UI.
Open-Instruct (AI2)
AI2 post-training codebase including RLVR (GRPO) training. Verified active on GitHub API.
torchtune
PyTorch-native post-training library.
TRL
Hugging Face RL library with GRPO trainer and custom reward functions. Verified active on GitHub API.
Unsloth
Memory-efficient fine-tuning and RL library with GGUF export and local UI.
