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

# Training runs

> How a run turns lessons into a new version. Rounds of LoRA training repeat until every lesson is right and accuracy reaches the target.

Source: https://docs.heurastudios.com/build/training-runs/

A **run** is one press of **Train**, or one the Studio starts by itself. It trains in **rounds**, checking the model after each one, and stops when the model has learned what you taught it. The best round becomes the next version, and the [release gate](https://docs.heurastudios.com/concepts/versions-and-the-release-gate/) decides whether it goes live.

*Diagram: A training run: Eval before (the live version answers the tests), Prepare rows (3 per new lesson plus the replay mix), Train round (a LoRA adapter on the base), Check (every lesson, then every test), then either another round focused on what it missed or Save (the done or best round) and the release gate.*

*A run trains round after round, focusing each new round on what the model still gets wrong.*

## A run, step by step

**Step 1. Eval before**

The live version answers every test question, so the run has something to compare with. An answer that can't have changed since an earlier run is reused instead of asked again.

**Step 2. Preparing rows**

Each new example or fix becomes 3 rows: once as taught, and twice asked a little differently. Each lesson trained in before becomes 2 rows. 52 rows of the replay mix go in too, so the model keeps what it already knew.

**Step 3. Training**

A LoRA adapter is trained on the base model from those rows. The console shows the step it's on, and you can keep working meanwhile.

**Step 4. Checking**

The round's checkpoint answers every lesson the run trains on, as taught and asked a little differently, with that lesson left out of what it reads, so it has to answer from its weights. Then it answers every test question.

**Step 5. Next round**

Until every lesson is right and accuracy reaches the target, the next round trains the round's checkpoint again: 3 rows for each lesson still wrong, 1 for each right one, plus the replay mix.

**Step 6. Saving the version**

The round that's done, or else the best round, is saved as the next version: v1, v2, v3.

**Step 7. Release gate**

The new version is compared with the live one on held-out tests. It goes live unless it broke more than it fixed.

## Train until right

Two settings in **Train** shape every run:

| Setting | Range | Default | What it does |
| --- | --- | --- | --- |
| **Rounds** | 1 to 200 | 3 | The most rounds one run trains. |
| **Target** | 1 to 100% | 80% | The accuracy a round must reach to count as done. |

A run stops at the first of: a done round (every lesson right and the target reached), **Stop after this round**, the last round, or 10 rounds in a row that don't beat the best one. The **best round** has the most lessons right, then the highest accuracy, then the highest non-regression, then the earliest.

## Before you train

- At least **5 examples and fixes**, and at least **one test question**.
- **Train** shows how long the run should take and the credits it can use before you start. A round usually takes 5 to 15 minutes.

## Watching a run

- **The run tab** in the console says what the run is doing: the round, its rows, the loss, and the checks.
- **The log tab** shows every line the run prints, live, the way Kaggle shows a notebook's output: time, line number and message. **Download log** saves it. Each model keeps its newest 10 run logs.
- **Live events** (the **N live** count in the status bar) lists everything running for your account: trainings, runs waiting in line, test runs, sound runs and base model downloads, plus what ended in the last 15 minutes and how it came out.

## Capacity and limits

- **One training at a time** runs across the server. Others wait in line, and between rounds a run gives its slot to the next in line.
- **8 hours** is the most any run trains. A run stopped there ends as Training failed; reduce the rows or rounds and run again.
- **A restart** of the Studio (a deploy) ends a running loop. The model's activity says so, and the run doesn't count against your day.

## Runs by itself

In **Train**, **Runs by itself** starts a run when a number of new lessons (1 to 100) are waiting. The Studio checks once a minute and presses Train as you would. When a run doesn't go live, it waits for a new or changed lesson before trying again, so it never trains the same lessons twice. It's off until the owner turns it on.
