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

[PyTorch] Replaced deprecated `pkg_resources` with `packaging` #860

Closed denera closed 4 months ago

denera commented 4 months ago

Description

pkg_resources has been deprecated a while ago, and the deprecation warning turned into an error with a recent setuptools update. This PR replaces pkg_resources.packaging.Version in pytorch/attention.py with packaging.version.Version and adds packaging as an install dependency in `setup.py.

Type of change

Changes

Checklist: