From the source
Amazon engineers describe kernel optimizations for fused Mixture-of-Experts models on SageMaker AI, targeting the
NVIDIA Hopper GPU architecture to reduce latency and cost.
- The post explains that MoE operations account for a large share of total compute time, and inefficiencies directly raise request latency and cost.
- A key technique, Swap-AB, transposes matrices to align with the WGMMA instruction protocol, which requires the first operand's row dimension to be at least 64.
- During the decode phase, when batch size is often one token, the standard layout leaves Tensor Cores underutilized; the transposition moves the large expert dimension into the primary slot.
- The work is demonstrated using a representative MoE model, and the optimizations are available to SageMaker AI users.






