Hi, guys, Do you have any idea why api_serve is quite slow compared to the runner?
api_server : ~1400ms
runner: ~150ms
this cause overall improvement in service's RPS
c
Chris
03/17/2024, 11:51 AM
I have the same problem. I have a quite fast model, but somehow serving local with the bento serve command adds 3sec overhead (compared to 0,3sec inference with torch)
n
Natthanan Bhukan
03/17/2024, 3:12 PM
Do you have any alternative ways ? I'm thinking, I will serve my model with FastAPI.
c
Chris
03/17/2024, 3:25 PM
Unfortunately not… i also create a fastapi server. What gave a little bit of a boost was reducing the number of workers on windows
n
Natthanan Bhukan
03/18/2024, 6:24 AM
Thank you for sharing I will test with my service and share a result to you.