• 7 min read
Deploying Machine Learning Models with PyTorch, gRPC, and asyncio
SUMMARY
Serving a machine learning model with gRPC and asyncio gives you a faster, more scalable alternative to HTTP/1 REST endpoints: messages are binary Protobuf rather than JSON, type-safe client and server stubs are generated from a .proto file, and multiple images can be batched into a single