Skip to content
Back to skills

Training

ASecurity

"Routes OpenNMT-py training, checkpoint continuation, distributed

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
devopspythongobashnode

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill training --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Training?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Training
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-training-21ab703e/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-training-21ab703e)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

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

# 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:

   ```bash
   python scripts/inspect_train_config.py train.yaml
   ```

3. For real training, run:

   ```bash
   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.

Files in this skill

  • SKILL.md2.9 KB
  • references/training-configs.md11.7 KB
  • references/troubleshooting.md7.6 KB
  • scripts/inspect_train_config.py24.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.