L’interface est localisée ; les présentations et documents des Skills sont traduits automatiquement par IA dans votre langue. Le code, les commandes, chemins et termes techniques restent en version originale, et le document de l’auteur fait foi.
Explorer les Skills
Données et recherche · SKILL.md

training-cli-and-data

training-cli-and-data

Build Megatron-LM training commands, data preprocessing flows, launch templates, and training diagnostics.

Independent GitHub snapshot · Automated classification · Original documentation governs

Documentation de la Skill

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

Skills enregistrées