From 4dbec2dd2bca65013dd9cf16dfe1c6600ef574ab Mon Sep 17 00:00:00 2001 From: Jason Yao Date: Tue, 17 Mar 2026 10:26:59 +0800 Subject: [PATCH] [typo] Fix typos in comments and log messages in common.py (#20723) --- python/sglang/srt/utils/common.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/sglang/srt/utils/common.py b/python/sglang/srt/utils/common.py index c3a582e5b..aceb0830a 100644 --- a/python/sglang/srt/utils/common.py +++ b/python/sglang/srt/utils/common.py @@ -292,7 +292,7 @@ def use_intel_amx_backend(layer): def xpu_has_xmx_support(): - # TODO: update with XPU capalibity query + # TODO: update with XPU capability query if is_xpu(): # currently only PVC/LNL/BMG supports F64, so we only support these now return torch.xpu.get_device_properties().has_fp64 @@ -344,7 +344,7 @@ def get_bool_env_var(name: str, default: str = "false") -> bool: # same invalid value may suppress warnings incorrectly. if name not in _warned_bool_env_var_keys: logger.warning( - f"get_bool_env_var({name}) see non-understandable value={value} and treat as false" + f"get_bool_env_var({name}) encountered unrecognized value={value} and will treat as false" ) _warned_bool_env_var_keys.add(name) @@ -633,7 +633,7 @@ def make_layers( offloader_kwargs: Optional[Dict[str, Any]] = None, ) -> Tuple[torch.nn.Module, int, int]: """Make a list of layers with the given layer function""" - # circula imports + # circular imports from sglang.srt.distributed import get_pp_indices from sglang.srt.layers.utils import PPMissingLayer from sglang.srt.utils.offloader import get_offloader