dataset-curation 是什么?
Prepare, format, and validate datasets for supervised fine-tuning and preference training. Use when converting raw data into training format, applying chat templates, configuring sequence packing, generating synthetic training data, or writing a dataset card before a run.
以上为来源原文,中文用途说明尚待整理。
怎么接入你的 Agent?
- 定位完整 Skill 目录
打开本项目来源,核对
SKILL.md及其引用的脚本和资料。 - 交给你正在用的 Agent
在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。
- 确认识别,再做具体任务
让 Agent 回报安装目录和识别到的名称
dataset-curation,然后告诉 Agent 你的任务和实际输入,让它先核对触发条件。
展开并复制给 Codex 的安装指令
安装并检查 dataset-curation
请在 Codex 的当前工作环境中安装并检查 dataset-curation 这个 Skill。
项目身份:wshobson/agents / dataset-curation
来源:https://github.com/wshobson/agents/blob/91ff75307f5668916f3eb77d5ba556266c961376/plugins/llm-finetuning/skills/dataset-curation/SKILL.md
已定位的源文件:plugins/llm-finetuning/skills/dataset-curation/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Claude Code 的安装指令
安装并检查 dataset-curation
请在 Claude Code 的当前工作环境中安装并检查 dataset-curation 这个 Skill。
项目身份:wshobson/agents / dataset-curation
来源:https://github.com/wshobson/agents/blob/91ff75307f5668916f3eb77d5ba556266c961376/plugins/llm-finetuning/skills/dataset-curation/SKILL.md
已定位的源文件:plugins/llm-finetuning/skills/dataset-curation/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Cursor 的安装指令
安装并检查 dataset-curation
请在 Cursor Agent 的当前工作环境中安装并检查 dataset-curation 这个 Skill。
项目身份:wshobson/agents / dataset-curation
来源:https://github.com/wshobson/agents/blob/91ff75307f5668916f3eb77d5ba556266c961376/plugins/llm-finetuning/skills/dataset-curation/SKILL.md
已定位的源文件:plugins/llm-finetuning/skills/dataset-curation/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 当前 Agent 的安装指令
安装并检查 dataset-curation
请在 当前 Agent 的当前工作环境中安装并检查 dataset-curation 这个 Skill。
项目身份:wshobson/agents / dataset-curation
来源:https://github.com/wshobson/agents/blob/91ff75307f5668916f3eb77d5ba556266c961376/plugins/llm-finetuning/skills/dataset-curation/SKILL.md
已定位的源文件:plugins/llm-finetuning/skills/dataset-curation/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。来源原文与资料状态
- 源文件
- 已保存 SKILL.md,抓取于 2026-11-22T03:34:45.756Z
- 中文使用说明
- 尚待整理,保留英文来源内容
- 安装与任务测试
- 本站未执行安装或任务测试
- 来源复核
- 已保留来源记录;当前完整用法未逐项人工复核
展开 SKILL.md 原文、章节与历史收录资料
plugins/llm-finetuning/skills/dataset-curation/SKILL.md · 抓取时间 2026-11-22T03:34:45.756Z
以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。
抓取成功不代表已完成安装或任务测试。
Prepare, format, and validate datasets for supervised fine-tuning and preference training. Use when converting raw data into training format, applying chat templates, configuring sequence packing, generating synthetic training data, or writing a dataset card before a run.
查看源文件章节 / Source sections
- 原文:Dataset Curation
- 原文:Format Selection
- 原文:Chat Templates and Loss Masking
- 原文:Packing
- 原文:Synthetic Data Rules
- 原文:The Dataset Card
- 原文:Phase 2 Exit Checklist
- 原文:References
原文:Dataset Curation
This skill assumes `finetuning-method-selection` already routed here — the next step is preparing data, not choosing a method. What follows: format selection by target method, the template/packing mechanics behind the most common silent training failures, rules for mixing in synthetic data without collapse, and the dataset card that closes out Phase 2 before a run starts. **Input:** raw examples (demonstrations, preference judgments, or task prompts) plus a routing decision from `finetuning-method-selection`. **Output format:** a formatted, packed, validated JSONL dataset plus a completed dataset card — the Phase 2 artifact `/finetune` checks before launching training.
原文:Format Selection
| Method | Shape | Rows | |---|---|---| | SFT, single-turn | Instruct (`instruction`/`response` or `prompt`/`completion`) | ~1,000+ floor | | SFT, multi-turn | Conversation / ChatML `messages` list | ~1,000+ floor | | DPO / ORPO | Preference pair (`prompt`, `chosen`, `rejected`) | Method-dependent, see `preference-optimization` | | KTO | Unpaired (`prompt`, `completion`, `label`) | Method-dependent, see `preference-optimization` | | GRPO / RLVR | Prompt-only (`prompt` + verifier metadata) | Method-dependent, see `grpo-rlvr-training` | - **~1,000+ rows is the recommended floor for SFT**, not a target. Below it, a handful of low-quality or duplicate examples can dominate the gradient; above it, **quality over quantity** — a smaller verified, deduplicated set beats a larger noisy one. - The ChatML shape, for orientation; the other four formats plus a ShareGPT conversion note live in `references/formats-and-templates.md`: ```json {"messages": [ {"role": "user", "content": "..."}, {"role": "assistant", "content": "..."} ]} ```
原文:Chat Templates and Loss Masking
Apply the target model's chat template **before** any concatenation or packing, never after — packing raw text and templating the packed blob afterward corrupts turn boundaries, landing role markers in the wrong place relative to each example. - **Train on assistant responses only.** Mask the loss (`-100` in the labels tensor) over system/user turns and the template's own role markers — only assistant-turn content tokens contribute to loss. - **Template/tokenizer mismatches are a top silent failure mode.** A model trained against one chat template but served or evaluated with a different one degrades without erroring. Verify the same template string used in training is applied at inference and eval time. - **Keep the dataset in `messages` shape** and let the trainer template and mask it (`assistant_only_loss=True` in current TRL) — pre-rendering to a flat text field destroys the turn boundaries masking needs. Full code sketch: `references/formats-and-templates.md`. Sanity-check before training — decode only unmasked positions; expect only assistant text: ```python keep = batch["labels"][0] != -100 print(tokenizer.decode(batch["input_ids"][0][keep])) ```
原文:Packing
**Without packing, 40–70% of compute is spent on padding** — variable-length examples batched at a fixed sequence length waste the gap between each example's length and the batch's max. Packing concatenates multiple examples into one sequence up to the max length, cutting most of that waste. - **Packing changes batch semantics.** A packed sequence can contain several original examples, so "steps per epoch" and any LR schedule keyed to example count shift once packing is on — recompute schedule milestones against packed-sequence count. - **MANDATORY: decode and manually inspect 5–10 packed sequences before scaling to a full run.** Confirm example boundaries land where expected, template markers are intact per sub-example, and the loss mask is still assistant-only within each packed sequence. Not optional — packing bugs are silent (the loss curve looks normal) and only surface in eval quality, hours later: ```python for seq in packed_dataset.select(range(10)): print(tokenizer.decode(seq["input_ids"])) ```
原文:Synthetic Data Rules
- **Keep ≥25% real data as a collapse guard.** Training on a growing share of model-generated data without a real-data floor drives measurable quality collapse over successive generations — 25% real is the minimum that holds the line. **General-domain replay rows count toward this floor** — "real" means "not generated for this task from this student," not "human-authored." An all-synthetic-by-construction dataset can meet the ≥25% floor through replay alone (see `references/synthetic-data.md`'s Replay-Mix Construction recipe); state which rows count as "real" in the dataset card rather than leaving the floor structurally unmeetable. - **Magpie and rejection sampling are the workhorses.** Magpie extracts prompts from the model's own template prior; rejection sampling generates several candidates per prompt and keeps only the ones a filter passes. Both beat naive single-shot generation. - **Targeted, student-aware generation beats static generation by 1.3–2x sample efficiency** — aiming at the student's actual failure modes hits a quality bar with fewer filtered examples. - **Typical accept rates after filtering run 10–30%.** Plan volume accordingly — a 10,000-row target at 15% accept needs ~65,000+ raw generations. - Generation-method ranking, filter funnel, replay- mix construction, and distillation pattern: `references/synthetic-data.md`.
原文:The Dataset Card
Every dataset that reaches training gets a card — the required Phase 2 artifact `/finetune` checks before launching. The card is not free-form documentation; it MUST carry these fields: - **Provenance** — where every row came from (real source(s), synthetic method(s), or both), traceable to `trace-to-training-data` output. - **Counts** — total rows, and rows per split (train/eval/held-out) if split. - **Synthetic/real ratio** — the measured ratio, checked against the ≥25% real floor above. - **Dedup method** — exact-match, semantic (embedding threshold), or both; see the filter funnel in `references/synthetic-data.md`. - **Template used** — the exact chat template string/identifier, kept consistent through inference and eval — this is what ties an `eval-harness-first` run back to the checkpoint. - **Packing config** — whether packing was used, max sequence length, and confirmation the 5–10-sequence manual inspection above was done. A dataset missing any of these six fields isn't ready for `/finetune` — the card is a gate, not a summary written after the fact.
文件 SHA256:77dd076c9a44967d0d508106c68f3e068605a9fa45cb1279834fa5545d9329d6
仓库许可证记录:MIT;repository-license-recorded-scope-unverified,查看来源。
Prepare, format, and validate datasets for supervised fine-tuning and preference training. Use when converting raw data into training format, applying chat templates, configuring sequence packing, generating synthetic training data, or writing a dataset card before a run.
历史收录数据
| 来源仓库 | wshobson/agents |
|---|---|
| Skill源路径 | plugins/llm-finetuning/skills/dataset-curation/SKILL.md |
安装前请让使用的Agent先读取这个SKILL.md及其所在目录,确认依赖和所需权限。此页不生成未经来源验证的安装命令。
