training-llms-megatron

Train large-scale language models using NVIDIA Megatron-Core with advanced parallelism.

2|Updated Feb 4, 2026
One-click install
npx skills add https://github.com/zhuangbiaowei/smart_bot --skill training-llms-megatron-zhuangbiaowei
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: training-llms-megatron
Source: https://github.com/zhuangbiaowei/smart_bot/tree/main/skills/megatron-core
Command: npx skills add https://github.com/zhuangbiaowei/smart_bot --skill training-llms-megatron-zhuangbiaowei

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the immense computational and memory challenges of training large language models (LLMs) by providing a robust framework for distributed training with advanced parallelism strategies.

Core Features & Use Cases

  • Massive Model Training: Train LLMs from 2 billion to over 400 billion parameters efficiently.
  • GPU Efficiency: Achieve high Model FLOP Utilization (MFU), up to 47% on H100 GPUs, maximizing hardware investment.
  • Advanced Parallelism: Implements Tensor, Pipeline, Sequence, Context, and Expert Parallelism for optimal scaling.
  • Use Case: A research team needs to train a 70B parameter LLM on a cluster of 64 H100 GPUs. This Skill provides the configuration and scripts to set up 3D parallelism (TP=4, PP=4) and optimize training for maximum throughput and memory efficiency.

Quick Start

Use the training-llms-megatron skill to launch a 2-GPU training job using the simple example script.

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 from 2B to 400B parameters efficiently?

Train large language models efficiently by using NVIDIA Megatron-Core to implement advanced parallelism strategies. This framework configures distributed training environments to maximize hardware utilization and handle massive model scaling.

What is the best way to maximize GPU efficiency for LLM training on H100 clusters?

Maximize GPU efficiency for LLM training by applying tensor, pipeline, and sequence parallelism techniques via Megatron-Core. This approach achieves up to 47% Model FLOP Utilization on H100 GPUs, ensuring optimal hardware investment utilization.

How do I configure 3D parallelism for a 70B parameter model on a distributed GPU cluster?

Configure 3D parallelism for a 70B parameter model by setting tensor parallelism and pipeline parallelism degrees in your training scripts. Megatron-Core enables this multi-dimensional parallelism to optimize throughput and memory efficiency across distributed GPUs.

Does Megatron-Core support sequence and context parallelism for long-context training?

Megatron-Core supports sequence and context parallelism alongside tensor and pipeline parallelism. These advanced parallelism techniques enable efficient distributed training for long-context scenarios and large-scale language models.

Can I launch a simple training job to test distributed LLM training locally?

You can launch a simple 2-GPU training job using the provided example scripts. This allows you to test distributed LLM training configurations locally before scaling up to large production clusters.

Why should I use advanced parallelism strategies instead of standard distributed training for LLMs?

Advanced parallelism strategies are required to overcome the immense computational and memory challenges of training large language models. Implementing tensor, pipeline, and sequence parallelism ensures maximum hardware utilization that standard distributed training cannot achieve.