> ## Documentation Index
> Fetch the complete documentation index at: https://benchgen.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a Fine-tune Dataset

> How a benchmark run's finetune artifact becomes a training dataset, automatically or with one click, and how to use it in Train.

When a benchmark's scoring program packages a **finetune artifact** for a run, that's a ready-to-train dataset built from the run's own cases. Today that's built into BenchGen's Turkish benchmark suite (GSM8K-TR, Bilmece, MKQA, TQuAD, and SSB); other environments can add the same capability, see [Bundle Structure](https://benchgen.com/docs/eval/bundle-structure.md) if you're the one authoring one.

> [!NOTE]
>
> Not every run has one. Whether a benchmark's scoring program emits a finetune artifact at all, and which cases it selects, is a decision made by whoever built that environment. Runs on environments that don't support this show "the benchmark's scoring program did not emit one" instead, see [Benchmark Results](https://benchgen.com/docs/eval/read-results.md).

## How a sample gets generated

The scoring program builds the dataset from the run's own results, layering three sources:

1. **Seed — every question the model got wrong.** Each becomes one training example: the same question as input, and a short "reasoning + final answer" as the target, using the benchmark's own correct answer, not the model's wrong one.
2. **Augmentation — deterministic variants of each seed (on by default, 5x).** Every wrong question is expanded into several rephrasings: the connectors reworded ("ardından" ↔ "sonra"), a different instruction prefix or suffix added, or an alternate system prompt swapped in. Numbers are never touched, so the correct answer stays valid across every variant. 40 wrong answers becomes roughly 200 training rows this way.
3. **Pool (optional) — a slice of a larger static dataset**, when the benchmark ships one, mixed in so the model doesn't train on failure cases alone.

Which of these are combined is recorded as the manifest's `selection_criterion`, for example `wrong_plus_augmented` (seed + augmentation, the default) or `all_items` (every question, not just misses).

## What's inside the dataset

Unzip the artifact and you get a manifest, a short README, and the training data itself in four formats:

```
finetune_artifact.zip
├── manifest.json
├── README.md
└── data/
    ├── messages.jsonl      # OpenAI chat format (system / user / assistant)
    ├── alpaca.json         # {instruction, input, output}
    ├── raw.csv             # id, question, gold, prediction, correct
    └── dataset.parquet     # HuggingFace datasets-ready
```

`manifest.json` carries everything about how the dataset was built:

```json theme={null}
{
  "schema_version": "1.0",
  "benchmark_id": "gsm8k-tr",
  "base_model_hint": "Qwen/Qwen2.5-Math-7B-Instruct",
  "selection_criterion": "wrong_plus_augmented",
  "num_examples": 200,
  "num_wrong_seed": 40,
  "augmentation": { "method": "template_paraphrase_v1", "factor": 5 },
  "suggested_hyperparams": {
    "method": "qlora", "rank": 16, "alpha": 32, "lr": 2e-4, "epochs": 3
  }
}
```

And each row in `data/messages.jsonl` looks like this, ready to feed straight into an SFT trainer:

```json theme={null}
{"messages": [
  {"role": "system", "content": "Sen Türkçe matematik problemlerini adım adım çözen bir asistansın. Cevabını mutlaka şu formatta bitir: #### <sayı>"},
  {"role": "user", "content": "Ali'nin 12 elması var..."},
  {"role": "assistant", "content": "Adım adım düşünelim ve sonucu yazalım.\n#### 7"}
]}
```

> [!NOTE]
>
> `suggested_hyperparams` is a recommendation from whoever built the benchmark, not something Train applies automatically. Use it as a starting point when you configure the training job yourself.

## Getting the artifact into a dataset

> [card] Automatically
>
> The moment a run finishes, BenchGen checks it for a finetune artifact and saves it to your datasets on its own, once per run. Most of the time there's nothing to do.

> [card] Manually
>
> On the run's [detail page](https://benchgen.com/docs/eval/read-results.md), the **Fine-tune Dataset** panel below Files shows **Save to FineTune Datasets** whenever the auto-save hasn't already run for that artifact.

Either way, the panel then shows **Open Dataset** so you can jump straight to it.

## Where it shows up

Every saved artifact becomes a dataset on the **Datasets** page, under the **Fine-tune** filter, tagged with a purple **Benchmark** badge. Its name is generated for you:

```
<Benchmark> · <Model> · <Score>% · <Month Year>
```

For example: `GSM8K · Qwen2.5-7B-LoRA · 72.5% · Jun 2026`

Opening it shows the metadata carried over from the run: the base model it was trained against, the number of examples, the selection criterion the scoring program used to pick them, and a **View benchmark** link back to the source run.

## Using it in Train

Pick it like any other dataset in the **Model & Dataset** step of a new training job. Selecting a benchmark-sourced dataset also fills in the base model for you, since the artifact already records which model it came from, a banner confirms **"Benchmark fine-tune dataset selected: training will reuse the saved BenchGen artifact and its recorded base model."**

> [card] [Fine-tune a Model](https://benchgen.com/docs/train/fine-tune-a-model.md)
>
> Start a training run with this dataset selected.

> [card] [Add a Dataset](https://benchgen.com/docs/train/add-a-dataset.md)
>
> Everything else you can do on the Datasets page, including adding your own.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.