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

Error(s) in loading state_dict for LlamaForCausalLM #432

Open
jamartinh opened this issue Feb 17, 2024 · 0 comments
Open

Error(s) in loading state_dict for LlamaForCausalLM #432

jamartinh opened this issue Feb 17, 2024 · 0 comments

Comments

@jamartinh
Copy link

Hi with some models I experience the following error:

RuntimeError: Error(s) in loading state_dict for LlamaForCausalLM:
	size mismatch for model.layers.0.self_attn.k_proj.weight: copying a param with shape torch.Size([256, 2048]) from checkpoint, the shape in current model is torch.Size([2048, 2048]).

Code is:

python my_model = ModelCatalog().load_model("llmware/slim-emotions")

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

1 participant