Prerequisites
[ckpt] block the run leaves you nothing to evaluate:
Step 1: Choose an Environment
You can use an existing environment from the Environments Hub or create your own. For this walkthrough we’ll usealphabet-sort — a multi-turn game where the model must sort letters into alphabetical order. If you’re new to how environments work, see The Environment Model.
Install it:
Step 2: Run a Baseline Evaluation
Before training, evaluate the base model to establish a baseline. This confirms the environment works and shows you where the model starts:outputs/evals/ (metadata.json, results.jsonl). To view them on the dashboard, upload the run directory:
The baseline
vf-eval results above use the legacy sample workflow. They are not a direct Prime Traces import. See supported trace uploads and exporting existing legacy samples.Step 3: Choose a Model and GPU Type
$/GPU-hour and whether a run starts now or queues. Runs boot from a cluster-side weight cache, so pick a model from that list — see Models.
For a first run, pick the smallest model that exercises your environment end to end. Validate cheaply, then scale.
Step 4: Create a Training Config
Training runs are configured with a prime-rl.toml file. The [deployment] block sizes the run and is what routes it onto Hosted Training.
[model].name— the model to train. Models listed byprime train modelsare already cached and start warm; anything else is downloaded first, which adds billable time before the first step[ckpt]— save checkpoints. Off by default; with no[ckpt]block nothing is written[deployment]— how many trainer and inference GPUs to reserve; required for dispatchmax_steps— total training steps[orchestrator].batch_size— rollouts consumed per training batch[orchestrator].group_size— rollouts generated per dataset example[orchestrator.train.sampling].max_completion_tokens— max tokens the model generates per turn[[orchestrator.train.source]]— one block per training environment, carrying a nestedenvblock
"alphabet-sort-v1", "default") resolved by the installed runtime package, or slash-shaped Hub refs ("primeintellect/alphabet-sort", optionally with @version) resolved through the Environments Hub.
Trace storage and costs
Traces uploaded by platform runs incur Prime Traces ingestion and storage charges, separately from training charges. Review workspace upload controls before launching. See Viewing and deleting traces to manage the resulting data.Step 5: Launch the Training Run
-e / --env-var or --env-file:
Step 6: Monitor the Run
In the terminal — stream logs in real time:-c / --component:
--search, --regex, --level, and --since.
On the dashboard — open the URL printed when the run started, for reward curves, rubric scores, reward distributions, and individual rollouts.
Key metrics to watch:
- Reward — the overall reward curve should trend upward over time
- Rubric — individual rubric component scores
- Reward Distribution — should shift from lower to higher values as training progresses
Step 7: Review Results
Retrieve the checkpoint
Each run writes to its ownruns/<run-id>/ directory on the volume, with the prime-rl run directory nested under outputs/. Browse it first, then pull the whole run directory down — the export step needs the run’s resolved config, not just the checkpoint:
Export to HF format
Trainer checkpoints are DCP-sharded, so they need converting before anything else can load them. The converter lives in the prime-rl repo and needs at least one GPU:<run-dir>/checkpoints/step_<n>/weights. That directory loads into any HF consumer. See Exporting Checkpoints for FP8 variants.
Evaluate against your baseline
Serve the exported weights, then point the Step 2 evaluation at them:-b points vf-eval at your endpoint and -k names the env var holding its key. Compare the reward against the baseline you recorded in Step 2.
Metrics, samples, and progress are persisted to the dashboard either way, but trainer, inference, and env-server pod logs go away with the pods when the run is torn down — pull anything you need while the run is live.
Run Size Guidelines
Each of these omits the blocks already covered above — add[ckpt] and dispatch with --volume or the run saves nothing.
Small (validation)
Verify your environment and config work before committing to a longer run.Medium (experimentation)
Good for iterating on environment design and hyperparameters.Large (production)
WANDB_API_KEY is required for the [wandb] block to take effect — without it the block is stripped and the run trains without W&B logging.Full Fine-Tuning
Config reference, dispatch knobs, limits, and run lifecycle.
Billing
How GPU-hours are metered and what gets billed.
Troubleshooting
Solutions for common issues with Hosted Training runs.