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.85k stars 309 forks source link

Avoid framework specific import from top level #862

Closed ksivaman closed 2 months ago

ksivaman commented 4 months ago

Description

When the user calls import transformer_engine, we check for available frameworks in the top level __init__.py file. However, this is unnecessary. The user side code from, e.g. transformer_engine.pytorch import ... remains unchanged. See #839 for details.

Fixes # (issue)

Type of change

Changes

Removes framework specific imports from top level init file.

Checklist: