training-llms-megatron

Train large language models with NVIDIA Megatron-Core parallelism strategies.

1|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/tianhao909/AI-Research-SKILLs-cn --skill training-llms-megatron-tianhao909
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: training-llms-megatron
Source: https://github.com/tianhao909/AI-Research-SKILLs-cn/tree/main/08-distributed-training/megatron-core
Command: npx skills add https://github.com/tianhao909/AI-Research-SKILLs-cn --skill training-llms-megatron-tianhao909

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires megatron-core, torch, apex, transformer-engine, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of training extremely large language models (LLMs) efficiently by leveraging advanced parallelism techniques to maximize GPU utilization and minimize training time.

Core Features & Use Cases

  • Massive Model Training: Train models from 2 billion to over 400 billion parameters.
  • Advanced Parallelism: Implements Tensor, Pipeline, Sequence, Context, and Expert Parallelism for optimal performance.
  • High GPU Efficiency: Achieves up to 47% Model FLOP Utilization (MFU) on NVIDIA H100 GPUs.
  • Production-Ready: Framework used for training models like Nemotron, LLaMA, and DeepSeek.
  • Use Case: Train a 70B parameter LLaMA model on 64 H100 GPUs using a combination of Tensor, Pipeline, and Context Parallelism for maximum throughput and efficiency.

Quick Start

Use the training-llms-megatron skill to train a LLaMA-style model with 3D 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 advanced parallelism on H100 GPUs?

Train large language models using advanced parallelism on H100 GPUs by implementing tensor, pipeline, sequence, context, and expert parallelism via NVIDIA Megatron-Core to maximize GPU efficiency and achieve up to 47% Model FLOP Utilization.

What is the best way to scale LLM training up to 400 billion parameters?

The best way to scale LLM training up to 400 billion parameters is using a production-ready framework like Megatron-Core, which supports the exact training architectures used for Nemotron, LLaMA, and DeepSeek models.

Does Megatron-Core support 3D parallelism for training LLaMA-style models?

Yes, Megatron-Core supports 3D parallelism for training LLaMA-style models by combining tensor, pipeline, and context parallelism to optimize throughput and efficiency across large GPU clusters.

Can I use tensor and pipeline parallelism to maximize GPU efficiency for distributed training?

Yes, you can use tensor and pipeline parallelism to maximize GPU efficiency for distributed training, alongside sequence, context, and expert parallelism strategies natively supported within the Megatron-Core framework.

What dependencies do I need to run distributed training with Megatron-Core?

To run distributed training with Megatron-Core, you need the torch, apex, and transformer-engine dependencies installed in your environment to support the underlying large language model training operations.

Why does LLM training fail to achieve high Model FLOP Utilization on A100 GPUs?

LLM training fails to achieve high Model FLOP Utilization on A100 GPUs without advanced parallelism, which this framework addresses by implementing tensor, pipeline, sequence, and context parallelism to optimize hardware utilization.