arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.09952cs.LG
收藏

Llama 3 遇上 MoE:高效升级改造

Llama 3 Meets MoE: Efficient Upcycling

Univeristy of Texas at Austin(德克萨斯大学奥斯汀分校);NVIDIA(英伟达公司)

Aditya Vavre, Ethan He, Dennis Liu, Zijie Yan, June Yang, Nima Tajbakhsh, Ashwath Aithal

AI总结:

针对从头训练MoE模型存在的过拟合、路由不稳定等问题,研究基于Llama 3-8B预训练稠密检查点,以不足1%的典型预训练计算量训练出8专家Top-2 MoE模型,提升下游性能与训练效率,还在NeMo中集成在线升级改造功能助力低成本开发高容量MoE模型。

摘要:

大规模扩展大语言模型(LLM)可显著提升性能,但计算成本高得令人望而却步。混合专家(Mixture-of-Experts, MoE)模型提供了一种高效替代方案,能在不按比例增加计算需求的前提下提升模型容量。然而,从头训练 MoE 模型存在过拟合、路由不稳定等挑战。我们提出了一种利用预训练稠密检查点的高效训练方案,基于 Llama 3-8B 训练出一个 8 专家 Top-2 MoE 模型,所用计算量不到典型预训练计算量的 1%。我们的方法提升了学术基准上的下游性能,在 MMLU 上的 0 样本准确率提升了 2%,同时在训练期间借助我们的框架实现了 46.8% 的模型 FLOPs 利用率(MFU)。我们还在 NeMo 中集成了在线升级改造功能,可无缝使用预训练权重,助力低成本开发高容量 MoE 模型。

英文摘要:

Scaling large language models (LLMs) significantly improves performance but comes with prohibitive computational costs. Mixture-of-Experts (MoE) models offer an efficient alternative, increasing capacity without a proportional rise in compute requirements. However, training MoE models from scratch poses challenges like overfitting and routing instability. We present an efficient training recipe leveraging pre-trained dense checkpoints, training an 8-Expert Top-2 MoE model from Llama 3-8B with less than $1\%$ of typical pre-training compute. Our approach enhances downstream performance on academic benchmarks, achieving a $\textbf{2%}$ improvement in 0-shot accuracy on MMLU, while reaching a Model FLOPs Utilization (MFU) of $\textbf{46.8%}$ during training using our framework. We also integrate online upcycling in NeMo for seamless use of pre-trained weights, enabling cost-effective development of high-capacity MoE models.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑