Skip to main content
The shortest path to a trained model on Veri. Managed GRPO is one decorator and one command: define a reward function, decorate it with your config, and run veri train. Veri uploads the reward, connects the dataset, provisions the GPU, runs the loop, streams metrics, and captures the checkpoint. This trains Qwen2.5-0.5B-Instruct on GSM8K for 50 GRPO steps on a single L4 (24 GB) — a fast smoke test.
This spends real GPU credit. Check your balance with veri billing balance first.

Prerequisites

  • Install the SDK: pip install veri-sdk
  • Authenticate: veri login (or set VERI_API_KEY)

Write the script

Save as train.py:
train.py
The decorator is metadata only. veri train does the upload, submit, and wait.

Run it

Veri bundles the reward, connects GSM8K, submits the job, and streams status to completion. Open the dashboard URL it prints to watch the live reward curve. With W&B connected (veri wandb set, one time), the same curves also stream to your W&B project and the job page gains a “View in W&B” link.

Get the checkpoint

Next steps

Managed training

Methods, lifecycle, failure modes, and what each hyperparameter controls.

Deploy your checkpoint

Serve it with an OpenAI-compatible API.