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

Padding_idx must be within num_embeddings #12

Open
LJQbiu opened this issue Oct 25, 2024 · 0 comments
Open

Padding_idx must be within num_embeddings #12

LJQbiu opened this issue Oct 25, 2024 · 0 comments

Comments

@LJQbiu
Copy link

LJQbiu commented Oct 25, 2024

The error message I encountered during training is: "assert padding_idx < weight.size(0), 'Padding_idx must be within num_embeddings'".
And after loading the pre-trained weights, the relevant layers of the model became like this. I'm wondering what this is related to?
I run finetune.sh
SogouScreenshot_select-area_20241025182424
screenshot-20241025-182438
screenshot-20241025-182511

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