-
Notifications
You must be signed in to change notification settings - Fork 246
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
pipe.fit() freezes and don't return anything #91
Comments
On further investigation it seems intiliazing the model pipeline can happen only once per kernel as it opens the llm_response session. If we want to run this api again with different key ,different config(domain and labels), we need to restart the kernel. |
Yes, because changing key and domain etc would initiate the prompter, model etc again. for a single model you can initialize the things once and then call the |
Was facing the same issue, setting |
Facing same issue. Adding
|
In my case I'm trying to run the pipeline via Fastapi. But it freezes as reported above. Same thing happens when trying with curl. |
Upon further inspection i found that it stalls here:
Especifically in the following part:
It just stalls there. |
Found the culprit in This function goes into a infinite loop in the try/Except block. I only noticed it because i printed the Exception (original code doesn't print the exception):
Results in:
|
Funny thing there are no problems when one runs it in python. Problem happens as soon as you try doing it via CURL, FastAPI or Flask. It just enter this infinite loop. |
It just started to fail when run from python shell too. The parser is completely unrelieable when it comes to parsing the json. I'd recommend to update the code to use Pydantic with Instructor. |
@roperi Hi, did you solve this problem? I have neither the structured_output=False attribute nor the global Pipeline pipeline working Upd. it stucks bot in python use and fastapi Upd2: Fixed. structured_output it's an Pipeline attribute :) |
@Fan4ik20 Unfortunately I didn't. The parser kept failing at parsing the json. I decided to not use Promptify and move on. |
@roperi Yes, same for me, so i parsed received JSON by myself. BUT, for some reason we received JSON with extra brackets, so i had to remove them |
Hi many times while running this model in pycharm the model just freezes and don;t return the output.
It works sometimes after restarting the kernel twice or thrice.
Sometimes doesn't work at all.
Please look into this
The text was updated successfully, but these errors were encountered: