installation
द्वारा huggingface
prime-rl और इसके वैकल्पिक निर्भरताओं को कैसे स्थापित करें। प्रोजेक्ट सेट करते समय, FP8 मॉडल के लिए deep-gemm जैसी अतिरिक्त सुविधाएँ स्थापित करते समय, या समस्या निवारण करते समय उपयोग करें…
npx skills add https://github.com/huggingface/prime-rl --skill installationInstallation
Basic install
uv sync
This installs all core dependencies defined in pyproject.toml.
All extras at once
The recommended way to install for most users:
uv sync --all-extras
This installs all optional extras (flash-attn, flash-attn-cute, etc.) in one go.
FP8 inference with deep-gemm
For certain models like GLM-5-FP8, you need deep-gemm. Install it via the fp8-inference dependency group:
uv sync --group fp8-inference
This installs the pre-built deep-gemm wheel. No CUDA build step is needed.
Dev dependencies
uv sync --group dev
Installs pytest, ruff, pre-commit, and other development tools.
Key files
pyproject.toml— all dependencies, extras, and dependency groupsuv.lock— pinned lockfile (update withuv sync --all-extras)