-
Notifications
You must be signed in to change notification settings - Fork 29.2k
Hanging in TextClassificationPipeline's prediction #20189
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
Comments
@amiralikaboli Can you try setting You might be triggerring: #5486 Basically And if the problem is still there, could you provide a simple reproducing script ? |
@Narsil Actually, It doesn't work. The script I use for training and predicting my model is similar to the above script. Do you want a script for a server/client which runs the model? |
If you could provide a simple (one file) script that's easily launchable to reproduce that'd be perfect yes. The bug you're encountering is almost certainly a deadlock linked to multiple libs doing parallelism in some way hurting each other. Without the full script to reproduce it's hard to pinpoint though. Also are you on Mac or Linux (there's different default behavior for forking if my memory serves correctly). |
You are right about the deadlock. We loaded our model several times as a temporary solution, and it worked. But, it is not ideal because of more resource usage. |
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
Uh oh!
There was an error while loading. Please reload this page.
System Info
transformers
version: 4.22.2Who can help?
@Narsil @sgugger
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
I am using this class. It hangs forever after deploying and sending a request to my server (using falcon and gunicorn) that calls the
predict
function. However, when I call it in a simple script, everything is ok, and its predictions are returned.Expected behavior
Returning predictions
The text was updated successfully, but these errors were encountered: