Mixture of Experts

Layer 4 · Foundations

Mixture of Experts

FLOPs accounting for sparse layers, the auxiliary loss objective in full, and the memory-bandwidth reality of running MoE at inference time.

10 min read180 XP

FLOPs: dense vs. sparse feed-forward layers

For a dense feed-forward block with hidden size and expansion factor 4 (standard transformer ratio), per-token FLOPs are approximately: