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
model = AutoModelForCausalLM.from_pretrained(
'./check/BAAI/Bunny-v1___0-3B', # local path to Bunny-v1.0-3B
torch_dtype=torch.float16, # float32 for cpu
device_map='auto',
trust_remote_code=True)
When I load the pre trained model locally, KeyError: 'bunny-phi' occurs
`model = AutoModelForCausalLM.from_pretrained(
model_name = 'BAAI/Bunny-v1_0-3B',
torch_dtype=torch.float16, # float32 for cpu
device_map='auto',
trust_remote_code=True,
pretrained_model_name_or_path="./check/BAAI/Bunny-v1___0-3B").to(device)
tokenizer = AutoTokenizer.from_pretrained(
pretrained_model_name_or_path="./check/BAAI/Bunny-v1___0-3B",
).to(device)
`
pretrained_model_name_or_path="./check/BAAI/Bunny-v1___0-3B").to(device)
pretrained_model_name_or_path, return_unused_kwargs=True, **kwargs
config_class = CONFIG_MAPPING[config_dict["model_type"]]
The text was updated successfully, but these errors were encountered: