-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
[bitsandbytes] Simplify bnb int8 dequant #10401
base: main
Are you sure you want to change the base?
Conversation
@@ -205,6 +208,7 @@ def _create_accelerate_new_hook(old_hook): | |||
|
|||
def _dequantize_and_replace( | |||
model, | |||
dtype, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a private method so signature modification should be fine.
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. |
Cc: @a-r-r-o-w for awareness. |
@DN6 this will also fix https://github.com/huggingface/diffusers/actions/runs/12700836694/job/35404284413#step:7:266. Could you take a look? |
What does this PR do?
With the current code and latest
bitsandbytes
installation,tests/quantization/bnb/test_mixed_int8.py::SlowBnb8bitTests::test_generate_quality_dequantize
will fail with the following error:Error
Only row-major format inputs are supported, but got format `col32`
See internal link: https://huggingface.slack.com/archives/C04NNCRFYUQ/p1735231882230089.
Similar to huggingface/transformers#35068.