localGPT icon indicating copy to clipboard operation
localGPT copied to clipboard

API is not able to handle multiple requests at the sametime

Open kkailaasa opened this issue 3 years ago • 5 comments

API is not able to handle multiple requests at the same time, It is giving segmentation error and closing down, how to fix this please help

kkailaasa avatar Oct 19 '23 11:10 kkailaasa

Having the same. I'm not sure if it's a memory issue, or a structural thing. I would expect an API to be able to handle multiple messages at a time, but since it's a local solution, maybe not :)

biertje72 avatar Oct 20 '23 18:10 biertje72

Same issue running it on llama2 model

guilombardi91 avatar Oct 23 '23 13:10 guilombardi91

This is not an issue with model, this is problem of your api (assuming using flask) you need to setup WSGI server using Gunicorn which handles multiple query request for the flask.

Checkout this blog: - https://developers.redhat.com/articles/2023/08/17/how-deploy-flask-application-python-gunicorn#containerization

Hope this helps :)

Can anyone help me out are you getting justifiable response time? and answers are generated ? I have tried so many models but localgpt not returning any answer returning blank. image then again ask for query input. If anyone encounter this issue, please help!!

Komal-99 avatar Oct 25 '23 05:10 Komal-99

I am same Facing Issue . is there any way to solve it with out Docker or guicorn???

vsherathiya avatar Nov 08 '23 13:11 vsherathiya

I am same Facing Issue . is there any way to solve it with out Docker or guicorn???

I followed the solution given by @Komal-99 and it worked for me with Gunicorn, I think there are other solutions similar to Gunicorn that you can explore Ex: uWSGI

kkailaasa avatar Nov 08 '23 23:11 kkailaasa