From 1408cd967e837e546efb7cc7d9273bbb6210f58a Mon Sep 17 00:00:00 2001 From: Zhao Shenyang Date: Thu, 8 Dec 2022 07:07:26 +0800 Subject: [PATCH] fix(runner): remote run_method with kwargs --- 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, ), )