Open
Description
NameError Traceback (most recent call last)
[<ipython-input-42-77feb2eb4300>](https://localhost:8080/#) in <module>
1 from transformers import AutoTokenizer, OPTForCausalLM
2 tokenizer = AutoTokenizer.from_pretrained("facebook/galactica-125m")
----> 3 model = OPTForCausalLM.from_pretrained("facebook/galactica-125m", device_map="auto")
[/usr/local/lib/python3.8/dist-packages/transformers/modeling_utils.py](https://localhost:8080/#) in from_pretrained(cls, pretrained_model_name_or_path, *model_args, **kwargs)
2357 init_contexts = [deepspeed.zero.Init(config_dict_or_path=deepspeed_config())] + init_contexts
2358 elif load_in_8bit or low_cpu_mem_usage:
-> 2359 init_contexts.append(init_empty_weights())
2360
2361 with ContextManagers(init_contexts):
NameError: name 'init_empty_weights' is not defined
I've installed the latest version of accelerate
and transformers
, no other libraries
Metadata
Metadata
Assignees
Labels
No labels