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

size mismatch error #117

Open
lsf123-ai opened this issue Dec 9, 2024 · 1 comment
Open

size mismatch error #117

lsf123-ai opened this issue Dec 9, 2024 · 1 comment

Comments

@lsf123-ai
Copy link

Hello, your model has been very helpful to me and has proven to be highly effective. However, I encountered a size mismatch issue during fine-tuning. For example, size mismatch for model.param_proj.proj.0.weight: copying a param with shape torch.Size([1, 256]) from checkpoint, the shape in current model is torch.Size([1, 144]). I tried to solve it myself but without success. I was wondering if you have encountered this issue before? Do you have any ideas on how to resolve it? I am very grateful for your model and your sharing.

@kashif
Copy link
Contributor

kashif commented Dec 24, 2024

@lsf123-ai thanks, so can you kindly paste the sizes of the inputs you are feeding the model with in order to debug?

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

2 participants