Estimate GPU memory usage for Megatron-based MoE (Mixture of Experts) and dense models. Use when users need to (1) estimate memory from HuggingFace model configs (DeepSeek-V3, Qwen, etc.), (2) plan GPU resource allocation for training, (3) compare different parallelism strategies (TP/PP/EP/CP), (4) determine if a model fits in available GPU memory, or (5) optimize training configurations for memory efficiency.
$npx -y skills add yzlnew/infra-skills --skill megatron-memory-estimatorInstalls into the current project.
Run `npx skills use "https://github.com/yzlnew/infra-skills" --skill "yzlnew/infra-skills/megatron-memory-estimator"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/yzlnew/infra-skills" that are relevant to the current task. Run `npx skills add "https://github.com/yzlnew/infra-skills"` and select the relevant skills, then follow their instructions.