Training

From VectorSpaceLab/AREX-Skill · View interactive version

Training is an AI agent skill from the GitHub repository VectorSpaceLab/AREX-Skill. Train Transformer translation models with train.py, safe command construction, data-mode choices, hyperparameters, scheduler behavior, logs, checkpoints, CPU/GPU flags, TensorBoard, and troubleshooting.

How to use this skill

Skill file

Training

Use this sub-skill when the task is to plan or debug training with train.py without starting an expensive run. It covers the training CLI, data input modes, safe command construction, loss/scheduler smoke checks, logs, checkpoints, device flags, TensorBoard, and recoverable training setup failures.

Do not use this sub-skill to create training data files, translate from a checkpoint, or explain Transformer internals beyond training-facing constructor flags. Route those tasks to the data-preparation, translation, or model-architecture sub-skills.

Fast routes

Safe operating pattern

  1. Decide the data mode:
  1. Always include -output_dir; train.py raises if it is omitted.
  2. Prefer -no_cuda for CPU-only planning and smoke checks. Omit it only when CUDA is available and desired.
  3. Use scripts/build_training_command.py to print the exact command. It is safe by default and does not execute training.
  4. Run scripts/training_smoke_check.py --repo-root <checkout> in an environment with the legacy training dependencies when you need to verify import, loss, model forward, and ScheduledOptim behavior.
  5. Treat full training as a long-running user action requiring prepared data, a writable output directory, and explicit approval.

Key runtime facts

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.