Skip to content

Commit

Permalink
[[Misc]Upgrade bitsandbytes to the latest version 0.45.0 (#11201)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeejeelee authored Dec 15, 2024
1 parent 8869368 commit 15859f2
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ FROM vllm-base AS vllm-openai

# install additional dependencies for openai api server
RUN --mount=type=cache,target=/root/.cache/pip \
pip install accelerate hf_transfer 'modelscope!=1.15.0' 'bitsandbytes>=0.44.0' timm==0.9.10
pip install accelerate hf_transfer 'modelscope!=1.15.0' 'bitsandbytes>=0.45.0' timm==0.9.10

ENV VLLM_USAGE_SOURCE production-docker-image

Expand Down
2 changes: 1 addition & 1 deletion docs/source/quantization/bnb.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Below are the steps to utilize BitsAndBytes with vLLM.

.. code-block:: console
$ pip install bitsandbytes>=0.44.0
$ pip install bitsandbytes>=0.45.0
vLLM reads the model's config file and supports both in-flight quantization and pre-quantized checkpoint.

Expand Down
2 changes: 1 addition & 1 deletion requirements-test.in
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ datamodel_code_generator # required for minicpm3 test
lm-eval[api]==0.4.4 # required for model evaluation test

# quantization
bitsandbytes>=0.44.0
bitsandbytes>=0.45.0
buildkite-test-collector==0.1.9

numpy < 2.0.0
2 changes: 1 addition & 1 deletion requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ audioread==3.0.1
# via librosa
awscli==1.35.23
# via -r requirements-test.in
bitsandbytes==0.44.1
bitsandbytes>=0.45.0
# via -r requirements-test.in
black==24.10.0
# via datamodel-code-generator
Expand Down
8 changes: 4 additions & 4 deletions vllm/model_executor/layers/quantization/bitsandbytes.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,12 @@ class BitsAndBytesLinearMethod(LinearMethodBase):
def __init__(self, quant_config: BitsAndBytesConfig):
try:
import bitsandbytes
if bitsandbytes.__version__ < "0.44.0":
if bitsandbytes.__version__ < "0.45.0":
raise ImportError("bitsandbytes version is wrong. Please "
"install bitsandbytes>=0.44.0.")
"install bitsandbytes>=0.45.0.")
except ImportError as err:
raise ImportError("Please install bitsandbytes>=0.44.0 via "
"`pip install bitsandbytes>=0.44.0` to use "
raise ImportError("Please install bitsandbytes>=0.45.0 via "
"`pip install bitsandbytes>=0.45.0` to use "
"bitsandbytes quantizer.") from err

self.quant_config = quant_config
Expand Down

0 comments on commit 15859f2

Please sign in to comment.