training-llms-megatron

Train large language models with Megatron-Core using configurable 3D and 4D parallelism.

52|6|Updated Nov 24, 2025
One-click install
npx skills add https://github.com/ovachiever/droid-tings --skill training-llms-megatron
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: training-llms-megatron
Source: https://github.com/ovachiever/droid-tings/tree/main/skills/megatron-core
Command: npx skills add https://github.com/ovachiever/droid-tings --skill training-llms-megatron

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill guides large-scale LLM training with NVIDIA Megatron-Core, covering 3D parallelism (tensor, pipeline, data, context), MoE, and production-grade ML engineering practices.

Core Features & Use Cases

  • 3D Parallelism: Tensor, pipeline, data, and context parallelism for mega-models.
  • MoE & Optimization: Mixture-of-Experts configurations and efficiency techniques.
  • Production Patterns: Fault tolerance, checkpointing, and scalable deployment patterns.

Quick Start

Set up a 70B model with TP/PP/CP to explore parallelism strategies.

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 with 3D parallelism across distributed clusters?

3D parallelism combines tensor, pipeline, and data parallelism to train models efficiently across multiple GPUs. Megatron-Core implements these strategies on NVIDIA H100 hardware, enabling you to scale training from 2B to 462B parameter models by distributing computation across dimensions rather than sequentially.

What parallelism strategies does Megatron-Core support for ultra-large models?

Megatron-Core supports tensor parallelism, pipeline parallelism, data parallelism, sequence parallelism, context parallelism, and expert parallelism. These 6 techniques can be combined and configured independently to optimize throughput and memory usage for models ranging from 2B to 462B parameters on production clusters.

Can I use Megatron-Core to train mixture-of-experts models at scale?

Yes, Megatron-Core enables expert parallelism for mixture-of-experts deployments. It handles MoE configurations alongside 3D parallelism, precision options including BF16 and FP8, and optimization features like Flash Attention to deliver production-ready training pipelines for sparse expert models.

What precision formats and optimization features are available for distributed LLM training?

Megatron-Core supports BF16 and FP8 precision options paired with Flash Attention and transformer_engine optimizations. These reduce memory overhead and accelerate computation during distributed training, enabling efficient use of H100 resources for ultra-large model training.

Does Megatron-Core include production-grade tooling for training pipelines?

Yes, Megatron-Core includes pretrain_gpt.py scripts, data handling paths, vocabulary and merge utilities, checkpointing for fault tolerance, and distributed optimization strategies. These tools enable scalable, production-ready training deployments with built-in reliability patterns.

What hardware requirements and cluster setup are needed for Megatron-Core training?

Megatron-Core is optimized for NVIDIA H100 hardware in production-grade clusters. It scales across distributed nodes using configurable tensor, pipeline, and data parallelism to handle models from 2B to 462B parameters, requiring multi-GPU coordination and network bandwidth for cross-node communication.