installation

作成者: huggingface

prime-rlとそのオプション依存関係のインストール方法。プロジェクトのセットアップ時、FP8モデル用のdeep-gemmのような拡張機能のインストール時、またはトラブルシューティング時に使用します…

npx skills add https://github.com/huggingface/prime-rl --skill installation

Installation

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 groups
  • uv.lock — pinned lockfile (update with uv sync --all-extras)

huggingfaceのその他のスキル

sync-models
huggingface
chat-uiのモデル設定をHuggingFaceルーターと同期させる — 新しいモデルの説明を追加し、推論対応モデルにフラグを立て、32B以上のモデルでアーティファクトを有効化する…
custom-blocks
huggingface
Use when the user has written (or wants to write) a `ModularPipelineBlocks` subclass in a local Python file and needs to package it into a Hub-uploadable…
self-review
huggingface
Use before opening a PR, or whenever asked to self-review a diffusers contribution. Applies the same rubric as the `@claude` CI (checks the diff against…
hf-cloud-sagemaker-production-defaults
huggingface
SageMakerエンドポイント(リアルタイムまたは非同期)を、オートスケーリング、CloudWatchアラーム、タグ付けをデフォルトで有効にして作成します。作成しようとする際には、このスキルを使用してください…
hf-cloud-serving-image-selection
huggingface
SageMakerモデルデプロイに適したサービングコンテナを選択し、その現在のイメージURIを検索します。モデルをデプロイしようとする際には、このスキルを使用してください。
Hugging Face Cli
huggingface
Execute Hugging Face Hub operations using the `hf` CLI. Use when the user needs to download models/datasets/spaces, upload files to Hub repositories, create repos, manage local cache, or run compute jobs on HF infrastructure. Covers authentication, file transfers, repository creation, cache operations, and cloud compute.
Hugging Face Datasets
huggingface
Hugging Face Hub上でデータセットを作成・管理します。リポジトリの初期化、設定やシステムプロンプトの定義、行のストリーミング更新、SQLベースのデータセットクエリや変換をサポートします。包括的なデータセットワークフローのためにHF MCPサーバーと連携して動作するよう設計されています。
Hugging Face Evaluation
huggingface
Hugging Faceのモデルカードに評価結果を追加・管理します。READMEコンテンツからの評価テーブル抽出、Artificial Analysis APIからのスコアインポート、vLLM/lightevalを使用したカスタムモデル評価の実行をサポートします。model-indexメタデータ形式に対応しています。