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, ), )