KEMBAR78
[bitsandbytes] Simplify bnb int8 dequant by sayakpaul · Pull Request #10401 · huggingface/diffusers · GitHub
Skip to content

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.


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.

@sayakpaul sayakpaul requested a review from DN6 January 7, 2025 06:11
@sayakpaul
Copy link
Member Author

Cc: @a-r-r-o-w for awareness.

@sayakpaul
Copy link
Member Author

@yiyixuxu yiyixuxu added the roadmap Add to current release roadmap label Jan 20, 2025
Copy link
Collaborator

@DN6 DN6 left a comment

Choose a reason for hiding this comment

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

LGTM. I think the extra files that got included need to be removed?

@sayakpaul sayakpaul merged commit 5e8e6cb into main Feb 4, 2025
15 checks passed
@sayakpaul sayakpaul deleted the simplify-bnb-int8-dequant branch February 4, 2025 05:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

roadmap Add to current release roadmap

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

6 participants