Skip to content

Commit

Permalink
Set maximum grpc message receive size to 2GiB (#667)
Browse files Browse the repository at this point in the history
  • Loading branch information
tgaddair authored Nov 7, 2024
1 parent e03f989 commit a2c1fc1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/lorax_server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,11 @@ def load_adapter(adapter_info: generate_pb2.PreloadedAdapter) -> bool:
interceptors=[
ExceptionInterceptor(),
UDSOpenTelemetryAioServerInterceptor(),
]
],
options=[
# Set the maximum possible message length: i32::MAX
("grpc.max_receive_message_length", (1 << 31) - 1)
],
)
generate_pb2_grpc.add_LoraxServiceServicer_to_server(LoraxService(model, Cache(), server_urls), server)
SERVICE_NAMES = (
Expand Down

0 comments on commit a2c1fc1

Please sign in to comment.