installation

โดย huggingface

วิธีติดตั้ง prime-rl และ dependencies เพิ่มเติมที่เป็นทางเลือก ใช้เมื่อตั้งค่าโปรเจกต์ ติดตั้งส่วนเสริมอย่าง deep-gemm สำหรับโมเดล FP8 หรือแก้ไขปัญหา…

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)

Skills เพิ่มเติมจาก huggingface

cpu-kernels
huggingface
ให้คำแนะนำในการเขียน ปรับแต่งประสิทธิภาพ และวัดประสิทธิภาพของ CPU kernels ในภาษา C++ ด้วย SIMD intrinsics (AVX2/AVX512) สำหรับระบบนิเวศของ Hugging Face kernels รวมถึง…
official
generate-openenv-env
huggingface
สร้างสภาพแวดล้อม OpenEnv จากกรณีการใช้งานที่เป็นรูปธรรม (เช่น "สร้างสภาพแวดล้อมสำหรับ library textarena") ใช้เมื่อถูกขอให้ออกแบบหรือนำไปใช้งานใหม่…
official
hf-mcp
huggingface
ใช้ Hugging Face Hub ผ่านเครื่องมือเซิร์ฟเวอร์ MCP ค้นหาโมเดล ชุดข้อมูล Spaces เอกสารวิจัย รับรายละเอียด repo ดึงเอกสารประกอบ เรียกใช้งาน compute และใช้ Gradio…
official
trl-training
huggingface
ฝึกและปรับแต่งโมเดลภาษาทรานส์ฟอร์มเมอร์โดยใช้ TRL (Transformers Reinforcement Learning) รองรับการฝึก SFT, DPO, GRPO, KTO, RLOO และ Reward Model…
official
deploy-hf
huggingface
ปรับใช้สภาพแวดล้อม OpenEnv ไปยัง Hugging Face Spaces ใช้เมื่อถูกขอให้ปรับใช้, ส่งไปยัง Hugging Face, หรืออัปเดตสเปซ
official
hf-space-recovery
huggingface
Diagnose and recover failing or stuck Hugging Face Space deployments for OpenEnv environments. Use when deploying envs from `envs/` to the Hub (`openenv`…
official
pre-submit-pr
huggingface
ตรวจสอบการเปลี่ยนแปลงก่อนส่ง pull request โดยรันการตรวจสอบที่ครอบคลุม เช่น lint, การทดสอบ, การตรวจสอบความสอดคล้อง และการวิเคราะห์ RFC ใช้ก่อนสร้าง…
official
example-skill
huggingface
สกิลฟิกซ์เจอร์ตัวอย่างสำหรับการทดสอบสโม้กของแอคชัน
official