mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-10 01:45:01 +08:00
Let max_num_batched_tokens use human_readable_int for large numbers (#18968)
Signed-off-by: mgoin <mgoin64@gmail.com>
This commit is contained in:
parent
c594cbf565
commit
2ad6194a02
@ -224,7 +224,7 @@ def get_kwargs(cls: ConfigType) -> dict[str, Any]:
|
|||||||
elif contains_type(type_hints, int):
|
elif contains_type(type_hints, int):
|
||||||
kwargs[name]["type"] = int
|
kwargs[name]["type"] = int
|
||||||
# Special case for large integers
|
# Special case for large integers
|
||||||
if name in {"max_model_len"}:
|
if name in {"max_model_len", "max_num_batched_tokens"}:
|
||||||
kwargs[name]["type"] = human_readable_int
|
kwargs[name]["type"] = human_readable_int
|
||||||
elif contains_type(type_hints, float):
|
elif contains_type(type_hints, float):
|
||||||
kwargs[name]["type"] = float
|
kwargs[name]["type"] = float
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user