How MoE differs from dense
In a dense transformer, every token passes through every layer, so adding capabilities increases computation for both training and inference. [1]
Mixture-of-experts (MoE) architectures take a different approach to scaling by using many subnetworks, or experts, while activating only a small subset for each token. [2]
What MoE training costs
Fragmented expert computation can reduce GPU utilization. [3]
Routing adds communication overhead, and larger parameter footprints create memory and distributed-training challenges. [4]
A naive implementation and grouped execution
MoE models replace a single dense feed-forward block with multiple expert networks. [5]
A naive implementation, however, can trigger excessive kernel launches. [6]
Grouped execution preserves the individual expert matrices but submits their work together. [7]
Sources
- The NVIDIA source says: In a dense transformer, every token passes through every layer, so adding capabilities increases computation for both training and inference. Efficient MoE Training for Biological Foundation Models
- The NVIDIA source says: Mixture-of-experts (MoE) architectures take a different approach to scaling by using many subnetworks, or experts, while activating only a small subset for each token. Efficient MoE Training for Biological Foundation Models
- The NVIDIA source says: Fragmented expert computation can reduce GPU utilization. Efficient MoE Training for Biological Foundation Models
- The NVIDIA source says: Routing adds communication overhead, and larger parameter footprints create memory and distributed-training challenges. Efficient MoE Training for Biological Foundation Models
- The NVIDIA source says: MoE models replace a single dense feed-forward block with multiple expert networks. Efficient MoE Training for Biological Foundation Models
- The NVIDIA source says: A naive implementation, however, can trigger excessive kernel launches. Efficient MoE Training for Biological Foundation Models
- The NVIDIA source says: Grouped execution preserves the individual expert matrices but submits their work together. Efficient MoE Training for Biological Foundation Models