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

inconsistent size when I use the huggingface model #196

Open
mathetian opened this issue Sep 26, 2024 · 0 comments
Open

inconsistent size when I use the huggingface model #196

mathetian opened this issue Sep 26, 2024 · 0 comments

Comments

@mathetian
Copy link

mathetian commented Sep 26, 2024

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]).

there are error when I use

model = AutoModelForCausalLM.from_pretrained(path)

load https://huggingface.co/TinyLlama/TinyLlama-1.1B-intermediate-step-1431k-3T

can anyone help me ?

@mathetian mathetian changed the title inconsistent size inconsistent size when I use the huggingface model Sep 26, 2024
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