training-llms-megatron

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

Updated Apr 30, 2026
One-click install
npx skills add https://github.com/Ced3-han/Harness-Settings --skill training-llms-megatron-ced3-han
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: training-llms-megatron
Source: https://github.com/Ced3-han/Harness-Settings/tree/main/skills/megatron-core
Command: npx skills add https://github.com/Ced3-han/Harness-Settings --skill training-llms-megatron-ced3-han

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 simplifies and accelerates the training of large language models with up to 462B parameters using NVIDIA Megatron-Core on H100 GPUs, enabling maximum efficiency and scalability for large-scale model training.

Core Features & Use Cases

  • Large-Scale Training: Handles models from 2B to 462B parameters, suitable for high-efficiency training.
  • Advanced Parallelism: Supports tensor, pipeline, sequence, and expert parallelism for optimal GPU utilization.
  • Distributed Training: Enables training across multiple GPUs and nodes for scalability.
  • Use Case: When you need to train models larger than 1B parameters with maximum efficiency and require advanced parallelism strategies, Megatron-Core is the go-to framework.

Quick Start

To initiate the training of a large language model using Megatron-Core with advanced parallelism strategies, execute the following command:

# Docker (recommended)
docker run --gpus all -it --rm nvcr.io/nvidia/pytorch:25.04-py3

# Or pip
pip install megatron-core

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 over 1B parameters efficiently?

Train large language models over 1B parameters efficiently using NVIDIA Megatron-Core on H100 GPUs. It applies advanced parallelism strategies including tensor, pipeline, sequence, and expert parallelism to maximize GPU utilization across distributed nodes.

What parallelism strategies does Megatron-Core support for distributed training?

Megatron-Core supports tensor, pipeline, sequence, and expert parallelism for distributed training. These advanced parallelism strategies optimize GPU utilization and enable scalable training across multiple GPUs and nodes for large language models up to 462B parameters.

Can I use Megatron-Core to train models on H100 GPUs?

Yes, you can use Megatron-Core to train models on H100 GPUs. The framework is specifically optimized for maximum GPU efficiency on H100 hardware, enabling high-efficiency training for large language models ranging from 2B to 462B parameters.

Do I need apex and transformer-engine to train models with Megatron-Core?

Yes, training models with Megatron-Core requires apex and transformer-engine dependencies. The framework also requires torch and megatron-core to execute large language model training scripts with advanced parallelism strategies on H100 GPUs.

How to start large language model training using Megatron-Core?

Start large language model training using Megatron-Core by running the Docker container `nvcr.io/nvidia/pytorch:25.04-py3` with `--gpus all` or installing the framework via `pip install megatron-core` to execute training scripts.

What's the best way to scale distributed training across multiple nodes?

The best way to scale distributed training across multiple nodes is using Megatron-Core with advanced parallelism strategies. It enables scalable training for large language models up to 462B parameters by distributing workloads across multiple GPUs and nodes efficiently.