serve icon indicating copy to clipboard operation
serve copied to clipboard

asyncio example

Open msaroufim opened this issue 3 years ago • 2 comments

📚 Documentation

When doing batch inferencing the default way a lot of python programmers will go about it is making a call with requests. Unfortunately the library is synchronous so users will get confused by results that are always batch_size=1 so instead would like to add an asyncio example in our getting started guide

msaroufim avatar Mar 05 '22 17:03 msaroufim

@msaroufim could i have a look at this?

mdaj06 avatar May 18 '22 22:05 mdaj06

Yup go for it!

msaroufim avatar May 18 '22 22:05 msaroufim

Hello, is anyone working on this?

@msaroufim can you please further clarify the purpose of the guide?

LuigiCerone avatar Nov 13 '22 14:11 LuigiCerone

@LuigiCerone We have an example here https://github.com/pytorch/serve/blob/master/examples/cloud_storage_stream_inference/stream_inference.py#L25

If you don't think it's enough lmk and we can expand it more

msaroufim avatar Nov 13 '22 18:11 msaroufim