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

When I finetuned the model, an error occurred during the decoding process: IndexError: Out of range: piece id is out of range. #457

Open
HypherX opened this issue Sep 30, 2023 · 0 comments

Comments

@HypherX
Copy link

HypherX commented Sep 30, 2023

Thank you for your amazing work!
I use the generate_batch() function which you provide in another issue, when I run my decode code:

pred_sents = [
    tokenizer.decode(
        g
    )
    for g in pred_ids
]

It seems that there is a problem, I found that it might be an issue with the tokenizer, how can it be solved?

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