AGENT SKILL

verl

Use verl for LLM post-training workflows: setup, data and rewards, PPO/GRPO/SFT configs, rollout tools, checkpoints, profiling, and repository maintenance.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
verl
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Use verl for LLM post-training workflows: setup, data and rewards, PPO/GRPO/SFT configs, rollout tools, checkpoints, profiling, and repository maintenance.
disable-model-invocation
true

02 资源文件 4

03 SKILL.md 正文

verl

Use this repo skill when a user asks how to install, configure, run, debug, or maintain verl, the Volcano Engine Reinforcement Learning library for LLM post-training.

Start Here

  • Read references/repo-provenance.md before relying on this skill for a different checkout or after package metadata, config files, examples, or docs change.
  • Read references/troubleshooting.md for cross-cutting failures that span setup, Hydra configs, data schema, rollout backends, checkpoint operations, and repo maintenance.
  • Run scripts/check_skill_integrity.py when editing or importing this skill to check frontmatter, links, private-path leaks, and generated cache files.

Route By User Task

  • Install or verify an environment: use sub-skills/setup-and-backends/ for base install choices, Docker-vs-custom setup, Python/CUDA requirements, optional extras, vLLM/SGLang/Megatron/TensorRT-LLM/NPU/ROCm caveats, and safe import/backend checks.
  • Prepare or validate data and rewards: use sub-skills/data-and-rewards/ for parquet row schemas, chat prompt fields, reward_model.ground_truth, custom reward modules, and the bundled parquet validator.
  • Build training commands and Hydra overrides: use sub-skills/training-and-configs/ for PPO, GRPO, SFT, on-policy distillation, backend strategy switches, batch/micro-batch sizing, generated config references, and the dry-run PPO command builder.
  • Configure rollout, agent loops, and tools: use sub-skills/rollout-and-tools/ for rollout engines, async generation server flows, multi-turn agent loops, @function_tool, native BaseTool, tokenization sanity checks, traces, and tool schema validation.
  • Operate checkpoints and model artifacts: use sub-skills/checkpoints-and-model-ops/ for checkpoint layout inspection, verl.model_merger, FSDP/Megatron/HuggingFace export decisions, LoRA merge implications, profiling, and performance diagnostics.
  • Maintain the repository: use sub-skills/repo-development/ for contribution policy, duplicate-work checks, AGENTS.md editing rules, generated trainer config maintenance, focused test selection, and non-executing test suggestions.

Common Decision Points

  • If the user says “training fails,” first classify the failure: installation/import (setup-and-backends), parquet/reward schema (data-and-rewards), Hydra override/resource sizing (training-and-configs), rollout backend/tooling (rollout-and-tools), or checkpoint/export (checkpoints-and-model-ops).
  • If the user asks for a command, prefer the nearest bundled command builder or validator; never require the original source checkout examples to remain available.
  • If the user asks for GPU execution, distinguish a base Python import check from real accelerator runtime validation. vLLM, SGLang, Megatron, flash-attn, TensorRT-LLM, ROCm, and NPU stacks need backend-specific environments.
  • If the user is editing the repo, apply repo-development before changing files so duplicate-work, AGENTS.md scope, generated config, and focused-test rules are not missed.

Bundled Helpers

  • sub-skills/setup-and-backends/scripts/check_verl_environment.py checks active Python package metadata, imports, optional CUDA state, and dependency consistency.
  • sub-skills/data-and-rewards/scripts/validate_verl_parquet.py validates verl parquet rows without importing verl.
  • sub-skills/training-and-configs/scripts/build_ppo_command.py prints a dry-run python -m verl.trainer.main_ppo command from common arguments.
  • sub-skills/rollout-and-tools/scripts/validate_function_tool.py preflights trusted function-tool Python files for type hints and Google-style Args: docs.
  • sub-skills/checkpoints-and-model-ops/scripts/inspect_checkpoint_path.py classifies checkpoint/run/role directories without loading tensors.
  • sub-skills/repo-development/scripts/select_verl_tests.py maps changed paths to suggested tests and pre-commit hooks without running them.

Safety Rules

  • Do not run training, dataset downloads, Docker builds, GPU/NPU jobs, checkpoint merges, or source-mutating maintenance scripts unless the user explicitly asks and the environment is appropriate.
  • Treat original repo docs, examples, scripts, and tests as evidence only. Runtime guidance in this skill is self-contained and should use bundled references/scripts.
  • Do not leak local checkout paths, private Python prefixes, cache paths, credentials, or machine-specific install commands into public skill content.
  • For native verification, prefer CPU-safe tests and help/parser checks first; record GPU/NPU/e2e examples as skipped unless the user authorizes heavy hardware runs.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351