Skip to content
IJK

MoE Training Costs and Grouped Expert Execution

By IJK ·

What an NVIDIA post says MoE changes compared with a dense transformer, which costs MoE training adds and what grouped execution does.

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]

scaled byaddressed byDense: every token passes through every layeradding capabilities increases computationMoE: only a small subset of experts per tokenbut fragmented computation and routing add costsGrouped executionpreserves expert matrices but submits their work ...
What does grouped execution address?

Sources

  1. 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
  2. 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
  3. The NVIDIA source says: Fragmented expert computation can reduce GPU utilization. Efficient MoE Training for Biological Foundation Models
  4. 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
  5. The NVIDIA source says: MoE models replace a single dense feed-forward block with multiple expert networks. Efficient MoE Training for Biological Foundation Models
  6. The NVIDIA source says: A naive implementation, however, can trigger excessive kernel launches. Efficient MoE Training for Biological Foundation Models
  7. The NVIDIA source says: Grouped execution preserves the individual expert matrices but submits their work together. Efficient MoE Training for Biological Foundation Models

Editorial (AI-assisted; automatically checked, not human-reviewed). Each statement is linked to its source; check the source before relying on a detail.

  • mixture of experts
  • training
  • nvidia
  • kernels