From e498178a1f6c13f67ba2b631213b40c87a07b1a7 Mon Sep 17 00:00:00 2001 From: Zhao Shenyang Date: Thu, 8 Dec 2022 08:46:57 +0800 Subject: [PATCH] fix(runner): remote run_method with kwargs (#3326) --- src/bentoml/_internal/runner/runner_handle/remote.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/bentoml/_internal/runner/runner_handle/remote.py b/src/bentoml/_internal/runner/runner_handle/remote.py index 32a3dbdc5d..eeb1aa4b29 100644 --- a/src/bentoml/_internal/runner/runner_handle/remote.py +++ b/src/bentoml/_internal/runner/runner_handle/remote.py @@ -243,10 +243,9 @@ def run_method( return t.cast( "R", anyio.from_thread.run( - self.async_run_method, + functools.partial(self.async_run_method, **kwargs), __bentoml_method, *args, - **kwargs, ), )