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 when copying a param from checkpoint #1

Open
tanthinhdt opened this issue Jan 7, 2023 · 0 comments
Open

Size mismatch when copying a param from checkpoint #1

tanthinhdt opened this issue Jan 7, 2023 · 0 comments

Comments

@tanthinhdt
Copy link

Xin chào team Telegram, mình chạy submission thì xuất hiện lỗi này

Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for Wav2Vec2ForCTCV2: size mismatch for lm_head.weight: copying a param with shape torch.Size([109, 768]) from checkpoint, the shape in current model is torch.Size([98, 768]).
size mismatch for lm_head.bias: copying a param with shape torch.Size([109]) from checkpoint, the shape in current model is torch.Size([98]).

Mình muốn hỏi là làm sao để mình khác phục lỗi này ạ? Mình xin cảm ơn

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