We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ImportError Traceback (most recent call last) in <cell line: 0>() 2 3 quantization_config = BitsAndBytesConfig(load_in_8bit=True) ----> 4 model = AutoModelForCausalLM.from_pretrained(model_name, quantization_config=quantization_config, device_map="auto")
2 frames /usr/local/lib/python3.11/dist-packages/transformers/quantizers/quantizer_bnb_8bit.py in validate_environment(self, *args, **kwargs) 71 ) 72 if not is_bitsandbytes_available(): ---> 73 raise ImportError( 74 "Using bitsandbytes 8-bit quantization requires the latest version of bitsandbytes: pip install -U bitsandbytes" 75 )
bitsandbytes
pip install -U bitsandbytes
ImportError: Using bitsandbytes 8-bit quantization requires the latest version of bitsandbytes: pip install -U bitsandbytes
NOTE: If your import is failing due to a missing package, you can manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the "Open Examples" button below.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
ImportError Traceback (most recent call last)
in <cell line: 0>()
2
3 quantization_config = BitsAndBytesConfig(load_in_8bit=True)
----> 4 model = AutoModelForCausalLM.from_pretrained(model_name, quantization_config=quantization_config, device_map="auto")
2 frames
/usr/local/lib/python3.11/dist-packages/transformers/quantizers/quantizer_bnb_8bit.py in validate_environment(self, *args, **kwargs)
71 )
72 if not is_bitsandbytes_available():
---> 73 raise ImportError(
74 "Using
bitsandbytes
8-bit quantization requires the latest version of bitsandbytes:pip install -U bitsandbytes
"75 )
ImportError: Using
bitsandbytes
8-bit quantization requires the latest version of bitsandbytes:pip install -U bitsandbytes
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.
To view examples of installing some common dependencies, click the
"Open Examples" button below.
The text was updated successfully, but these errors were encountered: