计算最优并不等同于集群最优
Compute-optimal is not cluster-optimal

原始链接: https://szha.ai/blog/compute-optimal-is-not-cluster-optimal/

标准缩放定律(Scaling laws)以“模型算力(FLOPs)”为优化目标,但集群的计费单位却是 GPU 小时。一篇新论文提出了 **MOSAIC** 框架,旨在将系统工程融入缩放定律阶段,以弥补这一差距。 其核心观点是:**计算最优并不等于集群最优**。传统的缩放定律将模型算力利用率(MFU)视为常数,但实际上,MFU 在很大程度上取决于模型架构和并行布局。以混合专家(MoE)模型为例,激进的稀疏性设计在算力层面往往看似最优,但由于通信开销和 MFU 较低,在实际硬件上的表现却不尽如人意。 MOSAIC 将模型设计视为一个双层优化问题: 1. **外层循环**:在架构网格中最小化预测损失。 2. **内层循环**:在特定硬件约束下,针对每种架构最大化“可交付算力(MFU)”。 通过结合现实世界的性能模型,MOSAIC 能够识别出标准定律所忽略的内部最优解,证明了高效的模型设计需要同时对架构和系统布局进行协同优化。归根结底,最好的模型不是算力最高的模型,而是最能将集群性能转化为实际训练进展的模型。

抱歉。
相关文章

原文

A scaling law converts a compute budget into a model: fix the FLOPs, minimize the predicted-loss curve, read off a parameter count and a token budget. It is the most useful instrument pretraining has, and it is denominated in a currency no cluster accepts. Clusters do not bill FLOPs. They bill GPU-hours.

I have been pulling at this thread on this blog for a while. The post on model size and training horizon ended by converting compute into machine time,

Tmachine=CtrainρMFUρgoodputS,T_{\text{machine}} = \frac{C_{\text{train}}}{\rho_{\text{MFU}} \cdot \rho_{\text{goodput}} \cdot S},
联系我们 contact @ memedata.com