Skip to content

pkg_resources deprecated #1380

Description

@PierreCarrier

At HPE, we work with a customer that needs to run gpt-neox, but we find that the following syntax is valid only for setuptools older than version 70 (69.5.1 seems to work). setuptools is currently at version 82:

https://github.com/EleutherAI/gpt-neox/blob/main/megatron/neox_arguments/arguments.py#L24

Google says to replace that above line, after installing packaging, with:

pip install packaging
from packaging import version

Then use version at lines like these (I'm not sure the exact syntax, I haven't tried it yet) :

https://github.com/EleutherAI/gpt-neox/blob/main/megatron/neox_arguments/arguments.py#L1151

I'm not sure what solution you want for this to work, but, we can't use any newer versions of setuptools because of that line. That'd be great if that line were to be modernized.

I contacted EleutherAI, Stella Biderman, by email and she said to file an issue on the github page...

Thank you,
Pierre.Carrier@hpe.com

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions