-
Notifications
You must be signed in to change notification settings - Fork 151
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
RuntimeError: Must call ComputeLogits before GenerateNextToken #1126
Comments
Also facing the same issue. |
Got the phi3v.py from |
You can see this announcement for more information on which example script to use. |
Describe the bug
Proposed fix for an error running on CPU:
" File "...\phi3v.py", line 140, in run(args)
File "...\phi3v.py", line 103, in run generator.generate_next_token()
RuntimeError: Must call ComputeLogits before GenerateNextToken"
and
RuntimeError: IsDone() can't be called in the middle of processing logits
To Reproduce
Any attempt for inference
The code below works for me from Line 103 below:
generated_text = ""
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: