configs
How the prime-rl config system works — TOML files, CLI overrides, composition, and special patterns. Use when creating configs,…
Launch and monitor prime-rl runs on Model Factory with prime train, and retrieve their traces. Use for requests such as "run this on model factory", including custom code revisions, private datasets, credentials, and team setup. Explicit local or SLURM jobs use start-run.
$ npx -y skills add primeintellect-ai/prime-rl --skill model-factory --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/model-factoryContext preview
The summary Claude sees to decide when to auto-load this skill.
Launch and monitor prime-rl runs on Model Factory with prime train, and retrieve their traces. Use for requests such as "run this on model factory", including custom code revisions, private datasets, credentials, and team setup. Explicit local or SLURM jobs use start-run.
name: model-factory description: Launch and monitor prime-rl runs on Model Factory with prime train, and retrieve their traces. Use for requests such as "run this on model factory", including custom code revisions, private datasets, credentials, and team setup. Explicit local or SLURM jobs use start-run.
Use `prime train run CONFIG.toml` for managed training. `prime train CONFIG.toml` is the same command. The platform provisions and launches the components. Pass a single TOML filename directly; `@`, local `uv run rl` / `uv run sft`, and arbitrary dotted training flags belong to the local entrypoints. Put training overrides in the TOML. An explicit request to submit a SLURM job on a Model Factory cluster still uses the [start-run skill](../training/start-run/SKILL.md).
All local paths below are relative to the selected prime-rl checkout. Discover the user's checkout, credentials, team, and available CLI; do not assume a home directory, secret-file location, organization, GPU type, or previous run.
command -v prime prime --version prime train run --help
Install a missing CLI with `uv tool install prime`; update an existing tool with `uv tool upgrade prime` when a required feature needs it. Check which executable the shell resolves: a project environment can shadow the tool installation.
Authenticate with `prime login`, an existing exported `PRIME_API_KEY`, or the secure prompt from `prime config set-api-key`. For automation, load the key from the user's chosen secret store into the process environment. Do not put its value in command arguments, TOML, Git, or chat. A file on disk is not automatically exported. The [CLI config implementation](https://github.com/PrimeIntellect-ai/prime/blob/main/packages/prime/src/prime_cli/core/config.py) gives `PRIME_API_KEY` and nonempty `PRIME_TEAM_ID` precedence over saved settings.
For an API-key workflow, after loading the key securely:
: "${PRIME_API_KEY:?Load a Prime API key for the launching account}"
export PRIME_API_KEYInspect the effective account configuration and available teams:
prime config view --plain prime teams list --plain -o json
`config view` masks the API key. Reuse the account/team the user selected; if the intended owner is ambiguous, resolve it before launching billable work. Set the chosen team ID from that list with `prime config set-team-id "$TEAM_ID"`, or use `export PRIME_TEAM_ID="$TEAM_ID"` for the current process. An exported team ID overrides `set-team-id`. To intentionally use a personal account, unset `PRIME_TEAM_ID` and use `prime config remove-team-id`. Team choice also scopes volumes and run access. See [CLI configuration](https://docs.primeintellect.ai/cli-reference/config-cli) and [teams](https://docs.primeintellect.ai/cli-reference/teams).
The launching credential and the remote run credential have different roles: the platform supplies a run-scoped `PRIME_API_KEY` to the Model Factory job. Do not include the launching key in `-e` or `--env-file`. Read [data and secrets](references/data-and-secrets.md) before forwarding credentials or using private Hugging Face data.
For custom training code, branches, commits, dependencies, or environments, read [custom code](references/custom-code.md) first. Select the runtime revision before adapting or validating its config.
Start from an existing example in that revision, copying it to a task-specific TOML if edits are needed. Do not use personal debug configs or prior experiment artifacts as the default recipe.
| Task | Starting point | | --- | --- | | Small RL run | [examples/basic/reverse-text/rl.toml](../../examples/basic/reverse-text/rl.toml) | | SFT | [examples/basic/reverse-text/sft.toml](../../examples/basic/reverse-text/sft.toml) | | Larger model or environment | Select a matching checked-in TOML under [examples/advanced](../../examples/advanced) |
prime train models --plain -o json prime train gpus --plain -o json
Use the exact model ID and GPU type available for the selected account/team. The [Model Factory RL docs](https://docs.primeintellect.ai/hosted-training/hosted-rl) describe uncached HF downloads on on-demand capacity, while reserved clusters require cached weights or weights on a volume. Check the actual dispatch path; an `HF_TOKEN` grants repository access, not cluster capacity or model-cache access.
Adapt the example to the requested experiment:
Put prompts and other required assets in the launched source or a supported volume. A path in TOML does not upload the file.
Check TP/DP/EP/CP and context length against the model, hardware, and schema. Preserve `optimization_dtype` and `reduce_dtype` unless explicitly requested.
consult the [configs skill](../configs/SKILL.md) for config structure. The selected revision's schema takes precedence over snippets from another build.
`orchestrator.eval.source`. Dataset arguments belong to the selected taskset's config under `env.taskset`; inspect its supported fields before setting them.
example also enables online eval; check CLI and cluster support before using it. See [data and secrets](references/data-and-secrets.md) for both paths.
its size for the dataset, model, and retained checkpoints; see [volume sizing](https://docs.primeintellect.ai/hosted-training/volume-capacity).
If `prime train validate --help` is available, use that com
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…
How to prepare and publish GitHub releases for prime-rl. Use when drafting release notes, tagging versions, or publishing…