{"data":{"slug":"nvidia-transformerengine","name":"TransformerEngine","tagline":"A library for accelerating Transformer models on NVIDIA GPUs using low precision formats like FP8 and FP4.","github_url":"https://github.com/NVIDIA/TransformerEngine","owner":"NVIDIA","repo":"TransformerEngine","owner_avatar_url":"https://avatars.githubusercontent.com/u/1728152?v=4","primary_language":"Python","stars":3576,"forks":861,"topics":["cuda","deep-learning","fp4","fp8","gpu","jax","machine-learning","python","pytorch"],"archived":false,"github_pushed_at":"2026-10-13T03:42:33+00:00","maintenance_label":"Very active","stars_delta_30d":52,"url":"https://www.graphcanon.com/tools/nvidia-transformerengine","markdown_url":"https://www.graphcanon.com/tools/nvidia-transformerengine.md","api_url":"https://www.graphcanon.com/api/graphcanon/tools/nvidia-transformerengine","graph_url":"https://www.graphcanon.com/api/graphcanon/graph?tool=nvidia-transformerengine","description":"A library for accelerating Transformer models on NVIDIA GPUs, including using 8-bit and 4-bit floating point (FP8 and FP4) precision on Hopper, Ada and Blackwell GPUs, to provide better performance with lower memory utilization in both training and inference.","homepage_url":"https://docs.nvidia.com/deeplearning/transformer-engine/","license":"Apache-2.0","open_issues":360,"watchers":37,"ai_summary":"TransformerEngine is a Python-based library by NVIDIA, focused on enhancing the performance of Transformer models through low-precision computation techniques (FP8 and FP4) on compatible GPUs. It supports frameworks such as PyTorch and JAX, aiming for better training and inference throughput with reduced memory footprint.","readme_excerpt":"..\n    Copyright (c) 2022-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n\n    See LICENSE for license information.\n\nTransformer Engine\n==================\n\n|PyPI| |Documentation| |License|\n\n`Quick start <#quick-start>`_ | `User guide <https://docs.nvidia.com/deeplearning/transformer-engine/index.html>`_ | `PyTorch API <https://docs.nvidia.com/deeplearning/transformer-engine/api/pytorch.html>`_ | `JAX API <https://docs.nvidia.com/deeplearning/transformer-engine/api/jax.html>`_ | `Examples <https://github.com/NVIDIA/TransformerEngine/tree/main/examples>`_ | `Releases <https://github.com/NVIDIA/TransformerEngine/releases>`_\n\nWhat is Transformer Engine?\n===========================\n.. overview-begin-marker-do-not-remove\n\nTransformer Engine (TE) is an NVIDIA library for accelerating Transformer model training on NVIDIA GPUs.\nIt combines optimized building blocks and fused kernels with automatic mixed-precision-style APIs\nfor PyTorch and JAX, so low-precision training can be adopted without rewriting a training stack.\n\nTransformer Engine manages the scaling factors, amax histories, and quantization metadata required\nby low-precision recipes. Its modules cover attention, linear layers, normalization, Mixture-of-Experts\n(MoE), and communication operations used in large-scale distributed training.\n\nHighlights\n==========\n\n* FP8 training on NVIDIA Hopper, Ada, Blackwell, and Rubin GPUs.\n* MXFP8 and NVFP4 training on NVIDIA Blackwell GPUs.\n* Optimized attention, GEMM, normalization, quantization, and fused Transformer and MoE modules.\n* PyTorch and JAX APIs with autocast-style contexts and configurable low-precision recipes.\n* Support for tensor, sequence, context, and EP, including communication overlap.\n* FP16 and BF16 optimizations on NVIDIA Ampere architecture GPUs and later.\n\n.. overview-end-marker-do-not-remove\n\nNews\n====\n\n* **[09/2026]** `Transformer Engine v2.19 <https://github.com/NVIDIA/TransformerEngine/releases/tag/v2.19>`_ adds Rubin support, hybrid quantization, MXFP8 EP communication, and expanded FP8 attention support.\n* **[09/2026]** `Accelerating Dropless MoE Training in JAX with NVIDIA Transformer Engine <https://developer.nvidia.com/blog/accelerating-dropless-moe-training-in-jax-with-nvidia-transformer-engine/>`_ describes optimized JAX MoE training on GB200 and GB300 systems.\n* **[08/2026]** `Transformer Engine v2.18 <https://github.com/NVIDIA/TransformerEngine/releases/tag/v2.18>`_ adds FP8 block scaling in PyTorch, zero-copy EP, and CUDA Graph support for THD attention.\n* **[07/2026]** `Transformer Engine v2.17 <https://github.com/NVIDIA/TransformerEngine/releases/tag/v2.17>`_ introduces NCCL-backed EP for PyTorch and JAX, faster MoE routing, and a JAX Flax MoE block.\n* **[06/2026]** `Boosting MoE Training Throughput with Advanced Fusion Kernels <https://developer.nvidia.com/blog/boosting-moe-training-throughput-with-advanced-fusion-kernels/>`_ shows how fused Transformer Engine operations accelerate MoE training.\n\nSee the `project updates archive <docs/project_updates.rst>`_ for earlier news.\n\nQuick start\n===========\n\nInstall the latest stable release for your framework:\n\n.. code-block:: bash\n\n    # PyTorch\n    pip install --no-build-isolation \"transformer_engine[pytorch]\"\n\n    # JAX\n    pip install --no-build-isolation \"transformer_engine[jax]\"\n\nFor a ready-to-run environment, use an NVIDIA NGC framework container. Replace ``<YY.MM>`` with a\ncontainer release listed in the `NVIDIA Deep Learning Frameworks Support Matrix <https://docs.nvidia.com/deeplearning/frameworks/support-matrix/index.html>`_.\n\n.. code-block:: bash\n\n    docker run --gpus all -it --rm nvcr.io/nvidia/pytorch:<YY.MM>-py3\n    docker run --gpus all -it --rm nvcr.io/nvidia/jax:<YY.MM>-py3\n\nContinue with the `PyTorch and JAX getting started guide <https://docs.nvidia.com/deeplearning/transformer-engine/getting_started/index.html>`_.\nFor prerequisites, source builds, environment variables, and troubleshooting, see the\n`installation guide <h","github_created_at":"2022-09-20T15:20:26+00:00","created_at":"2026-07-11T10:36:30.002767+00:00","updated_at":"2026-10-13T06:00:50.983833+00:00","categories":[{"slug":"inference-serving","name":"Inference & Serving","url":"https://www.graphcanon.com/categories/inference-serving","markdown_url":"https://www.graphcanon.com/categories/inference-serving.md","api_url":"https://www.graphcanon.com/api/graphcanon/categories/inference-serving"},{"slug":"model-training","name":"Model Training","url":"https://www.graphcanon.com/categories/model-training","markdown_url":"https://www.graphcanon.com/categories/model-training.md","api_url":"https://www.graphcanon.com/api/graphcanon/categories/model-training"}],"tags":[{"slug":"cuda","name":"cuda"},{"slug":"deep-learning","name":"deep-learning"},{"slug":"fp4","name":"fp4"},{"slug":"fp8","name":"fp8"},{"slug":"gpu","name":"gpu"},{"slug":"jax","name":"jax"},{"slug":"machine-learning","name":"machine-learning"},{"slug":"pytorch","name":"pytorch"}],"trust":{"provenance":{"is_fork":false,"github_id":539057023,"owner_type":"Organization","methodology":"github_public_v1","parent_repo":null,"near_duplicate_slugs":[]},"computed_at":"2026-10-13T06:00:50.031Z","maintenance":{"label":"Very active","score":96,"methodology":"github_public_v1","releases_90d":5,"days_since_push":0,"last_release_at":"2026-10-05T21:14:28Z","stars_delta_30d":52,"open_issues_delta_30d":17},"security_summary":{"last_scan_at":"2026-07-11T10:36:32.585034+00:00","scan_profile":"deps","status":"no_lockfile","critical_count":0,"high_count":0,"medium_count":0,"low_count":0,"scanner":"osv@v1","scan_id":"930daa28-db8e-44fb-9f5d-3fed2315b509","pending_review_count":0}},"capability_facts":{"scan":{"source":"repo_scan","observed_at":"2026-10-13T06:00:50.602Z"},"languages":{"value":["python"],"source":"github.language+pyproject.toml","observed_at":"2026-10-13T06:00:50.602Z"},"license_spdx":{"value":"Apache-2.0","source":"github.license","observed_at":"2026-10-13T06:00:50.602Z"}},"decision_facts":{"hosting":null,"pricing":null,"requirements":null,"constraints":null,"when_to_use":["If you need high-throughput training or inference of Transformer models specifically on compatible NVIDIA GPUs (Hopper, Ada, Blackwell).","For projects requiring low-precision computation techniques without significant loss in accuracy."],"when_not_to_use":["Avoid if your project is not running on NVIDIA's Hopper, Ada, or Blackwell GPUs.","If memory usage isn't a critical concern and you prefer higher precision over speed optimization."],"source":"enrich:decision_facts","observed_at":"2026-07-12T12:27:52.029Z"},"constraint_facets":null,"decision_summary":[{"label":"Adopt for","value":"Unverified catalog guidance: TransformerEngine optimizes Transformer model performance with FP8/FP4 precision on NVIDIA GPUs like Hopper, Ada, and Blackwell, boosting throughput and reducing memory usage."}]}}