跳到正文
数字商店
原文
Thomas Wolf· @Thom_Wolf · X·· 26 天前AI 评分31
AI 导读

手册里的简短回答:在总参数量和激活参数量固定的情况下,更细粒度的专家有用,但有个限度。某次消融实验中,loss 一直下降直到 128 个专家(每个宽度为 1/4,top-8),之后就没有更多收益了(大多数已发布模型处于 128 到 384 个专家、top-4 到 top-8 的范围) 超过这个点后,更小的 GEMM 和更多的 all-to-all 通信开始吃掉你的单步时间,所以你集群上的最佳专家数量通常比单纯看 loss 得出的结论要略低一些。 细节 + Megatron 参数:https://t.co/EBnt5cJsW1

正文

short answer from the handbook: at fixed total and active params, finer experts help up to a point. in one ablation the loss kept dropping until 128 experts (each 1/4 width, top-8), then nothing more (most released models sit at 128 to 384 experts, top-4 to top-8)

past that, smaller GEMMs and more all-to-all traffic start eating your step time, so the best count on your cluster is usually a bit less sparse than the loss alone says.

details + Megatron flags: https://t.co/EBnt5cJsW1

来源:Thomas Wolf · x.com