distributed-training-megatron-core
使用 NVIDIA Megatron-Core 和高级并行策略训练大型语言模型(2B-462B 参数)。在训练超过 1B 参数的模型、需要最大 GPU 效率(H100 上 47% MFU)或需要张量/流水线/序列/上下文/专家并行时使用。用于 Nemotron、LLaMA、DeepSeek 的生产就绪框架。
机器翻译查看英文原文
Trains large language models (2B-462B parameters) using NVIDIA Megatron-Core with advanced parallelism strategies. Use when training models >1B parameters, need maximum GPU efficiency (47% MFU on H100), or require tensor/pipeline/sequence/context/expert parallelism. Production-ready framework used for Nemotron, LLaMA, DeepSeek.
适用对象:学习与科研。自动收录 · 待核查。
原作者说明节选
从固定版本的 SKILL.md 提取,保留原文语言。以下内容属于作者说明,本站尚未验证安装、兼容或运行结果。
查看英文原文
原文涵盖的主题
- Megatron-Core - Large-Scale LLM Training
- Quick start
- Common workflows
- Workflow 1: Train LLaMA-style model with 3D parallelism
- Workflow 2: Configure Mixture of Experts (MoE) training
- Workflow 3: Optimize for maximum throughput
- When to use vs alternatives
- Common issues
Megatron-Core trains LLMs from 2B to 462B parameters with up to 47% Model FLOP Utilization on H100 GPUs through advanced parallelism strategies. Installation: Simple distributed training: Copy this checklist: Step 1: Choose parallelism configuration Model size determines parallelism strategy: | Model Size | GPUs | Tensor Parallel | Pipeline Parallel | Data Parallel | Context Parallel | |------------|------|-----------------|-------------------|---------------|------------------| | 7B | 8 | 1 | 1 | 8 | 1 | | 13B | 8 | 2 | 1 | 4 | 1 | | 70B | 64 | 4 | 4 | 4 | 1 | | 405B | 128 | 8 | 8 | 2 | 2 | Step 2: Configure training hyperparameters Step 3: Launch distributed training Step 4: Monitor performance metrics Key metrics to track: For sparse MoE models like Mixtral. Step 1: Configure expert parallelism Step 2: Set MoE hyperparameters Step 3: Launch training with EP Expert parallelism distributes different experts across GPUs, reducing memory while maintaining capacity. Achieve 47% MFU on H100. Step 1: Enable optimizations Step 2: Use FP8 precision (H100 only) Result: 1.5-2x speedup on H100 vs BF16. Step 3: Optimize micro-batch size Find largest micro-batch that fits in memory: Typical v
这里只展示节选,请以完整原文和当前要求为准。
- 来源仓库
- davila7/claude-code-templates
- 源文件
- cli-tool/components/skills/ai-research/distributed-training-megatron-core/SKILL.md
- 固定版本
- 21be197f100a12b8d0dd9a211cc244c8179f84d3
来源与内容状态
本条为自动发现的元数据,尚未完成人工文档核查;适用性与运行结果待核查。
原作者:davila7/claude-code-templates · 原作者仓库元数据。文档核查:未核查。最近来源检查:2026-11-09T14:01:43.059Z。
分类由名称、说明与路径规则生成,分类不代表已核实适配。
许可与权利归属
MIT。第三方内容及版权归原作者,使用条件以原文为准。
许可原文 ↗本站没有因同步、复制或用户自报成功而将资源标为运行验证通过。
限制与注意事项
- 元数据收录不代表本站已经安装、适配、实测或进行安全审查。