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.61k stars 256 forks source link

[PyTorch] reverting autocast API back to PyTorch v2.3.1 and below #921

Closed denera closed 3 weeks ago

denera commented 3 weeks ago

Description

PR #916 prematurely updated PyTorch autocast API to v 2.4.0-RC. This PR reverts it back to the API in v2.3.1 and older.

Type of change

Changes

Checklist: