# OpenCoder SFT Stage 2

- **ID:** 1153
- **Kind:** dataset
- **URL:** https://huggingface.co/datasets/OpenCoder-LLM/opc-sft-stage2
- **Authors:** OpenCoder-LLM
- **Published:** 2024
- **Source:** huggingface
- **Access:** Free
- **License:** MIT (card). Upstream Magicoder Evol-Instruct / McEval-Instruct terms still apply to those slices. Synthetic educational/package rows generated by OpenCoder authors.
- **License family:** Permissive (auto-classified)
- **Topics:** code instruction tuning; compiler-checked educational triples; Python package APIs; multilingual code (McEval); Evol-Instruct diversity
- **Added:** 2026-08-14
- **Verified:** 2026-08-14
- **Page:** https://papers.projxon.ai/entries/1153

## Summary

Stage-2 SFT for OpenCoder-1.5B/8B-Instruct: smaller higher-quality code mix after the ~4.2M Stage-1 dump, including test-case triples usable as code-RL signal

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

- **Repository:** OpenCoder-LLM/opc-sft-stage2 (Hugging Face)
- **Created:** Nov 8, 2024 (Hugging Face)
- **Last updated:** Nov 24, 2024 (Hugging Face)
- **Downloads (last month):** 13,871 (Hugging Face)
- **Likes:** 105 (Hugging Face)
- **Size:** 100K to 1M rows (Hugging Face)
- **Modalities:** text (Hugging Face)
- **Formats:** parquet (Hugging Face)

## Dataset profile

- **Scale:** Hub YAML/datasets-server numRows 436,347 across 4 configs (size_categories 100K<n<1M). Per-config: educational_instruct 118,278; evol_instruct 111,183; mceval_instruct 35,943; package_instruct 170,943. Paper Table 5 Stage2: McEval 36K + Evol 111K + Educational 110K + Package 110K = 367K — Hub educational/package are larger than the paper round numbers (catalog Hub as the downloadable set). 5 parquet shards: educational 53.6 MB; evol 136.6 MB; mceval 61.2 MB; package 132.5+153.6 MB. YAML download_size 537.4 MB / dataset_size 1.11 GB. usedStorage 3,473,573,865 bytes (~3.47 GB). Hub 2,505 downloads / 104 likes at check. gated=false.
- **Format:** parquet. Four named configs (no default concat). educational_instruct columns: seq_id, instruction, output, code, entry_point, testcase (list[str]). evol/mceval/package: instruction, output, tag.
- **Type:** Code instruction SFT corpus / two-stage OpenCoder Stage-2 mix
- **License:** MIT (card). Upstream Magicoder Evol-Instruct / McEval-Instruct terms still apply to those slices. Synthetic educational/package rows generated by OpenCoder authors.
- **Cost:** Free
- **Languages:** Card has no language: tag. educational_instruct and package_instruct are English NL + Python. evol_instruct is English Magicoder Evol-Instruct. mceval_instruct is multilingual code (McEval; viewer sample Lua with enUS/ruRU localizations). No LID table.
- **Modality:** Text-only (NL instructions + source code + optional unit tests).
- **Domain:** code instruction tuning; compiler-checked educational triples; Python package APIs; multilingual code (McEval); Evol-Instruct diversity
- **Time period:** SFT dump for OpenCoder instruct models. Paper arXiv 2411.04905 (2024-11-07). HF createdAt 2024-11-08T17:33:31Z; lastModified 2024-11-24T06:41:13Z. Seeds: algorithmic corpus (sibling opc-annealing-corpus), Magicoder Evol-Instruct 110k, McEval-Instruct, pydoc package docs. One-shot release.
- **Purpose:** Stage-2 SFT for OpenCoder-1.5B/8B-Instruct: smaller higher-quality code mix after the ~4.2M Stage-1 dump, including test-case triples usable as code-RL signal
- **Used for:** OpenCoder-1.5B-Instruct (paper HumanEval 72.5 / HumanEval+ 67.7) and OpenCoder-8B-Instruct (HumanEval 83.5 / HumanEval+ 78.7). Hub 2,505 downloads / 104 likes at check. Discord posted the OpenCoder-LLM collection, not this URL.
- **Authors:** OpenCoder-LLM / INF / M-A-P / NJU (Huang, Cheng, Liu, Hao, Song, Xu, Yang, Liu, Zhang, Chai, Yuan, Zhang, Fu, Liu, Zhang, Wang, Qi, Xu, Chu). Mix of OpenCoder-synthesized educational/package rows, ise-uiuc Magicoder Evol-Instruct authors, and McEval-Instruct authors. Teacher LLM for educational/package synthesis Unknown beyond paper "strong LLM" / pydoc seed.
- **Bias:** Python-heavy Stage-2 mix (educational triples + pydoc package QA), not general chat. evol_instruct is a copy of Magicoder-Evol-Instruct-110K (OSS-Instruct lineage). mceval_instruct is a 36k multilingual slice, not the full McEval eval set. Paper: Stage-2 is higher average quality than Stage-1 but much smaller. Do not add these 436k on top of already-cataloged OpenCoder SFT Stage 1 / FineWeb Code/Math / Annealing Corpus.
- **Text quality:** educational_instruct: compiler-validated (instruction, code, testcase) triples from algorithmic seeds; viewer samples are short LeetCode-style Python (palindrome, missing number). evol_instruct inherits Magicoder Evol noise (viewer row 0 is a react-native-skia bundle-size question, not a coding task). mceval_instruct is multilingual function-writing. package_instruct is pydoc-seeded Python stdlib/JSON-style QA. Not independently re-run here. Paper: 10-gram / entry-point decontam vs HumanEval/MBPP.
- **Sample size:** Four train configs, no val/test. Hub: educational 118,278; evol 111,183; mceval 35,943; package 170,943. Paper Table 5 used 36k/111k/110k/110k. Sibling opc-sft-stage1 is a different dump (Hub 4,216,321) — already cataloged.
- **Long context:** No (single-turn instruction/output pairs; OpenCoder instruct trained after 8K/4K base context). Typical pair length Unknown without parquet inspect. educational testcase lists are short asserts.
- **Intermediate steps:** Yes (paper: score algorithmic seeds; teacher LLM synthesizes QA + test cases; Python compiler filter for educational triples; copy Magicoder Evol-Instruct and McEval-Instruct; pydoc API docs → package QA; 10-gram / entry-point decontam vs HumanEval/MBPP).
- **Idea quality:** High
- **Novelty:** High (public ~436k OpenCoder Stage-2 SFT with compiler-checked educational triples; completes the already-cataloged Stage-1 dump)
- **Text conversion:** Ready parquet; load_dataset('OpenCoder-LLM/opc-sft-stage2', '<config>'). ~537 MB download. No default config — load each of the four. Streaming optional at this size.
- **Collection method:** Download
- **Static:** Unknown (HF lastModified 2024-11-24; one-shot OpenCoder SFT dump)
- **Processed:** Unknown

## Links

- Dataset: https://huggingface.co/datasets/OpenCoder-LLM/opc-sft-stage2
- Related: https://arxiv.org/abs/2411.04905
- Related: https://huggingface.co/datasets/OpenCoder-LLM/opc-sft-stage2
- Related: https://huggingface.co/datasets/OpenCoder-LLM/opc-sft-stage1
- 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/ise-uiuc/Magicoder-Evol-Instruct-110K
- Related: https://huggingface.co/datasets/Multilingual-Multimodal-NLP/McEval-Instruct
- Related: https://huggingface.co/infly/OpenCoder-8B-Instruct

## Research notes

- Discord posted the OpenCoder-LLM collection (message 1362451409097855268), not this dataset URL. gated=false; public. Completes already-cataloged OpenCoder FineWeb Code/Math + Annealing Corpus + SFT Stage 1 with the missing Stage-2 mix. Paper vs Hub scale disagree on educational (110k vs 118,278) and package (110k vs 170,943); catalog Hub 436,347. evol_instruct is essentially Magicoder-Evol-Instruct-110K — do not double-count that upstream. Cite Huang et al. 2024 arXiv 2411.04905. Not in papers_local.csv. Not on the Aug 13 live Datasets sheet export.

## Related entries

- Related: [OpenCoder Datasets](https://papers.projxon.ai/entries/29) (collection, #29)
- Related: [The Stack v2](https://papers.projxon.ai/entries/232) (dataset, #232)
- Related: [Infinity Instruct](https://papers.projxon.ai/entries/319) (dataset, #319)

## Similar entries

- [Step-3.5-Flash-SFT](https://papers.projxon.ai/entries/255) (dataset, #255)
- [UltraData-Code (OpenBMB L0–L3 tiered code pretrain: L2 algorithmic + L3 synthesis)](https://papers.projxon.ai/entries/1035) (dataset, #1035)
- [The ultimate guide to multi-harness RL](https://papers.projxon.ai/entries/839) (post, #839)
- [LLaVA-OneVision-1.5-Instruct (Instruct-Data)](https://papers.projxon.ai/entries/1123) (dataset, #1123)
- [Invent a Dataset: Measuring Dataset Generation Abilities With Zero Seed Data](https://papers.projxon.ai/entries/834) (paper, #834)
- [Vibe-Coding-Instruct](https://papers.projxon.ai/entries/422) (dataset, #422)
