Skip to content

Commit

Permalink
fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
ChengjieLi28 committed Dec 19, 2023
1 parent 25be6a7 commit d1cbb5b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xinference/deploy/cmdline.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,9 @@ def model_launch(
_n_gpu = int(n_gpu)

endpoint = get_endpoint(endpoint)
model_size = size_in_billions if "_" in size_in_billions else int(size_in_billions)
model_size: Union[str, int] = (
size_in_billions if "_" in size_in_billions else int(size_in_billions)
)

client = RESTfulClient(base_url=endpoint)
model_uid = client.launch_model(
Expand Down

0 comments on commit d1cbb5b

Please sign in to comment.