primeintellect-ai/prime-rl/install
Claude Code and agent skill by primeintellect-ai/prime-rl
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
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
npx vskill@latest install primeintellect-ai/prime-rl/installSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as primeintellect-ai/prime-rl/install.
Install
Clone + submodules
prime-rl is a monorepo with submodules. Use the install script when bootstrapping a fresh machine:
For an existing clone, init submodules explicitly:
Sync
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
GPU extras
The gpu extra is the union of two extras:
train: the trainer stack (torch, torchtitan, the model kernels). Enough forsftandpretrainwithout online evals.inference: vLLM, its precompiled FlashInfer kernels and the weight-broadcast transports. Needed byrl,inferenceand online evals.
FP8 training, MegaMoE and the cudnn_flashmla sparse-attention backend use kernels bundled in the vLLM wheel, so they need inference as well.
SLURM jobs run uv sync --all-extras --all-packages by default. Narrow it with [slurm] sync_args in the TOML config, e.g. sync_args = "--extra train".
CUDA kernels
Prebuilt wheels, pinned at a release in [tool.uv.sources]:
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:
See the kernels skill.
NemotronH (Mamba SSD kernels)
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]:
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:
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:
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 groupsuv.lock— pinned lockfile (refresh withuv sync --all-extras)scripts/install.sh— bootstrap installerdeps/prime-kernels/scripts/— native wheel build scripts
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/install/SKILL.md
Popularity
- Repository stars
- 2,250
- Repository forks
- 501
- 7-day trend score
- 37
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/primeintellect-ai/prime-rl/install)