Skip to content
Machine Learning
Skill

/install

How to install prime-rl and its optional dependencies. Use when setting up the project, installing extras like DeepEP for multi-node expert parallelism, or troubleshooting dependency issues.

From plugin
prime-rl
2.3k10 skills

Claude Code

$ npx -y skills add primeintellect-ai/prime-rl --skill install --agent claude-code

SKILL.md

install.SKILL.md
name: install
description: How to install prime-rl and its optional dependencies. Use when setting up the project, installing extras like DeepEP for multi-node expert parallelism, or troubleshooting dependency issues.

Install

Clone + submodules

prime-rl is a monorepo with submodules. Use the install script when bootstrapping a fresh machine:

bash scripts/install.sh   # clones, inits submodules, installs uv, runs `uv sync --all-extras`

For an existing clone, init submodules explicitly:

git submodule update --init --recursive

Sync

uv sync                                    # slim
uv sync --group dev                        # + pytest, ruff, pre-commit
uv sync --all-extras                       # + extras (flash-attn, flash-attn-cute, …)
uv sync --all-extras --all-packages        # + all env packages (needed to train on them)
uv sync --package prime-rl --package gsm8k  # core + just one env

`uv sync --group dev` installs the `pre-commit` package but leaves the git hook inert until it's wired up — run `uv run pre-commit install` once per clone (see `README.md`'s Development section).

Environment packages are uv **workspace members**. Those under `deps/prime-envs/environments/*/*` are auto-discovered — adding a new env there needs no `pyproject.toml` change. verifiers' example envs are enumerated explicitly in `[tool.uv.workspace].members` (only the ones prime-rl trains or tests on) — to use another, add its path to the list. Members are opt-in: a plain `uv sync` / `--all-extras` does not install them (and would remove them if already present — re-run with `--all-packages`, or `--inexact` to keep them). Install all with `--all-packages`, or a subset with repeated `--package <env>` (include `--package prime-rl` to keep the core). If two envs pin conflicting transitive versions (all members share one lock), add the loser to `[tool.uv.workspace].exclude`.

When bumping a package past the workspace-wide `exclude-newer = "7 days"` window, add it (and any newly-required transitives) to `[tool.uv.exclude-newer-package]` before refreshing `uv.lock`.

Optional extras

CUDA kernels

Prebuilt wheels, pinned at a release in `[tool.uv.sources]`:

uv sync --extra kernels

No plain sync compiles CUDA — building from source stays an explicit, manual step (needs `nvcc` whose CUDA major matches torch's and the `deps/prime-kernels` submodule initialized), and overrides the wheel until the next sync:

git submodule update --init deps/prime-kernels
uv pip install --no-build-isolation -e deps/prime-kernels

See the `kernels` skill.

NemotronH (Mamba SSD kernels)

uv sync --extra gpu

Native NemotronH uses Mamba2 Triton SSD kernels and FLA's packed causal convolution. The pinned `mamba-ssm` source installs without `nvcc`; no separate `causal-conv1d` installation is needed. `uv sync --all-extras` includes these dependencies.

Trainer DeepEP backend

The `disagg` extra installs the prebuilt DeepEP wheel pinned in `[tool.uv.sources]`:

uv sync --extra disagg

The prime-kernels repository owns source builds for DeepEP and TorchAO (DeepGEMM ships with vLLM as `vllm.third_party.deep_gemm`). Use its scripts when a local rebuild is required:

git submodule update --init deps/prime-kernels
bash deps/prime-kernels/scripts/install_ep_kernels.sh --wheel-dir /tmp/prime-kernels-wheels
uv pip install --reinstall --no-deps /tmp/prime-kernels-wheels/deep_ep-*.whl

The build needs a CUDA toolkit whose version matches torch. Set `TORCH_CUDA_ARCH_LIST` when the build host has no GPU or when the wheel must support more than the local GPU architecture.

Verify: `uv run python -c 'import deep_ep; print(deep_ep.__file__)'`.

llm-d router backend

Multi-node / disaggregated deployments can route through the upstream llm-d Endpoint Picker instead of `vllm-router` (set `[inference.router] type = "llm-d"`). It needs three native binaries — install once:

bash scripts/install_llmd.sh   # builds epp + pd-sidecar from a pinned llm-d-router commit (vendored Go), fetches envoy

Binaries land in `third_party/llmd/bin/{epp,envoy,pd-sidecar}` (a shared path, so SLURM nodes see them). `epp` is pinned to the commit that includes the `vllmhttp-parser` (PR #1248) so prime-rl's renderer/TITO `/inference/v1/generate` path routes correctly. Override the pin with `LLMD_ROUTER_REF=<sha>`. The EPP + Envoy + endpoints configs are rendered from `src/prime_rl/templates/llmd/*.yaml.j2` (included into the SLURM script); only the per-node IPv4 addresses are filled in inline at launch time.

Key files

  • `pyproject.toml` — dependencies, extras, dependency groups
  • `uv.lock` — pinned lockfile (refresh with `uv sync --all-extras`)
  • `scripts/install.sh` — bootstrap installer
  • `deps/prime-kernels/scripts/` — native wheel build scripts
Read more
@primeintellect-ai
Ships withprime-rl

Agentic RL Training at Scale

Stars on GitHub

Momentum

stars in total
2.3k
Star history of primeintellect-ai/prime-rl on GitHub, a chart by star-history.com

Other skills on prime-rl.

configs

configs

How the prime-rl config system works — TOML files, CLI overrides, composition, and special patterns. Use when creating configs,…

dashboard

dashboard

Find, start, use, and stop the local run dashboard for metrics, configs, traces, logs, and reports. Use when asked for its URL,…

eval

eval

Launch and monitor prime-rl evals — the `uv run eval` entrypoint, its config and CLI shorthands, run directory, resume, logs and…

kernels

kernels

How prime-rl vendors, builds, and ships CUDA kernels (the `deps/prime-kernels` submodule and the `prime-kernels` wheel). Use when…

model-factory

model-factory

Launch and monitor prime-rl runs on Model Factory with prime train, and retrieve their traces. Use for requests such as "run this…

release

release

How to prepare and publish GitHub releases for prime-rl. Use when drafting release notes, tagging versions, or publishing…

More skills from other plugins.

analyze-ci

analyze-ci

Analyze failed GitHub Action jobs. Takes one or more GitHub URLs (job, workflow-run, or PR) and summarizes each failure with root…

mlflow7d29k
@mlflow@mlflowInstall Skill
hf-cli

hf-cli

Hugging Face Hub CLI (`hf`) for downloading, uploading, and managing models, datasets, spaces, buckets, repos, papers, jobs, and…

skills3w11k
@huggingface@huggingfaceInstall Skill
feast-architecture

feast-architecture

Internals of the Feast codebase — how each component works, where the key abstractions live, and the data flow through the…

feast11d7.4k
@feast-dev@feast-devInstall Skill
add-ecosystem

add-ecosystem

Add a new ecosystem and base model to basemodel.constants.ts. Use when onboarding a new model family from providers like Baidu,…

civitai7d7.3k
@civitai@civitaiInstall Skill

Questions about install.

Which coding agents can use install?
install installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.