checkpoint-export
Inspect EasyR1 actor checkpoint directories and guide Hugging Face-format checkpoint export without reopening the source repository.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- checkpoint-export
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Inspect EasyR1 actor checkpoint directories and guide Hugging Face-format checkpoint export without reopening the source repository.
- disable-model-invocation
- true
02 资源文件 3
- 参考文档references/checkpoint-export.md8.6 KB
- 参考文档references/troubleshooting.md7.9 KB
- 脚本scripts/easyr1_checkpoint_inspector.py14.9 KB
03 SKILL.md 正文
checkpoint-export
Use this sub-skill when a task involves EasyR1 saved checkpoints, actor checkpoint preflight checks, or converting actor weights into Hugging Face format for inference or upload.
Do not use this sub-skill to create checkpoints by running training; route training launch, save-frequency, and resume setup questions to the EasyR1 training workflow guidance instead.
Start here
- references/checkpoint-export.md explains the actor checkpoint layout, model-merger export workflow, LoRA merge requirements, generation config preservation, and upload caveats.
- references/troubleshooting.md maps common checkpoint/export failures to concrete fixes, including incomplete shards, unsupported DTensor layouts, missing LoRA base models, and Hugging Face network/auth issues.
- scripts/easyr1_checkpoint_inspector.py is a safe preflight inspector for a local actor checkpoint directory; it parses filenames and metadata JSON without loading model weights.
Quick workflow
-
Identify the actor directory, normally
.../global_step_<step>/actor, not the parent step directory and not thehuggingface/child. -
Run the bundled inspector before any expensive merge:
python scripts/easyr1_checkpoint_inspector.py <actor_checkpoint_dir> python scripts/easyr1_checkpoint_inspector.py --json <actor_checkpoint_dir> -
If preflight passes, use the export command shape and validation checklist in references/checkpoint-export.md.
-
If preflight fails or the merger raises, diagnose with references/troubleshooting.md before retrying.
Full EasyR1 training and end-to-end checkpoint generation require the CUDA/flash-attn/vLLM/Ray runtime; CPU/API checks and this inspector only prove checkpoint metadata and local file layout behavior.
04 同仓库更多 Skills
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.
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.
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.
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.
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.
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).