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: upgrade and enable CUDA Graphs for 4bit by default #2834

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

matthewdouglas
Copy link
Member

@matthewdouglas matthewdouglas commented Dec 12, 2024

What does this PR do?

This PR sets the new minimum requirement for bitsandbytes to the most recent release, v0.45.0. from v0.43.0.

CUDA Graphs support for 4bit was enabled in v0.44.0, and as such this PR additionally turns this on by default for bitsandbytes-nf4 and bitsandbytes-fp4 quantization options.

The v0.45.0 release brings H100 compatibility for 8bit along with significant performance improvements.

Additionally, there are minor documentation changes, as well as some cleanup in Linear8bitLt and Linear4bit.

Fixes #2467, #780, #504

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you read the contributor guideline,
    Pull Request section?
  • Was this discussed/approved via a Github issue or the forum? Please add a link
    to it if that's the case.
  • Did you make sure to update the documentation with your changes? Here are the
    documentation guidelines, and
    here are tips on formatting docstrings.
  • Did you write any new necessary tests?

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@OlivierDehaene @Narsil

cc: @Titus-von-Koeller

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

@matthewdouglas
Copy link
Member Author

For reference, vLLM has upgraded to 0.45.0 and some benchmarks are located here.

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.

Quantization Failure with Bitsandbytes on SageMaker TGI Deployment: Compatibility Issue?
2 participants