Run gRPC inference server with Friendli Container and interact with it through friendli SDK.
friendli
SDK.
friendli
to use gRPC client SDK:
friendli
SDK version 1.4.1
or higher installed.--grpc true
option to the command argument.
This supports response-streaming gRPC, and you can send requests using our friendli
SDK.
To start the Friendli Container with gRPC support, use the following command:
--web-server-port
argument.friendli
SDK to interact with the gRPC server.
This example assumes that the gRPC server is running on 0.0.0.0:8000
.
client
is garbage-collected.
You can manually close the Friendli
or AsyncFriendli
client using the .close()
method or utilize a context manager to ensure proper closure when exiting a with
block.