Transformer Engine
FreeA library for accelerating Transformer model training on NVIDIA GPUs.
About Transformer Engine
Transformer Engine (TE) is an open-source library developed by NVIDIA for accelerating Transformer models on NVIDIA GPUs, including support for 8-bit floating point (FP8) precision on Hopper, Ada, and Blackwell architectures. It also introduces NVFP4 and MXFP8 formats on Blackwell GPUs to further improve efficiency and memory utilization. TE provides highly optimized building blocks for popular Transformer architectures, an automatic mixed precision-like API for seamless integration with framework-specific code, and a framework-agnostic C++ API for adding FP8 support to other deep learning libraries. It is designed to reduce memory and compute demands for large-scale models such as large language models, mixture-of-experts (MoE) architectures, and multimodal models during both training and inference.
Key Features
Pros & Cons
- Delivers significant speedups and lower memory utilization compared to FP32/FP16 training
- Leverages latest NVIDIA GPU architectures (Hopper, Ada, Blackwell) for optimal performance
- Open-source and freely available on GitHub
- Easy integration with popular frameworks like PyTorch and JAX via automatic mixed precision-like API
- Actively maintained by NVIDIA with regular updates and community support
- Supports both training and inference with the same optimized kernels
- Requires compatible NVIDIA GPUs (Hopper, Ada, or Blackwell) to utilize FP8/NVFP4 features
- Primarily focused on Transformer architectures; limited support for other model types
- May require additional tuning to achieve optimal accuracy when using very low precision (e.g., NVFP4)