训练与微调Apache-2.0Python

OpenRLHF

Easy, scalable RLHF framework built on Ray, vLLM and DeepSpeed.

Star 数
10.2K
Fork 数
1.1K
未关闭 Issue
449
最近提交
2026-11-27

数据来自 GitHub API · 更新于 2026-11-30

OpenRLHF 是什么?

OpenRLHF provides high-performance RLHF and reward-model training with PPO, GRPO, REINFORCE++ and DPO, distributing actor, critic, reward and reference models across GPUs with Ray and accelerating generation with vLLM.

主要功能

  • PPO, GRPO, REINFORCE++ and DPO
  • Ray-based distributed scheduling
  • vLLM-accelerated rollouts
  • Hugging Face model compatibility

系统要求

平台
Linux · Docker
显卡
NVIDIA multi-GPU

如何安装 OpenRLHF

根据项目 README 整理。开源项目更新很快,请以 GitHub 页面上的最新说明为准。

pip

  1. 1
    Install with vLLM support.
    pip install openrlhf[vllm]

优势

  • Simpler than many RL stacks
  • Scales to 70B+ models

不足

  • Linux and multi-GPU only

OpenRLHF 替代品对比

软件Star 数许可证平台显存
OpenRLHF

Easy, scalable RLHF framework built on Ray, vLLM and DeepSpeed.

10.2KApache-2.0—
verl

ByteDance’s reinforcement learning library for LLM post-training.

24.4KApache-2.0—
TRL

Hugging Face’s library for post-training LLMs: SFT, DPO, GRPO.

19.9KApache-2.0—
DeepSpeed

Microsoft’s library for large-scale distributed training and inference.

43.4KApache-2.0—
Kohya’s GUI

GUI for training LoRA, DreamBooth and fine-tunes for SD, SDXL and FLUX.

12.7KApache-2.08 GB+ for SD1.5 LoRA; 12–24 GB for SDXL/FLUX
OneTrainer

One-stop trainer for diffusion models with a desktop UI.

3.3KAGPL-3.08 GB+

常见问题

OpenRLHF 免费吗?

是的——OpenRLHF 是开源软件,采用 Apache-2.0 许可证。商用前请确认软件及模型权重的许可条款。

OpenRLHF 支持 Windows、Mac 和 Linux 吗?

OpenRLHF 支持:Linux, Docker。

运行 OpenRLHF 需要什么配置?

NVIDIA multi-GPU

如何安装 OpenRLHF?

1. Install with vLLM support.

OpenRLHF 有哪些好的替代品?

常见替代品包括 verl, TRL, DeepSpeed, Kohya’s GUI,详见本页对比表。