npx skills add ...
npx skills add firecrawl/ai-research-skills --skill openrlhf-training
High-performance RLHF framework with Ray+vLLM acceleration. Use for PPO, GRPO, RLOO, DPO training of large models (7B-70B+). Built on Ray, vLLM, ZeRO-3. 2× faster than DeepSpeedChat with distributed architecture and GPU resource sharing.
npx skills add firecrawl/ai-research-skills --skill openrlhf-training
OpenRLHF is a Ray-based RLHF framework optimized for distributed training with vLLM inference acceleration.
Installation:
PPO Training (Hybrid Engine):
GRPO Training (Group Normalized Policy Optimization):
Step 1: Train reward model (DPO):
Step 2: PPO training:
Memory-efficient alternative to PPO:
Key GRPO parameters:
--advantage_estimator group_norm - Enables GRPO--use_kl_loss - KL loss from GRPO paper--kl_estimator k3 - Loss function (k2 ≈ k1)--no_advantage_std_norm - Disables std normalizationSimpler alternative without reward model:
Use OpenRLHF when:
Algorithm selection:
Use alternatives instead:
Issue: GPU OOM with large models
Disable model colocation:
Issue: DeepSpeed GPU index out of range
Set environment variable:
Issue: Training instability
Use Hybrid Engine instead of async:
Adjust KL coefficient:
Issue: Slow generation during PPO
Enable vLLM acceleration:
Hybrid Engine GPU sharing: See references/hybrid-engine.md for vLLM sleep mode, DeepSpeed sleep mode, and optimal node allocation.
Algorithm comparison: See references/algorithm-comparison.md for PPO vs GRPO vs RLOO vs REINFORCE++ benchmarks and hyperparameters.
Multi-node setup: See references/multi-node-training.md for Ray cluster configuration and fault tolerance.
Custom reward functions: See references/custom-rewards.md for reinforced fine-tuning and agent RLHF.
Performance: