Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no __version__ attribute #2188

Open
4 tasks
umbilnm opened this issue Feb 13, 2025 · 0 comments
Open
4 tasks

no __version__ attribute #2188

umbilnm opened this issue Feb 13, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@umbilnm
Copy link

umbilnm commented Feb 13, 2025

System Info

optimum version 1.24.0

Who can help?

No response

Information

  • The official example scripts
  • My own modified scripts

Tasks

  • An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
  • My own task or dataset (give details below)

Reproduction (minimal, reproducible, runnable)

import optimum
print(optimum.__version__)

Expected behavior

During development, I attempted to retrieve the library's version using the common convention of accessing the version attribute. However, I encountered an AttributeError indicating that the version attribute is not defined.

But it is available by using optimum.version.__version__. To enhance usability and align with common Python conventions, I suggest defining the __version__ attribute in the library's __init__.py file.

I am willing to submit a pull request to implement this enhancement if it is deemed appropriate.

@umbilnm umbilnm added the bug Something isn't working label Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant