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

[bitsandbytes] Simplify bnb int8 dequant #10401

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

sayakpaul
Copy link
Member

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.

@@ -205,6 +208,7 @@ def _create_accelerate_new_hook(old_hook):

def _dequantize_and_replace(
model,
dtype,
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 is a private method so signature modification should be fine.

@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.

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.

2 participants