Clean up server launch code and multi tokenizer (#12132)

This commit is contained in:
Lianmin Zheng
2025-10-25 16:40:27 -07:00
committed by GitHub
parent d98b81e260
commit 8e70064c37
9 changed files with 130 additions and 141 deletions
+1 -1
View File
@@ -806,7 +806,7 @@ def _get_and_verify_dtype(
) -> torch.dtype:
# NOTE: getattr(config, "torch_dtype", torch.float32) is not correct
# because config.torch_dtype can be None.
config_dtype = getattr(config, "torch_dtype", None)
config_dtype = getattr(config, "dtype", None)
if isinstance(config_dtype, str):
config_dtype = _STR_DTYPE_TO_TORCH_DTYPE.get(config_dtype, None)
if config_dtype is None: