Skip to content
Back to skills

Training Cli And Data

ASecurity

"Build Megatron-LM training commands, data preprocessing flows,

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 8, 2026
toolspythongonodetestingbackendperformance

Works with

  • cli

Security analysis

A100/100

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

Scanned September 8, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Training Cli And Data?

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

Security grade badge for Training Cli And Data
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-training-cli-and-data/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-training-cli-and-data)

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

- For pretraining launch patterns, torchrun/SLURM/container templates, model-family examples, and validation outputs, read [references/training-workflows.md](references/training-workflows.md).
- For JSONL preprocessing, dataset merge/cache, object storage, and data-loader scale flags, read [references/data-workflows.md](references/data-workflows.md).
- For NCCL, tokenizer, data-cache, shape/batch, and launch failures, read [references/troubleshooting.md](references/troubleshooting.md).
- Use [scripts/render_pretrain_command.py](scripts/render_pretrain_command.py) to create a conservative command template.
- Use [scripts/create_tiny_preprocess_fixture.py](scripts/create_tiny_preprocess_fixture.py) to make a tiny JSONL fixture and display a preprocessing command.
- Use [scripts/run_minimal_mcore_smoke.sh](scripts/run_minimal_mcore_smoke.sh) only when a CUDA-capable Megatron environment and at least two GPUs are available.

## Route by task

| Task | Action |
|---|---|
| "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](../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

- Install/backend readiness is owned by [../install-and-environment/SKILL.md](../install-and-environment/SKILL.md).
- Model/config object details are owned by [../core-models-and-parallelism/SKILL.md](../core-models-and-parallelism/SKILL.md).
- Checkpoint format conversion and GPT-Hybrid migration are owned by [../checkpointing-and-conversion/SKILL.md](../checkpointing-and-conversion/SKILL.md).
- CI recipe/golden-value workflows are owned by [../testing-ci-and-maintenance/SKILL.md](../testing-ci-and-maintenance/SKILL.md).

Files in this skill

  • SKILL.md3.3 KB
  • references/data-workflows.md4 KB
  • references/training-workflows.md3.6 KB
  • references/troubleshooting.md2.8 KB
  • scripts/create_tiny_preprocess_fixture.py1.6 KB
  • scripts/render_pretrain_command.py2.5 KB
  • scripts/run_minimal_mcore_smoke.sh1 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.