Skip to content

Conversation

@SunMarc
Copy link
Member

@SunMarc SunMarc commented Oct 2, 2025

What does this PR do?

This PR cleans bitsandbytes integration as we bump the min version. With the multi-backend integrated in bitsanbytes for a few versions, I think we can safely bump to 0.46.1 as vllm did. I also removed a bunch as deprecated code

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Contributor

@MekkCyber MekkCyber left a comment

Choose a reason for hiding this comment

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

Very very nice ! Thanks for the cleaning

Comment on lines 89 to 93
if not is_torch_available():
raise ImportError(
"The bitsandbytes library requires PyTorch but it was not found in your environment. "
"You can install it with `pip install torch`."
)
Copy link
Contributor

Choose a reason for hiding this comment

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

why removing the torch check ?

Copy link
Member Author

Choose a reason for hiding this comment

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

this shouldn't be needed tbh as torch is the only backend available for v5. We didn't put it for other quantizers btw

Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds good

Copy link
Member

@matthewdouglas matthewdouglas left a comment

Choose a reason for hiding this comment

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

Thanks for cleaning all of this up!

@SunMarc SunMarc requested a review from ArthurZucker October 2, 2025 14:09
@SunMarc SunMarc changed the title Bump min version of bitsandbytes to 0.46.1 [v5] Bump min version of bitsandbytes to 0.46.1 Oct 3, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Oct 7, 2025

[For maintainers] Suggested jobs to run (before merge)

run-slow: bnb

@SunMarc
Copy link
Member Author

SunMarc commented Oct 7, 2025

run-slow: bnb

@github-actions
Copy link
Contributor

github-actions bot commented Oct 7, 2025

This comment contains run-slow, running the specified jobs:

models: []
quantizations: ['quantization/bnb'] ...

@SunMarc
Copy link
Member Author

SunMarc commented Oct 8, 2025

All tests are passing !

@SunMarc SunMarc merged commit 13791d8 into main Oct 8, 2025
27 checks passed
@SunMarc SunMarc deleted the bump-min-version-of-bitsandbytes branch October 8, 2025 10:04
snorkelopstesting1-a11y pushed a commit to snorkel-marlin-repos/huggingface_transformers_pr_41283_77f395cf-9a0d-40a1-8f4d-8850942b7f0d that referenced this pull request Oct 11, 2025
snorkelopstesting1-a11y added a commit to snorkel-marlin-repos/huggingface_transformers_pr_41283_77f395cf-9a0d-40a1-8f4d-8850942b7f0d that referenced this pull request Oct 11, 2025
snorkelopstesting1-a11y pushed a commit to snorkel-marlin-repos/huggingface_transformers_pr_41283_2b1fe0e3-c8bd-4b56-af6b-5fc12ad4e35d that referenced this pull request Oct 11, 2025
snorkelopstesting1-a11y added a commit to snorkel-marlin-repos/huggingface_transformers_pr_41283_2b1fe0e3-c8bd-4b56-af6b-5fc12ad4e35d that referenced this pull request Oct 11, 2025
AhnJoonSung pushed a commit to AhnJoonSung/transformers that referenced this pull request Oct 12, 2025
* bump bitsandbytes to 0.46.1

* huge cleanup

* style

* fix

* req

* fix

* importerror

* fix
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.

5 participants