training-llms-megatron

Configure Megatron-Core parallelism strategies for training large language models on NVIDIA GPUs.

Updated Apr 3, 2026
One-click install
npx skills add https://github.com/handsomelong922/my-codex-skills --skill training-llms-megatron-handsomelong922
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: training-llms-megatron
Source: https://github.com/handsomelong922/my-codex-skills/tree/main/skills/megatron-core
Command: npx skills add https://github.com/handsomelong922/my-codex-skills --skill training-llms-megatron-handsomelong922

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Trains extremely large language models efficiently by distributing workload across GPUs using Megatron-Core's advanced parallelism.

Core Features & Use Cases

  • Supports tensor, pipeline, sequence, context, and expert parallelism to train models from 2B to 462B parameters.
  • Provides production-grade configurations for large-scale models on NVIDIA GPUs including Nemotron, LLaMA variants, and DeepSeek deployments.
  • Ideal for pretraining at scale, MoE training, and throughput-optimized workflows on multi-node GPU clusters.

Quick Start

Launch a distributed Megatron-Core training job on an H100 cluster using tensor, pipeline, sequence, and expert parallelism.

Frequently Asked Questions about training-llms-megatron

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I train large language models using Megatron-Core parallelism?

Train large language models using Megatron-Core by distributing workloads across GPUs with tensor, pipeline, sequence, context, and expert parallelism. This approach supports models from 2B to 462B parameters on multi-node NVIDIA GPU clusters.

What parallelism strategies are needed for training a 462B parameter model?

Training a 462B parameter model requires combining multiple parallelism strategies including tensor, pipeline, sequence, context, and expert parallelism to achieve high GPU throughput and distribute the workload efficiently across hardware.

Does Megatron-Core support expert parallelism for MoE training?

Megatron-Core supports expert parallelism for MoE training alongside tensor, pipeline, sequence, and context parallelism. This enables throughput-optimized workflows for large-scale models on multi-node GPU clusters.

Can I use Megatron-Core for pretraining LLaMA variants on H100 clusters?

You can use Megatron-Core for pretraining LLaMA variants on H100 clusters. It provides production-grade configurations to enable distributed training across NVIDIA GPUs using multiple parallelism strategies.

What is the best way to scale LLM training from 2B to 462B parameters?

Scale LLM training from 2B to 462B parameters by leveraging Megatron-Core's advanced parallelism across GPUs. This approach distributes workloads efficiently using production-grade setups on multi-node GPU clusters.