training-llms-megatron

Train large language models with Megatron-Core parallelism on multi-node GPU clusters.

1.0k|117|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/OpenLAIR/dr-claw --skill training-llms-megatron-openlair
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: training-llms-megatron
Source: https://github.com/OpenLAIR/dr-claw/tree/main/skills/distributed-training/megatron-core
Command: npx skills add https://github.com/OpenLAIR/dr-claw --skill training-llms-megatron-openlair

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Megatron-Core enables scalable, efficient distributed training of very large language models by leveraging advanced parallelism strategies across GPUs and nodes.

Core Features & Use Cases

  • Supports tensor, pipeline, context, and expert parallelism for 2B–462B parameter models.
  • Production-grade workflows and tooling for multi-node training on NVIDIA hardware.
  • Use case: accelerate training of LLaMA-style or Mixture-of-Experts models at scale with improved MFU.

Quick Start

Start a Megatron-Core distributed training run on a multi-node GPU cluster with tensor, pipeline, context, and optional 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 scale LLM training across multi-node GPU clusters?

To scale LLM training across multi-node GPU clusters, this Skill uses Megatron-Core to distribute workloads with tensor, pipeline, context, and expert parallelism. It supports training models from 2B to 462B parameters on NVIDIA hardware with NVLink and InfiniBand.

What parallelism strategies are needed for training Mixture-of-Experts models?

Training Mixture-of-Experts models at scale requires expert parallelism alongside tensor, pipeline, and context parallelism. This Skill implements these advanced parallelism strategies via Megatron-Core to efficiently train MoE architectures and improve Model Flops Utilization.

Do I need NVLink and InfiniBand to train 2B to 462B parameter models?

Yes, you need NVIDIA GPUs with NVLink and InfiniBand to achieve optimal performance when training 2B to 462B parameter models. This Skill requires this specific hardware configuration to execute efficient multi-node distributed training workflows.

What is the best way to train LLaMA-style models with advanced model parallelism?

The best way to train LLaMA-style models with advanced model parallelism is using Megatron-Core. This Skill provides production-grade workflows that combine tensor, pipeline, and context parallelism to accelerate large-scale distributed training.

Can I use Megatron-Core for distributed training without PyTorch?

No, you cannot use this Skill for distributed training without PyTorch. Megatron-Core requires PyTorch to run distributed training workflows across multi-node GPU clusters for large language models.