What problem does it solve? RLHF training of large models (7B-70B+) requires coordinating actor, critic, reward, and reference models across many GPUs, which is slow and memory-intensive with naive setups. This Skill provides distributed RLHF training workflows built on Ray, vLLM, and DeepSpeed ZeRO-3 with GPU sharing to reduce idle time and hardware requirements. ## Core Features & Use Cases - Multi-Algorithm RL Training: Run PPO, GRPO, RLOO, REINFORCE++, and DPO from a single framework by switching the advantage estimator flag. - Hybrid Engine GPU Sharing: Colocate all models on shared GPUs with vLLM and DeepSpeed sleep modes, cutting GPU needs by roughly 25% for 70B-scale training. - Custom Rewards and Agent RLHF: Plug in custom reward functions for code or math tasks, or run multi-step agent training with environment feedback loops. - Use Case: Fine-tune a Llama-3-8B model with GRPO on a math dataset using a custom answer-checking reward function across an 8-GPU Ray cluster, with checkpointing and W&B monitoring. ## Quick Start Set up a Ray cluster and launch PPO training on my 8-GPU node using the Llama-3-8b SFT model and a reward model, with vLLM acceleration and model colocation enabled.