executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
core-models-and-parallelismUse Megatron Core model APIs, process groups, and parallelism/FSDP choices safely.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when the user is constructing Megatron Core modules, choosing TP/PP/CP/EP/DP/FSDP layouts, reviewing model-provider code, or diagnosing model-parallel/process-group errors.
| Task | Route |
|---|---|
Build a tiny GPT/Hybrid model or inspect TransformerConfig | Use references/api-reference.md. |
| Select parallel sizes for a training job | Use references/parallelism-reference.md, then hand launch details to ../training-cli-and-data/SKILL.md. |
| Diagnose TP/PP/CP/EP/FSDP shape errors | Start with references/troubleshooting.md. |
| Convert GPTModel checkpoints or migrate to HybridModel | Route to ../checkpointing-and-conversion/SKILL.md. |
| Use high-level dynamic inference APIs | Route to ../inference-and-serving/SKILL.md. |
Pull the user's artifact first: model-provider function, config dataclass, parallel sizes, training command, traceback, or checkpoint metadata.
Determine whether the task is a library API task or a Megatron-LM training entrypoint task.
Check the total topology:
total GPUs = TP × PP × CP × DP
MoE adds EP constraints; expert/data dimensions must still be compatible.
Validate divisibility: hidden size and attention heads with TP, layer counts with PP/layout, sequence length with CP, experts with EP/ETP.
Check backend constraints before recommending flags. For example, CUDA_DEVICE_MAX_CONNECTIONS=1 helps some pre-Blackwell TP/CP non-FSDP paths but is wrong for FSDP and expert-overlap cases.
If the answer becomes a launch command, cross-link to training-cli-and-data so data/checkpoint/logging details are handled there.
GPTModel remains available but emits a deprecation warning: new architecture work should consider HybridModel and the migration route.GPTModel construction requires a TransformerConfig, a layer ModuleSpec, vocab_size, and max_sequence_length.TransformerConfig extends model-parallel configuration; many constructor fields control TP/PP/CP/EP/FSDP as well as transformer architecture.ProcessGroupCollection through library code rather than adding new direct global process-group reads in megatron/core production code.This sub-skill owns model/core API and topology reasoning. It does not own data preprocessing, command-line launch assembly, checkpoint conversion, or CI test selection.