AGENT SKILL

training

Routes OpenNMT-py training, checkpoint continuation, distributed layout, alignment, LoRA, and quantized fine-tuning workflows.

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

01 前言 Front Matter

name
training
license
MIT
metadata
{ "disco-role": "operating" }
description
Routes OpenNMT-py training, checkpoint continuation, distributed layout, alignment, LoRA, and quantized fine-tuning workflows.
disable-model-invocation
true

02 资源文件 3

03 SKILL.md 正文

Training

Use this sub-skill when the task is to run or debug OpenNMT-py model training with onmt_train, including model architecture choices, optimizer schedules, GPU layout, checkpoint continuation, vocabulary update, alignment training, pretrained embeddings, LoRA, gradient checkpointing, or 4/8-bit fine-tuning.

Use this route when

  • The request mentions onmt_train, a training YAML, train_steps, valid_steps, save_model, train_from, reset_optim, or update_vocab.
  • The user needs to choose or debug RNN, Transformer, language-model, summarization, or fine-tuning options.
  • The task involves world_size, gpu_ranks, CUDA_VISIBLE_DEVICES, multi-node rank slices, or training throughput.
  • The task involves pretrained embeddings, frozen word vectors, supervised alignment loss, copy-attention summarization, LoRA adapters, gradient checkpointing, or quantized layers.

Do not use this route when

  • The task is only corpus discovery, tokenizer transforms, or vocabulary building before training; use ../data-preparation/ first.
  • The task is translation, scoring, server deployment, decoding, or CTranslate2 inference; use ../inference/.
  • The task is checkpoint averaging, release conversion, external checkpoint conversion, or LoRA merge after training; use ../conversion/.

Start here

  1. Read references/training-configs.md to select the smallest valid training pattern and understand the parser constraints.

  2. Run the bundled inspector before launching a long job:

    python scripts/inspect_train_config.py train.yaml
    
  3. For real training, run:

    onmt_train -config train.yaml
    
  4. If the inspector reports data or vocabulary failures, fix them with ../data-preparation/ before retrying training.

  5. If the training job fails after launch, use references/troubleshooting.md to map the failure to config validation, distributed runtime, checkpoint, alignment, embedding, LoRA, quantization, or memory causes.

Operating rules

  • Treat YAML config checks as a safety gate, not as proof that the model will fit memory or converge.
  • Prefer explicit YAML over long command lines for training because configargparse merges nested data, vocab, model, optimizer, and distributed options in one place.
  • When continuing from a checkpoint, decide whether the goal is exact resume, new optimizer states, changed model options, or vocabulary update before setting reset_optim and override_opts.
  • Do not claim 4/8-bit or LoRA viability without the required optional packages and GPU memory checks; CPU-only checks only validate config shape.
  • Keep source-data paths, checkpoint paths, and private environment details in the user's config or logs, not in reusable instructions.

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