Pierre Lecerf
05/14/2024, 5:25 PMMyClass entity such that: {"a": "my string"}
• From a BentoML service method declaration standpoint, the endpoint is expected to accept an iterable argument, so a typing.List[MyClass]
• Within the method itself, the iterable argument can be manipulated (eg. submitted to a model), and the method's return value should be an iterable which order matches that of the argument
• BentoML handles all of the batching part, will call the method with as many MyClass entities in the iterable as could be batched given the batch_size, latency settings, etc., and will dispatch individual responses to the endpoint callers
This is how I understand it conceptually, but in practice all I manage to create is an endpoint that works indistinguishably from a non-batchable endpoint. So what's the catch?Jian Shen Yap
05/15/2024, 10:23 AMPierre Lecerf
05/15/2024, 10:25 AMmax_batch_size of 25)
Are there some specific settings to check (like concurrency factors? something else?) that could render adaptive batching inoperant?Jian Shen Yap
05/18/2024, 8:23 AM