报错明细
User
ImportError Traceback (most recent call last)
<ipython-input-8-bcbf3706e26d> in <cell line: 24>()
22 )
23
---> 24 model = transformers.AutoModelForCausalLM.from_pretrained(
25 model_id,
26 trust_remote_code=True,
2 frames
/usr/local/lib/python3.10/dist-packages/transformers/quantizers/quantizer_bnb_4bit.py in validate_environment(self, *args, **kwargs)
60 def validate_environment(self, *args, **kwargs):
61 if not (is_accelerate_available() and is_bitsandbytes_available()):
---> 62 raise ImportError(
63 "Using `bitsandbytes` 8-bit quantization requires Accelerate: `pip install accelerate` "
64 "and the latest version of bitsandbytes: `pip install -i https://pypi.org/simple/ bitsandbytes`"
ImportError: Using `bitsandbytes` 8-bit quantization requires Accelerate: `pip install accelerate` and the