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

An error in model's partition and checkpoint's slice was detected #2597

Open
saltn9 opened this issue Jul 3, 2024 · 0 comments
Open

An error in model's partition and checkpoint's slice was detected #2597

saltn9 opened this issue Jul 3, 2024 · 0 comments

Comments

@saltn9
Copy link

saltn9 commented Jul 3, 2024

Hi @vince62s,
I'm trying to add a new language in nllb but when I try to merged lora weight to the base model I have this error :
AssertionError : An error in model's partition and checkpoint's slice was detected

When I compare of param.data.size() and ckpt_t[col_slice_start:col_slice_end, row_slice_start:row_slice_end,].size()
I have this result : torch.Size([265108, 2048]) and torch.Size([256206, 2048])

265108 corresponds to the size of the new dictionary with new tokens and 256206 to the size of the nllb dictionary.
I don't understand why is the vocabulary not updated. Yet, during training I have the good value of vocab size (265108)
Could you enlighten me?

Thanks,
Mat

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