Preview: this demo is pending an end-to-end verification run. The configuration is ported verbatim from prime-rl’s
reverse_text example, but the Veri launch wiring has not yet been confirmed on a live GPU. Treat the exact install and GPU-split details as provisional until this note is removed.What you build
A single-node RFT run that trains an SFT-warmedQwen3-0.6B on the bundled reverse-text environment. The environment supplies the reward, prime-rl runs the trainer plus an in-process vLLM inference server, and the resulting checkpoint is uploaded to Veri.
Because this is a custom script, the framework is your choice. Swap the two files below to run slime, verl, or TRL instead; nothing about the Veri platform changes.
Prerequisites
- A Veri API key.
- An H100-80GB box with at least 2 GPUs (one for inference, one for the trainer).
- Optional: a Weights & Biases API key for full RL observability (reward, KL, entropy, and sample-completion tables). Set it as
WANDB_API_KEYand the run links to your W&B project automatically.
The run config
prime-rl is driven by a single TOML. This is the upstreamreverse_text example, kept verbatim so your first run reproduces a known-good prime-rl run.
rl.toml
The entrypoint
The entrypoint installs prime-rl plus the verifiers environments, then launches a single-node run.uv run rl runs the trainer, orchestrator, and inference server together locally. Checkpoints land in $VERI_OUTPUT_DIR, which Veri uploads.
run.sh
Launch it
Upload the two files as a code artifact, then submit a custom-script job.Retarget without editing files
Set these increate_custom_script(env={...}):
For a different model, batch size, or reward weighting, edit
rl.toml directly: it is prime-rl’s full config surface.
Observe the run
Veri streams the worker logs live and uploads the final checkpoint. For RL-specific signals (reward and KL curves, advantage and entropy distributions, sample completions), setWANDB_API_KEY and open the linked Weights & Biases run from the job page. prime-rl logs the trainer and orchestrator into a single shared W&B run.
Next steps
Custom scripts
How the BYO-framework training substrate works.
Deploy your checkpoint
Serve the trained model with an OpenAI-compatible API.

