Skip to content

Commit

Permalink
BUG: Fix auto recover kwargs (#885)
Browse files Browse the repository at this point in the history
  • Loading branch information
codingl2k1 authored Jan 11, 2024
1 parent 6bfd80f commit 0b3f6f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xinference/core/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,8 @@ async def launch_builtin_model(
):
launch_args = locals()
launch_args.pop("self")
launch_args.pop("kwargs")
launch_args.update(kwargs)
if n_gpu is not None:
if isinstance(n_gpu, int) and (n_gpu <= 0 or n_gpu > cuda_count()):
raise ValueError(
Expand Down

0 comments on commit 0b3f6f7

Please sign in to comment.