Skip to content

Commit bc3766e

Browse files
Merge pull request #616 from ROCm/IFU-dev-260419-v2.15
Ifu dev 260419 v2.15
2 parents 365ff10 + 81faf40 commit bc3766e

211 files changed

Lines changed: 26516 additions & 8351 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ repos:
4040
files: ^transformer_engine.*\.(c|cc|cxx|cpp|cu|cuh|h|hpp)$
4141

4242
- repo: https://github.com/netromdk/vermin
43-
rev: c75aca72f4e85c6e47252139e8695f1c8b5f9ae3
43+
rev: b70ff9611a01a2bf2f702aa537d14e71e330edba
4444
hooks:
4545
- id: vermin
4646
args: ['-t=3.10-', '--violations']

README.rst

Lines changed: 19 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -311,11 +311,15 @@ upstream CUTLASS implementation:
311311
Transformer Engine
312312
******************
313313

314-
`Quickstart <#examples>`_ | `Installation <#installation>`_ | `User Guide <https://docs.nvidia.com/deeplearning/transformer-engine/user-guide/index.html>`_ | `Examples <https://github.com/NVIDIA/TransformerEngine/tree/main/examples>`_ | `FP8 Convergence <#fp8-convergence>`_ | `Integrations <#integrations>`_ | `Release notes <https://docs.nvidia.com/deeplearning/transformer-engine/documentation-archive.html>`_
314+
`Quickstart <#examples>`_ | `Installation <#installation>`_ | `User Guide <https://docs.nvidia.com/deeplearning/transformer-engine/user-guide/index.html>`_ | `Examples <https://github.com/NVIDIA/TransformerEngine/tree/main/examples>`_ | `Convergence <#convergence>`_ | `Integrations <#integrations>`_ | `Release notes <https://docs.nvidia.com/deeplearning/transformer-engine/documentation-archive.html>`_
315315

316316
Latest News
317317
===========
318318

319+
* [12/2025] `NVIDIA Nemotron 3: Efficient and Open Intelligence <https://arxiv.org/abs/2512.20856>`_ - trained with NVFP4 on Transformer Engine
320+
* [11/2025] `NVIDIA Blackwell Architecture Sweeps MLPerf Training v5.1 Benchmarks <https://developer.nvidia.com/blog/nvidia-blackwell-architecture-sweeps-mlperf-training-v5-1-benchmarks/>`_
321+
* [11/2025] `Scale Biology Transformer Models with PyTorch and NVIDIA BioNeMo Recipes <https://developer.nvidia.com/blog/scale-biology-transformer-models-with-pytorch-and-nvidia-bionemo-recipes/>`_
322+
* [11/2025] `FP8 Training of Large-Scale RL Models <https://lmsys.org/blog/2025-11-25-fp8-rl/>`_
319323
* [09/2025] `Pretraining Large Language Models with NVFP4 <https://www.arxiv.org/pdf/2509.25149>`_
320324
* [09/2025] `Native FP8 Mixed Precision Training for Ling 2.0, Open Sourced! <https://huggingface.co/blog/im0qianqian/ling-mini-2-fp8-mixed-precision-training-solution>`_
321325
* [09/2025] `Faster Training Throughput in FP8 Precision with NVIDIA NeMo <https://developer.nvidia.com/blog/faster-training-throughput-in-fp8-precision-with-nvidia-nemo/>`_
@@ -342,7 +346,8 @@ What is Transformer Engine?
342346
343347
Transformer Engine (TE) is a library for accelerating Transformer models on NVIDIA GPUs, including
344348
using 8-bit floating point (FP8) precision on Hopper, Ada, and Blackwell GPUs, to provide better
345-
performance with lower memory utilization in both training and inference. TE provides a collection
349+
performance with lower memory utilization in both training and inference. On Blackwell GPUs, TE also
350+
supports MXFP8 (Microscaling FP8) and NVFP4 formats for even greater efficiency. TE provides a collection
346351
of highly optimized building blocks for popular Transformer architectures and an automatic mixed
347352
precision-like API that can be used seamlessly with your framework-specific code. TE also includes a
348353
framework agnostic C++ API that can be integrated with other deep learning libraries to enable FP8
@@ -370,6 +375,7 @@ Highlights
370375
* Easy-to-use modules for building Transformer layers with FP8 support
371376
* Optimizations (e.g. fused kernels) for Transformer models
372377
* Support for FP8 on NVIDIA Hopper, Ada, and Blackwell GPUs
378+
* Support for MXFP8 and NVFP4 on NVIDIA Blackwell GPUs
373379
* Support for optimizations across all precisions (FP16, BF16) on NVIDIA Ampere GPU architecture generations and later
374380

375381
Examples
@@ -502,12 +508,11 @@ We recommend updating to the latest NGC container available here:
502508
* https://catalog.ngc.nvidia.com/orgs/nvidia/containers/pytorch
503509
* https://catalog.ngc.nvidia.com/orgs/nvidia/containers/jax
504510

505-
If you run any examples, please ensure you are using a matching version of TransformerEngine. TransformerEngine is pre-built and packaged inside the containers with examples available at ``/opt/transformerengine`` or ``/opt/transformer-engine``. If you would like to use examples from TE main branch and are running into import errors, please try the latest pip package or building from source, although NGC containers are recommended for ease-of-use for most users.
511+
If you run any examples, please ensure you are using a matching version of TransformerEngine. TransformerEngine is pre-built and packaged inside the containers with examples available at ``/opt/transformerengine`` or ``/opt/transformer-engine``.
506512

507513
**Benefits of using NGC containers:**
508514

509515
* All dependencies pre-installed with compatible versions and optimized configurations
510-
* NGC PyTorch 23.08+ containers include FlashAttention-2
511516

512517
pip Installation
513518
^^^^^^^^^^^^^^^^
@@ -684,54 +689,43 @@ An example of this change is,
684689
False, False, True, True, True,
685690
False, False, False, False, True]
686691
687-
FP8 Convergence
688-
===============
692+
Convergence
693+
===========
689694

690-
FP8 has been tested extensively across different model architectures and configurations and we found **no significant difference** between FP8 and BF16 training loss curves. FP8 has also been validated for accuracy on downstream LLM tasks (e.g. LAMBADA and WikiText). Below are examples of models tested for convergence across different frameworks.
695+
FP8 and MXFP8 have been tested extensively across different model architectures and configurations and we found **no significant difference** between FP8/MXFP8 and BF16 training loss curves. FP8 and MXFP8 have also been validated for accuracy on downstream LLM tasks (e.g. LAMBADA and WikiText). Below are examples of models tested for convergence across different frameworks.
691696

692697
+------------+------------------+---------------------------------------------------------------------------------------------------------+
693698
| Model | Framework | Source |
694699
+============+==================+=========================================================================================================+
695-
| T5-770M | JAX/T5x | https://github.com/NVIDIA/JAX-Toolbox/tree/main/rosetta/rosetta/projects/t5x#convergence-and-performance|
696-
+------------+------------------+---------------------------------------------------------------------------------------------------------+
697700
| MPT-1.3B | Mosaic Composer | https://www.mosaicml.com/blog/coreweave-nvidia-h100-part-1 |
698701
+------------+------------------+---------------------------------------------------------------------------------------------------------+
699-
| GPT-5B | JAX/Paxml | https://github.com/NVIDIA/JAX-Toolbox/tree/main/rosetta/rosetta/projects/pax#h100-results |
700-
+------------+------------------+---------------------------------------------------------------------------------------------------------+
701-
| GPT-5B | NeMo Framework | Available on request |
702-
+------------+------------------+---------------------------------------------------------------------------------------------------------+
703702
| LLama2-7B | Alibaba Pai | https://mp.weixin.qq.com/s/NQT0uKXLbXyh5031zBdeBQ |
704703
+------------+------------------+---------------------------------------------------------------------------------------------------------+
705-
| T5-11B | JAX/T5x | Available on request |
704+
| LLM-8B | Megatron Core | https://arxiv.org/abs/2506.08027 |
706705
+------------+------------------+---------------------------------------------------------------------------------------------------------+
707706
| MPT-13B | Mosaic Composer | https://www.databricks.com/blog/turbocharged-training-optimizing-databricks-mosaic-ai-stack-fp8 |
708707
+------------+------------------+---------------------------------------------------------------------------------------------------------+
709-
| GPT-22B | NeMo Framework | Available on request |
708+
| MoE-16B | Megatron Core | https://arxiv.org/abs/2506.08027 |
710709
+------------+------------------+---------------------------------------------------------------------------------------------------------+
711710
| LLama2-70B | Alibaba Pai | https://mp.weixin.qq.com/s/NQT0uKXLbXyh5031zBdeBQ |
712711
+------------+------------------+---------------------------------------------------------------------------------------------------------+
713-
| GPT-175B | JAX/Paxml | https://github.com/NVIDIA/JAX-Toolbox/tree/main/rosetta/rosetta/projects/pax#h100-results |
714-
+------------+------------------+---------------------------------------------------------------------------------------------------------+
715712

716713
Integrations
717714
============
718715

719716
Transformer Engine has been integrated with popular LLM frameworks such as:
720717

721-
* `DeepSpeed <https://github.com/deepspeedai/DeepSpeed/blob/master/tests/unit/runtime/half_precision/test_fp8.py>`_
718+
* `DeepSpeed <https://github.com/deepspeedai/DeepSpeed>`_
722719
* `Hugging Face Accelerate <https://huggingface.co/docs/accelerate/main/en/usage_guides/low_precision_training#configuring-transformersengine>`_
723-
* `Lightning <https://github.com/Lightning-AI/lightning/issues/17172>`_
720+
* `Lightning <https://lightning.ai/docs/pytorch/stable/common/precision.html>`_
724721
* `MosaicML Composer <https://github.com/mosaicml/composer/releases/tag/v0.13.1>`_
725722
* `NVIDIA JAX Toolbox <https://github.com/NVIDIA/JAX-Toolbox>`_
726723
* `NVIDIA Megatron-LM <https://github.com/NVIDIA/Megatron-LM>`_
727-
* `NVIDIA NeMo Framework <https://github.com/NVIDIA/NeMo-Megatron-Launcher>`_
724+
* `NVIDIA NeMo Megatron Bridge <https://github.com/NVIDIA-NeMo/Megatron-Bridge>`_
728725
* `Amazon SageMaker Model Parallel Library <https://docs.aws.amazon.com/sagemaker/latest/dg/model-parallel-core-features-v2-tensor-parallelism.html>`_
729726
* `Levanter <https://github.com/stanford-crfm/levanter>`_
730727
* `GPT-NeoX <https://github.com/EleutherAI/gpt-neox>`_
731-
* `Hugging Face Nanotron <https://github.com/huggingface/nanotron>`_ - Coming soon!
732-
* `Colossal-AI <https://github.com/hpcaitech/ColossalAI>`_ - Coming soon!
733-
* `PeriFlow <https://github.com/friendliai/periflow-python-sdk>`_ - Coming soon!
734-
728+
* `Hugging Face Nanotron <https://github.com/huggingface/nanotron>`_
735729

736730
Contributing
737731
============
@@ -750,7 +744,7 @@ Papers
750744
Videos
751745
======
752746

753-
* `Stable and Scalable FP8 Deep Learning Training on Blackwell | GTC 2025 <https://www.nvidia.com/en-us/on-demand/session/gtc24-s62457/>`__
747+
* `Stable and Scalable FP8 Deep Learning Training on Blackwell | GTC 2025 <https://www.nvidia.com/en-us/on-demand/session/gtc25-s72778/>`_
754748
* `Blackwell Numerics for AI | GTC 2025 <https://www.nvidia.com/en-us/on-demand/session/gtc25-s72458/>`_
755749
* `Building LLMs: Accelerating Pretraining of Foundational Models With FP8 Precision | GTC 2025 <https://www.nvidia.com/gtc/session-catalog/?regcode=no-ncid&ncid=no-ncid&tab.catalogallsessionstab=16566177511100015Kus&search=zoho#/session/1726152813607001vnYK>`_
756750
* `From FP8 LLM Training to Inference: Language AI at Scale | GTC 2025 <https://www.nvidia.com/en-us/on-demand/session/gtc25-s72799/>`_

0 commit comments

Comments
 (0)