AI-Hypercomputer / AI-Hypercomputer/maxtext
MFU drops significantly when using megablox with more experts
- 主要言語
- Python
- スター
- 2.4k
- フォーク
- 607
- 平均マージ
- 2日 19時間
- マージ済み PR(30日)
- 158
説明
I'm testing Mixtral-8x7B _without attention_ so I can isolate the effects of the MoE layer.
When num_experts=8 and num_experts_per_token=2, MFU on a v5p-64 is 50.4%, which is good.
However, I wanted to test an architecture that is more similar to DeepSeek's, which uses more experts.
Thus, I increased the number of experts from 8 to 56 (7x increase), the number of experts per token from 2 to 14 (7x increase), and decreased the moe_intermediate_size from 14336 to 2048 (7x decrease). Thus, I'm still using the same total and active number of parameters of Mixtral.
The problem is that in this new architecture with more experts, the MFU drops to 28%!
(BTW, I tried multiple configs with different tile_sizes, TPU sizes and batch sizes, all leading to 25-28% MFU)
Any help is much appreciated.
(cc'ing @sharadmv @RissyRan @lenscloth who might be interested in this problem)
コントリビューションガイド
評価
この issue はまだ評価されていません。