Skip to content
New issue

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

KeyError: 'bunny-phi' #105

Open
jui0616 opened this issue Jul 11, 2024 · 2 comments
Open

KeyError: 'bunny-phi' #105

jui0616 opened this issue Jul 11, 2024 · 2 comments

Comments

@jui0616
Copy link

jui0616 commented Jul 11, 2024

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"]]

@Isaachhh
Copy link
Collaborator

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)

@dingtine
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants