data-and-rewards
Prepare EasyR1 dataset rows, prompt templates, and AutoRewardManager-compatible reward functions.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- data-and-rewards
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Prepare EasyR1 dataset rows, prompt templates, and AutoRewardManager-compatible reward functions.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/android-gui-cookbook.md7.3 KB
- 参考文档references/data-reward-formats.md11.4 KB
- 参考文档references/troubleshooting.md8.5 KB
- 脚本scripts/easyr1_reward_smoke.py20.7 KB
03 SKILL.md 正文
data-and-rewards
Use this sub-skill when a task is about EasyR1 input data, multimodal prompt formatting, or rule-based reward functions. It is a routing entry point; load the linked references for the concrete contracts and validation steps.
Use this for
- Preparing text, image-text, multi-image, text-image mixed, or video dataset rows for EasyR1.
- Choosing and adapting Jinja prompt templates for math, R1-V, DAPO, and Android GUI-style tasks.
- Writing reward functions that EasyR1's
AutoRewardManagercan load throughworker.reward.reward_function. - Checking batch versus sequential reward functions and the required
overallscore key. - Planning Android GUI number-game data/reward work without assuming a runnable device, game service, or VLM endpoint.
Route elsewhere
- Training launch overrides, Ray/FSDP/vLLM sizing, KL/loss algorithm selection, and full job commands belong to the sibling
training-workflowssub-skill. - Low-level
DataProtoconstruction, tensor/non-tensor batch debugging, and padding APIs belong to the siblingcore-apissub-skill. - Checkpoint merging and Hugging Face export belong to the sibling
checkpoint-exportsub-skill.
Files to load
- Data and reward formats: concrete dataset columns, prompt template patterns, reward signatures, score keys, and validation commands.
- Android GUI cookbook: reference-only prerequisites, data shape, prompt, and reward design for the number-game workflow.
- Troubleshooting: common failures for datasets, templates, reward imports, score dictionaries, mixed media rows, remote datasets, and backend limits.
- Reward smoke script: deterministic local checks for built-in reward contracts, mixed row guards, and optional custom
module.py:functionvalidation.
Fast path
- Identify the modality: text-only, image-text, multi-image, text-image mixed, or video.
- Normalize rows to include the configured prompt and answer columns; use media lists only when the prompt contains the matching placeholder.
- Select or write a Jinja prompt template that renders a single
contentvariable and leaves chat-template wrapping to the tokenizer or processor. - Write a reward function with explicit
REWARD_TYPE = "batch"orREWARD_TYPE = "sequential"; every returned score dictionary must contain numericoverall. - Run the bundled smoke script before launching training.
Full EasyR1 training is a CUDA workflow that also needs the full flash-attn/vLLM/Ray runtime. CPU/API smoke checks validate data and reward contracts only; they do not prove that a full training job will run.
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).