AGENT SKILL

checkpoints-and-model-ops

Operate verl checkpoints, model merging/export, LoRA checkpoint handling, and profiling diagnostics without changing training setup or data schema.

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

01 前言 Front Matter

name
checkpoints-and-model-ops
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Operate verl checkpoints, model merging/export, LoRA checkpoint handling, and profiling diagnostics without changing training setup or data schema.
disable-model-invocation
true

02 资源文件 4

03 SKILL.md 正文

checkpoints-and-model-ops

Use this sub-skill when a task involves an existing verl run or checkpoint tree: identifying whether a checkpoint is FSDP, Megatron, or already HuggingFace-format; planning verl.model_merger usage; diagnosing save/load contents; handling LoRA export implications; or enabling profiling/performance diagnostics after training is already configured.

Do not use this for initial installation, environment setup, training command assembly, reward/data schemas, or choosing datasets. Route those to the root skill or the training/data sub-skills.

Fast path

  1. Inspect the checkpoint directory without loading tensors:
    python sub-skills/checkpoints-and-model-ops/scripts/inspect_checkpoint_path.py CHECKPOINT_DIR --pretty
    
  2. If the path is a run root, choose a global_step_* directory and then the role directory, usually actor.
  3. If the role directory is FSDP, merge with python -m verl.model_merger merge --backend fsdp --local_dir ROLE_DIR --target_dir TARGET_DIR.
  4. If the role directory is Megatron, inspect checkpoint_contents_metadata.json first; merge with --backend megatron only when model shards or HF config artifacts are present as expected.
  5. If the role directory already contains a complete HuggingFace tree, prefer copying/validating that tree over re-merging large shards.

References

Bundled script

  • Safe checkpoint path inspector: directory-only argparse helper that detects likely run roots, step roots, FSDP role directories, Megatron role directories, HuggingFace exports, and next-action suggestions. It does not import verl, torch, or load checkpoint tensors.

Native verification anchors

Relevant upstream CPU or focused tests for future maintainers include checkpoint-engine global-step propagation, checkpoint cleanup retention, Megatron checkpoint manager behavior, and FSDP LoRA merge semantics. Treat GPU-heavy LoRA/FSDP tests as native candidates only when the requested environment has the needed accelerators.

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