技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
data-preparation【数据与研究】Prepare and validate flat pretraining, packed SFT, preference, and RL prompt datasets for train-llm-from-scratch.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task is about building, inspecting, validating, or triaging datasets for this repository's LLM pipeline. Keep training, checkpoint, evaluation, chat, and UI work routed to the sibling skills listed below.
tokens array. Use for next-token
base-model pretraining.tokens and
loss_mask. Use for assistant-only supervised fine-tuning.prompt, chosen, and rejected.
Use for reward-model training and DPO/ORPO/KTO.prompt and numeric-or-null gold; the
arithmetic curriculum is the same schema. Use for PPO and GRPO/RLVR.Read references/data-formats.md for exact schema,
mask, tokenizer, and data-loader contracts before accepting a user-provided file.
Read references/workflows.md for distilled command
recipes and safe small-data checks. Read
references/troubleshooting.md when validation
fails or data generation is blocked by dependencies, cache, network, or context
limits.
These scripts do not download data, train models, modify input files, or require a repository checkout. Run them before launching any stage that consumes the data.
scripts/inspect_h5_tokens.py — inspect a flat pretraining HDF5 tokens
dataset: shape, dtype, min/max, EOT count, and optional head decode.scripts/validate_sft_h5.py — validate packed SFT HDF5 tokens and
loss_mask schema, binary mask, token range, and trained-token fraction.scripts/validate_preference_jsonl.py — validate preference JSONL rows and
reject missing/empty fields or degenerate chosen == rejected pairs.scripts/validate_rl_prompts_jsonl.py — validate prompt/gold JSONL rows,
numeric/null gold policy, and optional arithmetic-curriculum consistency.../model-pretraining/SKILL.md.../post-training-rlhf/SKILL.md.../evaluation-chat/SKILL.md.../configuration-ui/SKILL.md.references/workflows.md, starting with a tiny
limit when practical.references/troubleshooting.md to identify
whether the fix is regeneration, path creation, cache/network repair, context
length change, or schema cleanup.