training-workflows
Construct, audit, and adapt VLM-R1 GRPO training launches for QwenVL, InternVL, LoRA, freeze-vision, DeepSpeed, and multi-node runs.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- training-workflows
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Construct, audit, and adapt VLM-R1 GRPO training launches for QwenVL, InternVL, LoRA, freeze-vision, DeepSpeed, and multi-node runs.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/configuration-reference.md9.5 KB
- 参考文档references/grpo-training-workflows.md8.0 KB
- 参考文档references/troubleshooting.md8.6 KB
- 脚本scripts/launch_grpo_jsonl.sh16.2 KB
- 脚本scripts/render_multinode_torchrun.py10.7 KB
03 SKILL.md 正文
VLM-R1 training workflows
Use this sub-skill when a user needs to build, review, or modify a VLM-R1 GRPO training launch. It covers command construction, trainer/config flags, distributed launch choices, and training-specific failure diagnosis.
Route here for
- JSONL-driven GRPO launches with
grpo_jsonl.pyfor REC, GUI or other task types. - Qwen2-VL, Qwen2.5-VL, and InternVL command variants.
- Full fine-tuning, LoRA,
freeze_vision_modules, and gradient checkpointing choices. - DeepSpeed ZeRO-2, ZeRO-3, and ZeRO-3-offload command wiring.
torchrunsingle-node and multi-node command construction.- Training-specific CUDA, FlashAttention, DeepSpeed, W&B, data-path, and rendezvous troubleshooting.
Route elsewhere
- JSONL schema details, answer/reward formats, bbox scoring, and reward-method selection:
../data-and-rewards/SKILL.md. - VLM module internals, adding a new model family, and Qwen/InternVL processor behavior:
../model-modules/SKILL.md. - REC/OVD evaluation or scoring saved model outputs:
../evaluation/SKILL.md. - Huawei Ascend inference or serving:
../ascend-inference/SKILL.md. - LLaMA-Factory SFT: treat as an external alternative, not a VLM-R1 GRPO launch path.
Operating workflow
- Identify the task family, model family, GPU topology, DeepSpeed mode, and logging policy.
- Validate that
data_file_paths,image_folders, and optionalreward_methodlists have matching colon-separated lengths. - Pick a baseline recipe from
references/grpo-training-workflows.mdand adapt only the required knobs. - Use
scripts/launch_grpo_jsonl.shto render or execute a checked single-node command. Default to dry-run preview before a long training job. - For multi-node runs, use
scripts/render_multinode_torchrun.pyto render one command per node and validate the host map before launch. - Check
references/configuration-reference.mdfor flag semantics and trainer constraints, especially global-batch divisibility bynum_generations. - If the launch fails before useful training starts, diagnose with
references/troubleshooting.mdbefore changing model code or data.
Bundled files
references/grpo-training-workflows.md- recipes and adaptation patterns.references/configuration-reference.md- distilled CLI/trainer/DeepSpeed/torchrun flag reference.references/troubleshooting.md- training-specific failure triage.scripts/launch_grpo_jsonl.sh- safe parameterized GRPO command renderer/launcher.scripts/render_multinode_torchrun.py- validated multi-node command renderer.
Safety defaults
- Prefer command rendering and static validation before launching full training.
- Do not assume datasets, checkpoints, W&B credentials, or multi-node rendezvous are present.
- Do not claim full native training verification from script syntax checks alone.
- Keep user-provided paths out of reusable notes unless they are rewritten as placeholders or parameters.
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).