training-llms-megatron

Optimize distributed LLM training with Megatron-Core parallelism strategies.

Updated May 4, 2026
One-click install
npx skills add https://github.com/Supporter09/Face_Anti_Spoofing_Biometric --skill training-llms-megatron-supporter09
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: training-llms-megatron
Source: https://github.com/Supporter09/Face_Anti_Spoofing_Biometric/tree/main/.claude/skills/megatron-core
Command: npx skills add https://github.com/Supporter09/Face_Anti_Spoofing_Biometric --skill training-llms-megatron-supporter09

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps teams train and optimize very large language models without wasting GPU capacity, getting blocked by memory limits, or struggling to choose the right distributed setup.

Core Features & Use Cases

  • Large-Scale Training Guidance: Plan and run training for models from the low billions to hundreds of billions of parameters.
  • Parallelism Strategy Selection: Choose effective tensor, pipeline, sequence, context, and expert parallelism combinations for the available hardware.
  • Performance Optimization: Tune batch sizes, precision, communication patterns, and checkpointing to improve throughput and stability.
  • Use Case: A machine learning engineer preparing a 70B model on an H100 cluster can use this Skill to select a parallelism plan, set training hyperparameters, and validate that the configuration is likely to fit in memory and achieve strong utilization.

Quick Start

Ask for a Megatron-Core training plan for your target model size, GPU count, and sequence length, and include the hardware constraints and performance goal you want to meet.

Frequently Asked Questions about training-llms-megatron

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

FAQPage Schema
How do I configure Megatron-Core for distributed LLM training on an H100 cluster?

Configure distributed LLM training by requesting a Megatron-Core plan specifying your model size, GPU count, sequence length, and hardware constraints to select parallelism strategies and validate memory fit. This generates a targeted configuration plan ensuring strong GPU utilization and training stability.

What is the best way to combine tensor and pipeline parallelism for large language models?

The best way to combine tensor and pipeline parallelism for large language models is using a strategy selector that evaluates your hardware layout. It matches tensor, pipeline, sequence, context, and expert parallelism combinations to your specific GPU topology to maximize throughput and prevent memory bottlenecks.

Can I use this approach for Mixture of Experts pretraining and DeepSeek-style models?

Yes, this approach supports Mixture of Experts pretraining and DeepSeek-style models by applying expert parallelism strategies. It provides specific configuration guidance for MoE setups, ensuring expert routing and communication patterns are optimized for your available GPU hardware.

Why does my 70B model training run fail memory limits during large-scale GPU parallelism?

Large-scale GPU parallelism fails memory limits when tensor, pipeline, or sequence parallelism configurations mismatch hardware capacity. You can resolve this by validating your parallelism plan and tuning batch sizes, precision, and checkpointing against your specific GPU memory constraints.

How do I optimize GPU throughput and precision tuning for long-context pretraining runs?

Optimize GPU throughput for long-context pretraining runs by tuning batch sizes, precision settings, communication patterns, and checkpointing intervals. This process applies context and sequence parallelism strategies to maintain high utilization and stability across extended context lengths.

Do I need specific hardware constraints to plan a production-scale LLM training configuration?

Yes, providing specific hardware constraints like GPU count and memory capacity is required to plan production-scale LLM training. This information allows the system to select effective parallelism combinations and validate that the configuration will achieve strong hardware utilization.