﻿# Magicoder OSS-Instruct: track code seeds in synthetic instruction data

Trace Magicoder OSS-Instruct synthetic coding tasks back to seed snippets, separate problem and solution fields, and bound claims about decontamination.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/data-guide-magicoder-code-seed-provenance/
Language: en

## Separate the dataset from the model family

The [Magicoder author repository](https://github.com/ise-uiuc/magicoder) distinguishes OSS-Instruct training data from the Evol-Instruct collection used in another training stage. A model name therefore does not identify a single training corpus. The [official OSS-Instruct artifact](https://huggingface.co/datasets/ise-uiuc/Magicoder-OSS-Instruct-75K) exposes a training split with seed and generated-content fields. Record the exact dataset revision and any mixtures before attributing a result to OSS-Instruct alone. These are instruction-training examples, not a released universal validation split for measuring coding ability.

## Follow the seed-to-problem transformation

The [original OSS-Instruct paper](https://arxiv.org/html/2312.02120) describes sampling seed snippets from StarCoderData and asking a teacher model to create a coding problem and solution inspired by them. The generated task can differ from the snippet's language or immediate purpose. Keep `lang`, `seed`, `problem`, and `solution` conceptually separate. A seed-language label does not necessarily describe every generated answer. An editorial review should inspect whether the problem is self-contained rather than assuming that an incomplete seed makes the generated instruction incomplete.

## Retain generation identity without overstating provenance

The artifact exposes `raw_index`, `index`, and `openai_fingerprint` in addition to text fields. These identifiers help trace generation records, but they should not be promoted into undocumented repository paths or proof of a fully reproducible teacher response. Preserve available fields in [provenance records](/journal/document-markdown-json-provenance/) and state missing upstream context. The owner card identifies the historical generation model. It does not establish that a new run of a similarly named service will recreate the same examples or judgments.

## Distinguish cleaning from solution verification

The paper describes removing identical examples and shared seed snippets while deliberately retaining some other noise, including incomplete solutions. A retained row should therefore not be described as passing an independently executed test suite unless that evidence is separately available. For an editorial quality study, distinguish requirement completeness, executable setup, and solution behavior. Keep any locally corrected response as a derivative with its own identity instead of silently replacing the published target and retaining the original provenance label.

## Bound benchmark-contamination claims

The paper's decontamination checks target specified benchmark text, rather than proving independence from every current coding evaluation. Apply [leakage controls](/journal/document-level-data-split-leakage/) again for a new test collection, considering generated problems, solutions, and seed ancestry. Shared seeds can connect superficially different instructions. OSS-Instruct is useful for studying code-seeded synthetic instruction tuning and the effect of source diversity. Its host license label does not settle all upstream-code or teacher-output conditions, and its historical benchmark results do not establish current model rankings.
