training-llms-megatron
仓库创建 2025年11月3日最近提交 1 个月前SkillHot 收录 22 天前
▸ 精选理由
针对超大模型的并行策略与高 MFU 优化,适合追求极致 GPU 利用的研究/工程团队。
▸ 风险提示
依赖 NVIDIA 驱动与专有镜像,安装可能拉取外部容器镜像并需高端 GPU
这个 Skill 做什么
使用 Megatron-Core 在多GPU集群上高效训练 2B–462B 参数的语言模型。
用 Megatron-Core 在多 GPU 集群上训练 2B–462B 参数的语言模型,支持 tensor/pipeline/sequence/expert 等多种并行策略以最大化 GPU 利用率。适合需要训练 >1B 参数模型并追求最高 MFU(如在 H100 上)和生产级效率的场景。特点是面向大规模训练优化、生产就绪,能把复杂并行配置落地到稳定的训练流程。
▸ 展开 SKILL.md 英文原文
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.
1.1w
Stars
821
Forks
40
仓库内 Skill
+761
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/Orchestra-Research/AI-Research-SKILLs/main/08-distributed-training/megatron-core/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/Orchestra-Research/AI-Research-SKILLs/main/08-distributed-training/megatron-core/SKILL.md"SKILL.MD 节选查看完整文件 ↗
# Megatron-Core - Large-Scale LLM Training ## Quick start Megatron-Core trains LLMs from 2B to 462B parameters with up to 47% Model FLOP Utilization on H100 GPUs through advanced parallelism strategies. **Installation**: ```bash # Docker (recommended) docker run --gpus all -it --rm nvcr.io/nvidia/pytorch:25.04-py3 # Or pip pip install megatron-core ``` **Simple distributed training**: ```bash # Train with 2 GPUs using data parallelism torchrun --nproc_per_node=2 examples/run_simple_mcore_train_loop.py # Or LLaMA-3 8B training ./examples/llama/train_llama3_8b_fp8.sh ``` ## Common workflows ### Workflow 1: Train LLaMA-style model with 3D parallelism Copy this checklist: ``` LLaMA Tra
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有