-
-
Notifications
You must be signed in to change notification settings - Fork 675
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
Error when generating with long prefix #38
Comments
The issue does not occur when using the original generate script from OpenAI |
It seems to be occurring on this line: Could this difference be causing the issue? |
Looking into this now since it is affecting the cloud API. It's possible this difference could affect it. |
Able to reproduce, but only if the generated It's possible the prefix length in tokens + generated text in tokens > 1024. It might be a good idea to cap the length at that difference. |
Hi! When I generate text with a prefix longer than 4 characters, I get the following error:
tensorflow.python.framework.errors_impl.InvalidArgumentError: indices[0,0] = 1024 is not in [0, 1024)[[{{node sample_sequence_6/while/model/GatherV2_1}}]]
It does not occur if the prefix is "Hi!", but it does occur when it is "Hi, this is a longer piece of text"
Do you know why this may be happening?
The text was updated successfully, but these errors were encountered: