I have created a Django service (nginx + Gunicorn) for object detection models.

For my case i have 50+ models with resnet 50 based back bone.

Server Machine Specification:

  1. 16 CPU
  2. 64 GB Ram

I have pre-loaded all the models in my service. I am running 20 inference requests in parallel.

But issue i am facing that Gunicorn intermittently restarts any worker out of 8 workers when inference is running and it is not due to time out. it starts to reloading the model in service again. Due to this my inference requests are failing.

Can you please Suggest the solution or other way to run inference as service ?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.