Aivora
NVIDIA DeveloperLLMAdvanced

Accelerating MoE Training for Biological Foundation Models with NVIDIA Transformer Engine

NVIDIA Transformer Engine 加速生物基礎模型 MoE 訓練:吞吐量提升達 2.21 倍

2 min read
Accelerating MoE Training for Biological Foundation Models with NVIDIA Transformer Engine
The 30-second version

As biological foundation models scale, Mixture-of-Experts (MoE) architectures help expand capacity but suffer from GPU kernel launch overhead and high memory footprints. NVIDIA addresses this via Transformer Engine (TE) by using GroupedLinear to batch expert GEMMs, utilizing MXFP8 block scaling to save memory, and employing the Sequential API to fuse linear projections, SwiGLU, and routing scaling into a single GroupedMLP kernel, yielding up to 2.21x training throughput on B200 GPUs.

Key points

01

GroupedLinear Reduces Launch Overhead

Replaces naive Python loops with GroupedLinear to execute GEMM operations for multiple experts in a single call, minimizing GPU scheduling overhead.

02

MXFP8 Low-Precision Block Scaling

Enables hardware-accelerated MXFP8 training on Blackwell GPUs, scaling values in blocks of 32 to preserve numerical accuracy while cutting memory usage.

03

Fused GroupedMLP Kernel

Fuses quantization, SwiGLU activation, and routing scaling using the TE Sequential API, avoiding intermediate data materialization for peak efficiency.

04

Significant Throughput Gains

Delivers up to 2.21x the training throughput compared to the Hugging Face baseline in Mixtral-8x7B benchmarks on eight B200 GPUs.

How it works

Hugging Face Baseline vs. NVIDIA Transformer Engine Optimization
Hugging Face BaselineNVIDIA Transformer Engine (TE)
Expert ExecutionPython 迴圈依序啟動 (Naive loop)GroupedLinear 批次提交 (Grouped GEMM)
Data PrecisionBF16 (16位元)MXFP8 (8位元區塊縮放,適用於 Blackwell)
Kernel Optimization無融合,產生大量過渡資料融合 GroupedMLP (融合量化、SwiGLU 與路由)
Training Throughput1.0x (基準點)高達 2.21x (在 8 顆 B200 GPU 上)

Why it matters

Biological foundation models for genomics and proteomics require long sequences and massive parameter scales, making dense training prohibitively expensive. While MoE architectures save compute, they suffer from GPU underutilization due to expert routing overhead. NVIDIA's optimized pipeline allows life sciences researchers to train massive models on Blackwell GPUs efficiently, accelerating genomic research and drug discovery timelines.

Who it affects

  • AI Developer
  • AI Researcher
  • Enterprise Leader

How to use it

  1. 1Training large-scale biological foundation models for genomics or proteomics.
  2. 2Training multi-billion parameter Mixtral MoE models using Expert Parallelism (EP) and FSDP under memory constraints.

Limitations & caveats

  • Utilizing the fused MXFP8 GroupedMLP kernel requires specific NVIDIA Blackwell GPUs to leverage hardware acceleration.
  • Training requires at least two GPUs to implement expert parallelism (EP), making it unsuitable for single-GPU development setups.

Related