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

State_Dict Size Mismatch Error #28

Open
mmdrahmani opened this issue Feb 13, 2025 · 0 comments
Open

State_Dict Size Mismatch Error #28

mmdrahmani opened this issue Feb 13, 2025 · 0 comments

Comments

@mmdrahmani
Copy link

Hi Again
I used float16 in the parameter setting and I can load the model into memory. However, when I run the demo, I get this error:
Error(s) in loading state_dict for LLaMA: size mismatch for transformer.h.0.attn.c_attn.lora_A: copying a param with shape torch.Size([128, 5120]) from checkpoint, the shape in current model is torch.Size([128, 4096]).

I think I get this error because the checkpoint has a parameter shape of [128, 5120], but the current model expects a shape of [128, 4096]. Maybe during training, the Llama 7B model structure was different compared to the model that I got from HuggingFace.

Do you have any ideas how to solve this issue?
Thanks a lot for your support.

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