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

Token indices sequence length error #16

Open
shaynemei opened this issue Oct 25, 2023 · 0 comments
Open

Token indices sequence length error #16

shaynemei opened this issue Oct 25, 2023 · 0 comments

Comments

@shaynemei
Copy link

How is token sequence length calculated here? I'm limiting the input to 100 chars but still got this error

Token indices sequence length is longer than the specified maximum sequence length for this model (2461 > 2048). Running this sequence through the model will result in indexing errors�[0m
terminate called after throwing an instance of 'phi::enforce::EnforceNotMet'
 what():  (InvalidArgument) Variable value (input) of OP(fluid.layers.embedding) expected >= 0 and < 2048, but got 2048. Please check input value.
 [Hint: Expected ids[i] < row_number, but received ids[i]:2048 >= row_number:2048.] (at /paddle/paddle/phi/kernels/cpu/embedding_kernel.cc:67)
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