Rl and rewards

From VectorSpaceLab/AREX-Skill · View interactive version

Rl and rewards is an AI agent skill from the GitHub repository VectorSpaceLab/AREX-Skill. Guides agents configuring Axolotl GRPO, EBFT, custom reward functions, vLLM training servers, NeMo Gym, Hatchery, and async online RL checks.

How to use this skill

Skill file

RL and Rewards

Use this sub-skill when the task involves Axolotl online RL or reward-driven training: GRPO, GDPO-style reward aggregation, custom reward functions, axolotl vllm-serve for training, EBFT feature-matching rewards, NeMo Gym environment rewards, Hatchery-style remote RL flows, or async rollout debugging.

Route By Task

Quick Workflow

  1. Classify the method first: rl: grpo for programmatic verifiers or environment rewards, rl: ebft for feature matching against ground-truth completions, and route DPO/KTO/ORPO/SimPO preference data to preference-tuning.
  2. For GRPO, define the YAML, reward module, and vLLM plan together; trl.reward_funcs, trl.num_generations, trl.max_completion_length, trl.use_vllm, and vllm.host/vllm.port must agree.
  3. For EBFT, choose ebft.mode before copying settings: structured mode uses prompt plus ground_truth and usually vLLM, while strided mode uses tokenized document anchors and does not require vLLM.
  4. Run local deterministic reward checks before axolotl train; then use axolotl preprocess config.yaml --debug only for data/tokenization visibility and axolotl train config.yaml only after the user accepts runtime cost.
  5. For server-backed RL, start or verify the generation/environment services before training; axolotl vllm-serve config.yaml must serve the same base model as the training config.

Boundaries

Evidence Notes

This guidance is distilled from Axolotl GRPO, EBFT, vLLM serving, RLHF, schema, integration, example, and unit-test evidence. It does not claim live training, vLLM, GPU, model-loading, or environment-service verification.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.