界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
数据与研究 · SKILL.md

training-cli-and-data

training-cli-and-data

【数据与研究】Build Megatron-LM training commands, data preprocessing flows, launch templates, and training diagnostics.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: training-cli-and-data description: "Build Megatron-LM training commands, data preprocessing flows, launch templates, and training diagnostics." metadata: disco-role: operating disable-model-invocation: true license: NOASSERTION

training-cli-and-data

Use this sub-skill when the user asks to launch or debug Megatron-LM training, prepare text data, use mock data, scale data loading, or translate model/data/parallelism choices into a safe command.

Read first

Route by task

TaskAction
"Run a first training smoke"Start with mock data and a tiny number of iterations; validate environment first with install-and-environment.
"Prepare my data"Confirm JSONL keys/tokenizer, generate .bin/.idx, optionally merge and prebuild cache.
"Scale to multi-node"Confirm shared worktree/data/checkpoint paths, compute TP/PP/CP/DP via core-models, then render torchrun/SLURM command.
"Training hangs at startup"Distinguish dataset-cache barrier from NCCL/process group failure.
"Use LLaMA/Mixtral/Mamba/T5/BERT recipe"Extract the model-family flags and validate hardware/optional dependency assumptions before launch.

Command construction checklist

  1. Pull the user's desired model family, data source, checkpoint state, hardware, precision, and target runtime.
  2. Route topology decisions to ../core-models-and-parallelism/SKILL.md before finalizing TP/PP/CP/EP/FSDP.
  3. Decide data mode:
    • --mock-data for environment/performance ceiling checks.
    • Preprocessed .bin/.idx prefixes for real GPT-style data.
    • SFT/FIM/multimodal modes only when their schemas are explicitly selected.
  4. Add save/load/log/tensorboard paths and intervals.
  5. Use python -m torch.distributed.run / torchrun consistently with the selected environment.
  6. Validate with a short run before increasing steps, GPUs, or model size.

Boundaries

我的收藏