talira

OpenRLHF

Scalable RLHF and agentic RL framework on Ray and vLLM

open sourceApache-2.0free

OpenRLHF is an open source framework for training language models with reinforcement learning from human feedback, built on Ray for distribution, vLLM for fast sample generation and DeepSpeed for training. It covers the whole pipeline (supervised fine-tuning, reward models, DPO and RL with PPO, REINFORCE++, GRPO and RLOO) and runs every RL job as an agent, single-turn by default or multi-turn with environment feedback and custom reward or agent functions. Recent versions add vision-language models and an asynchronous pipeline.

Problems it solves

  • train a reasoning model with GRPO across many GPUs
  • run RLHF on a 70B model without writing my own distributed code
  • fine-tune an LLM agent with rewards from a multi-turn environment

Features

  • PPO, REINFORCE++, GRPO and RLOO
  • SFT, reward model and DPO training
  • Ray + vLLM + DeepSpeed distributed training
  • single-turn and multi-turn agent RL with custom rewards
  • vision-language model RLHF
  • LoRA

Alternatives

The same job

These do what OpenRLHF does.

  1. TRL A comprehensive library to post-train foundation models
  2. verl Flexible, efficient reinforcement learning post-training for LLMs
  3. ms-swift Fine-tune, align, evaluate, quantize and deploy 600+ LLMs and 400+ multimodal models
  4. Axolotl A free and open source framework for fine-tuning and post-training large language models
  5. Unsloth Run and train AI models on your own local hardware via an open-source UI
  6. Colossal-AI PyTorch library for distributed training, fine-tuning and inference of large AI models

Compare OpenRLHF with the top 3