Skip to content
AI Learning Ground Start learning

News ·

Efficient MoE Training for Biological Foundation Models

NVIDIA detailed a BioNeMo MoE training recipe that uses Transformer Engine's GroupedLinear, fused MXFP8 GroupedMLP kernels, and 8-bit block-scaled precision, reaching up to 2.21x Hugging Face baseline throughput on eight B200 GPUs.

DNA.
Image: NVIDIA

NVIDIA published a tutorial on efficiently training mixture-of-experts biological foundation models using its BioNeMo MoE recipe and Transformer Engine. MoE architectures activate only a subset of expert subnetworks per token, scaling capacity more efficiently than dense transformers, but benefits depend heavily on implementation since fragmented expert computation can reduce GPU utilization.

The recipe addresses three bottlenecks. First, TE's GroupedLinear submits multiple expert GEMMs as one grouped operation instead of launching separate kernels per expert via a Python loop, as the Hugging Face baseline does. Second, MXFP8 block-scaled 8-bit precision, which assigns a scaling factor to each block of 32 values, cuts memory use versus BF16 and is hardware-accelerated on Blackwell GPUs. Third, the TE Sequential API fuses GroupedLinear, ScaledSwiGLU, routing-weight scaling, and dequantization into a single ForwardGroupedMLP_CuTeGEMMSwiGLU_MXFP8 kernel, avoiding intermediate materialization.

In a benchmark on eight NVIDIA B200 Tensor Core GPUs, the recipe delivered up to 2.21x the throughput of the Hugging Face baseline. Requirements include a CUDA-enabled environment, at least two GPUs for expert parallelism, and Blackwell GPUs for the fused MXFP8 GroupedMLP kernel. For builders training large MoE models, especially genomics workloads with long sequences that stress activation memory, the recipe offers a practical reference for combining grouped expert computation, kernel fusion, and low-precision training.

References

  • NVIDIA · developer.nvidia.com

Read the full story at NVIDIA ↗Like, save or discuss on Buzz

#hardware #inference