NVIDIA / TransformerEngine

A library for accelerating Transformer models on NVIDIA GPUs, including using 8-bit floating point (FP8) precision on Hopper and Ada GPUs, to provide better performance with lower memory utilization in both training and inference.
https://docs.nvidia.com/deeplearning/transformer-engine/user-guide/index.html
Apache License 2.0
1.6k stars 255 forks source link

[PyTorch] Fix tp_group_initialized error #939

Closed cyanguwa closed 2 weeks ago

cyanguwa commented 2 weeks ago

Description

Add appropriate logic for tp_group_initialized after making DotProductAttention a TransformerEngineBaseModule.

Type of change

Changes

Please list the changes introduced in this PR:

Checklist:

cyanguwa commented 2 weeks ago

/te-ci pytorch