# Train a model

Set up an experiment on a dataset or environment, pick an algorithm and a base model, and start a training run.

## Prerequisites

- A [project](create-a-project.md).
- A [dataset](upload-a-dataset.md) or an [environment](upload-an-environment.md) to train on.
- For reasoning datasets, a prompt template and a reward function. See [Write prompts and reward functions](prompts-and-rewards.md).

What you train on decides which algorithms Arena offers, and whether you need extra setup such as a reward function. See [Algorithms by training data](../reference/algorithms.md#by-training-data). The rest of the setup is the same for every algorithm.

## Steps

### Web app

1. Open **Experiments** in the sidebar, pick your project, and click **New experiment**. Enter a **Name**, and a **Description** if you like, then click **Create Experiment**. The wizard opens on the new draft. It has four steps: **Environment**, **Agent**, **Training** and **Summary**.
2. On **Environment**, pick a dataset or an environment from the grid. For an environment, use **Select version** to choose which version to train on. A reasoning dataset adds two tasks you finish on this step, **Prompts** and **Reward Function**; **Next** stays off until the reward passes [validation](prompts-and-rewards.md#validate-the-reward-function).
3. On **Agent**, choose an algorithm and a base model. **Maximum context length** can’t go above the model’s own limit. Arena fills in the LoRA modules for the model, so you only set rank, alpha and dropout if you want to change them.
4. On **Training**, set the training parameters. On a dataset, leaving **Maximum Number of Training Steps** empty trains one pass over the data. For a first trial run, enter a small number such as 10 so it finishes fast and costs little. The **Training resources** bar picks GPUs that fit the run and shows **Est. time** and **Est. training cost**. To change them, see [Choose compute](choose-compute.md).
5. On **Summary**, check the settings and click **Train**. Arena takes you back to the project’s **Experiments** tab. The status goes to **Pending**, then **Running**; training usually starts within about ten minutes.

**Next** is off until the current step is complete, and a message says what is missing. **Save** on **Summary** keeps the draft without training it. A draft also saves itself after five idle minutes. You can start a saved draft later with **Train** on its card in the **Experiments** tab.

To rename an experiment later, open its card’s **⋮** menu and choose **Edit name**.

### CLI

Print a manifest with Arena’s defaults, edit it, check it, then submit:

```bash
arena manifest template CISPO --model Qwen/Qwen3.5-4B --dataset gsm8k > run.yaml
arena manifest validate run.yaml
arena experiments submit run.yaml --project my-project --experiment-name gsm8k-cispo --reward-file reward.py
```

Use `--env` instead of `--dataset` to train on an environment, and drop `--reward-file` for anything other than a reasoning dataset.

In the manifest, `environment.dataset` names the dataset Arena trains on. Without it, Arena trains on whatever `environment.name` names, a dataset or an environment. With `dataset` set, `name` is only a label, unless it is the name of a different registered dataset: then submit stops with `environment.dataset is '…' but environment.name is '…', a different dataset`. Set `name` to the same dataset, or remove it. `arena models list` lists the models `--model` takes. `arena manifest template` needs you to be signed in.

For a reasoning dataset, check these fields under `environment` before you submit:

- `prompt_template`: the chat messages, with `{question}` where the row’s question goes.
- `max_reward`: the most your reward function can return.
- `chat_template_kwargs`: for example `enable_thinking: false` on Qwen3.5.
- `rubric_file_path`: `arena manifest template` sets it to `reward.py`. It must name the file you pass to `--reward-file`; if you remove it, `--reward-file` fills it in.

What each one does is in [Write prompts and reward functions](prompts-and-rewards.md). The Quickstart’s [`gsm8k_cispo.yaml`](/_downloads/b3de7108d540c16690dda685ef21f374/gsm8k_cispo.yaml) is a complete example.

On a dataset, a manifest without `training.max_steps` trains one pass over the data. For a first trial run, set it to a small number such as `10`.

`arena experiments submit` prints the GPUs, hourly rate and estimated total, then asks before it starts billing. Add `--dry-run` to see the price without submitting, or `--yes` to skip the question in a script. Arena picks the cheapest GPUs that fit; to choose them yourself, see [Choose compute](choose-compute.md).

Flags are in the [command reference](../cli/command-reference.md). Every manifest field is in the [manifest schema](../cli/manifest-schema.md).

## Next

- Watch the run: [Monitor, halt and resume](monitor-halt-resume.md).
- Compare runs and pick a checkpoint: [Results and checkpoints](results-and-checkpoints.md).
