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

# Getting Started

> Launch your first on-demand Hosted Training run

Train a model with reinforcement learning on Prime Intellect's infrastructure — no GPUs to manage, no cluster to reserve.

## Pick your path

| | What it is | Access |
| - | - | - |
| **[Hosted Training](#1-install-the-cli-and-log-in)** | You submit a config, we run it on GPUs we operate, billed [per GPU-hour](https://docs.primeintellect.ai/hosted-training/billing.md). | Self-serve |
| **[Model Factory Clusters](https://docs.primeintellect.ai/model-factory/clusters.md)** | A dedicated cluster running training, inference, Slurm and Kubernetes side by side. Use this when you need control over the stack. | [Contact us](mailto:contact@primeintellect.ai) |
| **[prime-rl](https://docs.primeintellect.ai/prime-rl/overview.md)** | The open-source training framework, running on your own hardware. | Self-hosted |

Hosted Training is the fastest way to start, and the rest of this page covers it.

## Prerequisites

* Python 3.11+
* A [Prime Intellect account](https://app.primeintellect.ai) with on-demand training enabled and a funded wallet, see [Billing](https://docs.primeintellect.ai/hosted-training/billing.md)

## 1. Install the CLI and log in

```bash theme={null}
# install uv (if not already installed)
curl -LsSf https://astral.sh/uv/install.sh | sh
# install the prime CLI
uv tool install -U prime
# log in
prime login
```

## 2. See what you can run

```bash theme={null}
prime train models
```

This lists the models available to dispatch and an **On-Demand Capacity** table of purchasable GPU types with their current `$/GPU-hour`. Models on that list are already cached cluster-side and start warm. An on-demand run can still train a model that is not listed, it just downloads the weights first.

## 3. Create a volume to keep your weights

Checkpointing is **off by default**, and when a run finishes its pods are torn down. Without a volume and a `[ckpt]` block, a completed run leaves you with dashboard metrics and no model.

```bash theme={null}
prime volumes create research --size 100Gi
```

Add `[ckpt]` to save weights. The example below also limits recent checkpoints; see [Volumes](https://docs.primeintellect.ai/hosted-training/volumes.md#checkpoint-settings) for retention, sizing, and cluster-specific requirements.

## Trace storage

Before launching, review [Prime Traces pricing and upload settings](https://docs.primeintellect.ai/traces/pricing-and-settings.md). Traces uploaded by platform runs incur ingestion and storage charges. Stored traces can be explored in the [Traces dashboard](https://app.primeintellect.ai/dashboard/traces).

The November 6 [legacy sample storage retirement](https://docs.primeintellect.ai/traces/legacy-storage.md) is separate from the [retirement of shared LoRA training](https://docs.primeintellect.ai/hosted-training/shared-lora-retired.md).

## 4. Launch a run

Training runs are configured with a [prime-rl](https://docs.primeintellect.ai/prime-rl/configuration.md) `.toml` file. The top-level `mode` names the run kind, and the `[deployment]` block sizes the run and is what routes it onto Hosted Training.

Save this as `configs/rl.toml` — one trainer GPU and one inference GPU:

```toml theme={null}
mode = "rl"
name = "reverse-text-hosted"
max_steps = 100
seq_len = 2048

[ckpt]                                              # save step 100 to the volume
interval = 100
keep_last = 1

[model]
name = "PrimeIntellect/Qwen3-0.6B-Reverse-Text-SFT"

[deployment]
num_train_gpus = 1
num_infer_gpus = 1

[trainer.optim]
lr = 3e-6

[orchestrator]
batch_size = 64

[orchestrator.train]
group_size = 8

[orchestrator.train.sampling]
max_completion_tokens = 512

[[orchestrator.train.source]]
name = "reverse-text"

[orchestrator.train.source.env.taskset]
id = "reverse-text"

[orchestrator.train.source.env.agent.harness]
id = "null"

[orchestrator.train.source.env.agent.runtime]
type = "subprocess"

[orchestrator.renderer]
name = "prime-qwen3"

[inference]
```

Dispatch it against the volume:

```bash theme={null}
prime train configs/rl.toml --volume research
```

The CLI echoes the GPU type and hourly rate it resolved, then prints a run ID and dashboard link.

## 5. Monitor progress

**Terminal:**

```bash theme={null}
prime train logs <run-id> -f
```

**Dashboard:** open the link from the previous step for reward curves, rubric scores, and individual rollouts in real time.

Stop a run early to release its GPUs and stop the meter:

```bash theme={null}
prime train stop <run-id>
```

## 6. Get your weights

Wait for the run and its final volume sync to finish, then download its checkpoints:

```bash theme={null}
prime volumes get research runs/<run-id>/checkpoints/ ./checkpoints
```

Checkpoints are DCP-sharded and need converting before anything else can load them — see [Export to HF format](https://docs.primeintellect.ai/hosted-training/end-to-end-run.md#export-to-hf-format).

## Next steps

> [card] [End-to-End Run](https://docs.primeintellect.ai/hosted-training/end-to-end-run.md)
>
> Full walkthrough with baseline evals, model selection, and result review.

> [card] [Hosted RL](https://docs.primeintellect.ai/hosted-training/hosted-rl.md)
>
> Config reference, dispatch knobs, and run lifecycle.

> [card] [Billing](https://docs.primeintellect.ai/hosted-training/billing.md)
>
> How runs are metered and what gets billed.

> [card] [Platform Overview](https://docs.primeintellect.ai/platform-overview.md)
>
> How environments, training, evaluation, and inference fit together.
