AGENT SKILL

data-and-templates

Use this sub-skill when working on LlamaFactory dataset_info entries, Alpaca/ShareGPT/OpenAI data rows, multimodal media columns, prompt templates, tool-calling fields, preprocessing validation, or data processor behavior. It covers v0 data loading/conversion/template/preprocessing issues and excludes launch, optimizer, export, API serving, and web UI operations.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
data-and-templates
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Use this sub-skill when working on LlamaFactory dataset_info entries, Alpaca/ShareGPT/OpenAI data rows, multimodal media columns, prompt templates, tool-calling fields, preprocessing validation, or data processor behavior. It covers v0 data loading/conversion/template/preprocessing issues and excludes launch, optimizer, export, API serving, and web UI operations.
disable-model-invocation
true

02 资源文件 4

03 SKILL.md 正文

LlamaFactory Data And Templates

Use this sub-skill for LlamaFactory 0.9.6.dev0 v0 data preparation and prompt-formatting work. The v0 CLI entry points are llamafactory-cli and lmf; v0 is the default unless USE_V1=1 is set.

Route The Task

  • For dataset_info.json entries, local/remote dataset selection, column mappings, ranking flags, and media columns, read references/data-formats.md.
  • For template:, tool_format, thinking flags, prompt construction, processor selection, packing, and tokenization behavior, read references/templates-and-processing.md.
  • For common failure modes such as undefined datasets, missing registry files, wrong columns/tags, ranking mismatch, media-token mismatch, and tokenized_path confusion, read references/troubleshooting.md.
  • To statically check a registry entry and optional tiny row file without importing LlamaFactory, run python scripts/validate_dataset_entry.py --help.

Boundaries

This sub-skill owns data registry/schema/template/preprocessing diagnosis. Hand off training launch, optimizer, LoRA, distributed, and YAML orchestration decisions to training-and-configs; model loading, quantization, adapters, and export to model-loading-and-export; and service/API/web UI operations to inference-and-serving or webui-and-ops.

Fast Workflow

  1. Identify the dataset name listed in dataset: or eval_dataset: and verify a matching top-level key exists in dataset_info.json under dataset_dir.
  2. Determine load source precedence: hub URL keys first, then script, cloud file, then local file_name.
  3. Confirm formatting is alpaca, sharegpt, or code-backed openai, and verify the declared columns and tags match representative rows.
  4. Check task/stage compatibility: reward-modeling expects ranking: true; most non-RM stages reject ranking datasets.
  5. Check template: supports the model family and any multimodal placeholders present in the data.
  6. Run the bundled validator for early static issues before trying a full train command.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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).

★ 351