You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to run instruction_tuning.ipynb with a custom csv. Though I have't gotten to the part of custom data yet, I'm getting issue in the below code,
model = AutoModelForCausalLM.from_pretrained(
BASE_MODEL,
device_map="auto",
load_in_8bit=True,
trust_remote_code=True,
)
1 frames /usr/local/lib/python3.10/dist-packages/transformers/modeling_utils.py in from_pretrained(cls, pretrained_model_name_or_path, config, cache_dir, ignore_mismatched_sizes, force_download, local_files_only, token, revision, use_safetensors, *model_args, **kwargs)
2399 if load_in_8bit or load_in_4bit:
2400 if not (is_accelerate_available() and is_bitsandbytes_available()):
-> 2401 raise ImportError(
2402 "Using load_in_8bit=True requires Accelerate: pip install accelerate and the latest version of"
2403 " bitsandbytes pip install -i https://test.pypi.org/simple/ bitsandbytes or"
ImportError: Using load_in_8bit=True requires Accelerate: pip install accelerate and the latest version of bitsandbytes pip install -i https://test.pypi.org/simple/ bitsandbytes or pip install 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.
I have executed the below pip installs and restart the collab.
I'm trying to run
instruction_tuning.ipynb
with a custom csv. Though I have't gotten to the part of custom data yet, I'm getting issue in the below code,The error is,
I have executed the below pip installs and restart the collab.
Is it known issue? If so any idea on getting it fixed?
The text was updated successfully, but these errors were encountered: