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

Add version attribute as per Python convention #710

Merged
merged 3 commits into from
Jan 2, 2024

Conversation

rasbt
Copy link
Contributor

@rasbt rasbt commented Aug 16, 2023

Just a simple PR so that bitsandbytes has a version attribute, which is common in Python scientific computing libraries (PyTorch, NumPy, scikit-learn, pandas, ...)

So, this PR allows the following now:

>>> import bitsandbytes as bnb
>>> print(bnb.__version__)
"0.41.0"

@poedator
Copy link
Contributor

poedator commented Nov 8, 2023

@rasbt , it is not critical, but a very convenient feature. I'd like to see it merged. Could you check the reasons for the merge conflict, please?

@poedator
Copy link
Contributor

@Titus-von-Koeller , would it be possible to merge this PR somehow? -- it would be helpful in situations when we test multiple bnb versions like 0.41.3.post1.

@rasbt
Copy link
Contributor Author

rasbt commented Dec 11, 2023

@rasbt , it is not critical, but a very convenient feature. I'd like to see it merged. Could you check the reasons for the merge conflict, please?

It was a minor issue due to to the latest BnB update overwriting a line in this PR. Should be fixed.

Copy link
Collaborator

@Titus-von-Koeller Titus-von-Koeller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Please fix minor comment. Will merge in the morning.

This is a good idea. Thanks a lot for your contribution!

@TimDettmers
Copy link
Collaborator

Thank you, this is a good idea! Sorry for taking so long.

@TimDettmers TimDettmers merged commit e8a42e4 into bitsandbytes-foundation:main Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants