技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
openrlhf【数据与研究】Use OpenRLHF for Ray/vLLM/DeepSpeed RLHF workflows, including dataset preparation, SFT/RM/DPO training, PPO-family RL and agent training, runtime operations, reward serving, LoRA merging, and troubleshooting.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this repo skill when a user asks about OpenRLHF, a Ray + vLLM + DeepSpeed RLHF framework for supervised fine-tuning, reward modeling, preference optimization, PPO-family reinforcement learning, custom rewards, multi-turn agents, and distributed training operations.
OpenRLHF workflows are usually GPU/distributed and can trigger model downloads, Ray clusters, long training runs, or service processes. Prefer planning, validating, and generating commands first; run expensive operations only after confirming the user wants execution and the environment is ready.
sub-skills/data-preparation/ for SFT records, reward-model chosen/rejected pairs, DPO preferences, PPO prompt datasets, chat templates, mixed dataset probabilities, VLM image placeholders, and the bundled dataset validator.sub-skills/supervised-preference-training/ for train_sft, train_rm, train_dpo, LoRA/packing/DeepSpeed/checkpoint/logging flags, and safe command skeleton generation.sub-skills/rl-agent-training/ for train_ppo_ray, hybrid engine placement, async rollout, single-turn reward functions, multi-turn agents, VLM agents, and OpenAI-compatible agent executors.sub-skills/operations-and-utilities/ for dependency/runtime checks, CUDA/flash-attn/Ray/NCCL issues, reward-model serving, LoRA adapter merging, DeepSpeed checkpoint conversion, and Docker/system caveats.references/troubleshooting.md and then the workflow-specific troubleshooting file in the owning sub-skill.openrlhf.openrlhf.0.10.4.A top-level import openrlhf only proves package metadata/import visibility. It does not prove CUDA, flash-attn, DeepSpeed, Ray, vLLM, model download, or distributed training readiness. Use the operations sub-skill for runtime checks.
data-preparation, validate keys and chat-template assumptions, then use supervised-preference-training to generate a train_sft command.data-preparation for chosen/rejected pairs, use supervised-preference-training for train_rm, and use operations-and-utilities if the reward model will be served over HTTP.supervised-preference-training; verify prompt/chosen/rejected fields through data-preparation first.rl-agent-training; use operations-and-utilities for Ray cluster, NCCL, CUDA, and vLLM runtime readiness.rl-agent-training and generate a bundled template before adapting user logic.operations-and-utilities; check optional dependency and GPU/backend status before changing training flags.references/repo-provenance.md: source commit, package version, evidence paths, dirty-state notes, and refresh baseline.references/troubleshooting.md: cross-cutting install/import/backend/routing issues shared by all sub-skills.This skill is a self-contained guide distilled from repository source, docs, examples, scripts, and tests. Do not depend on the original checkout at runtime. If a user needs a reusable helper, use the bundled scripts under this skill or adapt their contents into the user’s project.
Do not run original OpenRLHF training examples or system scripts as smoke tests by default. Treat them as evidence for command shape unless the user explicitly asks to run them and the environment, GPUs, data, models, credentials, and time budget are suitable.