configs
How the prime-rl config system works — TOML files, CLI overrides, composition, and special patterns. Use when creating configs,…
Launch local or SLURM prime-rl training runs with the rl, sft, and inference entrypoints, including dry runs. Model Factory uses model-factory; standalone evals use eval.
Claude Code
$ npx -y skills add primeintellect-ai/prime-rl --skill start-run --agent claude-code
Codex
$ npx skills add primeintellect-ai/prime-rl --skill start-run -a codex -y
Cursor
$ npx skills add primeintellect-ai/prime-rl --skill start-run -a cursor -y
Gemini CLI
$ npx skills add primeintellect-ai/prime-rl --skill start-run -a gemini-cli -y
GitHub Copilot
$ npx skills add primeintellect-ai/prime-rl --skill start-run -a github-copilot -y
OpenCode
$ npx skills add primeintellect-ai/prime-rl --skill start-run -a opencode -y
Windsurf
$ npx skills add primeintellect-ai/prime-rl --skill start-run -a windsurf -y
name: start-run description: Launch local or SLURM prime-rl training runs with the rl, sft, and inference entrypoints, including dry runs. Model Factory uses model-factory; standalone evals use eval.
For "run this on model factory", use the [model-factory skill](../../model-factory/SKILL.md). Explicit SLURM jobs use this skill even on a Model Factory cluster.
The local entrypoints below run via `uv run <command>` and accept TOML configs via `@ path/to.toml` plus CLI overrides.
SLURM launches write generated scripts and coordination files under `<run_dir>/launcher/`, with batch logs under `launcher/logs/`. Local launches do not create this directory. Every launch writes configs and `command.txt` under `configs/attempt_<n>/`. `configs/latest` points to the current attempt. The command uses shell-safe quoting.
`output_dir` (default `outputs`) groups related runs; each run writes all its artifacts (logs, configs, checkpoints, broadcasts, rollouts) to its own run directory `<output_dir>/<run_name>`. `run.name` auto-generates as `<envs>--<model>--<short-id>` (SFT: `<dataset>--<model>--<short-id>`), so every launch gets a fresh, readable run directory; `run.dir` overrides the directory leaf when it should differ from the name. Pass `--run.name <name>` to make the run directory predictable — required to resume the run later (`--resume`, or `--resume.step N`, reuses the named run directory; without `[ckpt]` it loads but saves no new checkpoints). Launching into a run directory that already contains artifacts fails unless resuming or `--clean` is set (which wipes only that run directory).
[`pydantic-config`](https://github.com/PrimeIntellect-ai/pydantic-config) — Pydantic-based TOML + CLI loader. Highlights (see the `configs` skill for full mechanics):
`model.offload = "full"`. This mode uses the native CPU optimizer kernel, only supports AdamW and SignSGD (SignSGD is stateless and halves the host RAM footprint), disables gradient clipping, and pins each rank's CPUs to its GPU's NUMA node.
Launches inference server, orchestrator, and trainer as subprocesses.
uv run rl @ examples/basic/reverse-text/rl.toml uv run rl @ examples/basic/reverse-text/rl.toml --dry-run # write scripts, don't run
verify the package imports under `uv run` (for example `uv run python -c "import importlib.util; print(importlib.util.find_spec('r2e_gym'))"`). If a local env exists under `deps/prime-envs/environments/` or `deps/verifiers/environments/` but does not import, install the env workspace members with `uv sync --all-extras --all-packages` (all) or `uv sync --all-extras --package prime-rl --package <env>` (one) — they're auto-discovered, no `pyproject.toml` edit needed. Keep `--all-extras` for training so a targeted package sync does not prune accelerator dependencies from the environment.
Launches torchrun internally — never call torchrun directly.
uv run sft @ examples/basic/reverse-text/sft.toml uv run sft @ examples/basic/reverse-text/sft.toml --slurm uv run sft @ examples/basic/reverse-text/sft.toml --dry-run
OpenAI-compatible API plus prime-rl custom endpoints (`/update_weights`, `/load_lora_adapter`, `/init_broadcaster`). Always use this entrypoint — never `vllm serve` directly. It starts a `vllm-router` on `server.port` (default 8000, the client-facing URL) fronting the engine on `backend_port` (default 8100); admin endpoints must target the engine port directly. The default `sticky_least_loaded` policy keeps each rollout on one replica while assigning new sessions to the least-loaded replica; RL and SFT online eval automatically release completed sessions.
uv run inference --vllm.model Qwen/Qwen3-0.6B uv run inference --vllm.model Qwen/Qwen3-0.6B --vllm.enforce-eager
Smoke checks:
curl http://<host>:<port>/health curl http://<host>:<port>/v1/models curl http://localhost:8000/v1/chat/c
How the prime-rl config system works — TOML files, CLI overrides, composition, and special patterns. Use when creating configs,…
Find, start, use, and stop the local run dashboard for metrics, configs, traces, logs, and reports. Use when asked for its URL,…
Launch and monitor prime-rl evals — the `uv run eval` entrypoint, its config and CLI shorthands, run directory, resume, logs and…
How to install prime-rl and its optional dependencies. Use when setting up the project, installing extras like DeepEP for…
How prime-rl vendors, builds, and ships CUDA kernels (the `deps/prime-kernels` submodule and the `prime-kernels` wheel). Use when…
Launch and monitor prime-rl runs on Model Factory with prime train, and retrieve their traces. Use for requests such as "run this…
Hugging Face Hub CLI (`hf`) for downloading, uploading, and managing models, datasets, spaces, buckets, repos, papers, jobs, and…
Internals of the Feast codebase — how each component works, where the key abstractions live, and the data flow through the…