From 539bbf485c5a05dd24f4c9bf08a71830251efbaa Mon Sep 17 00:00:00 2001 From: Jiayi Yan <66017932+1195343015@users.noreply.github.com> Date: Thu, 12 Feb 2026 09:26:46 +0800 Subject: [PATCH] [Bugfix] fix config bug caused by PR #18273 (#18535) --- python/sglang/srt/configs/update_config.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/python/sglang/srt/configs/update_config.py b/python/sglang/srt/configs/update_config.py index f357a7635..7bb6aab35 100644 --- a/python/sglang/srt/configs/update_config.py +++ b/python/sglang/srt/configs/update_config.py @@ -12,14 +12,8 @@ if TYPE_CHECKING: def may_get_weight_block_size(model_config, load_config): from sglang.srt.model_loader.loader import _get_quantization_config - from sglang.srt.model_loader.utils import get_model_architecture - model_class, _ = get_model_architecture(model_config) - packed_modules_mapping = getattr(model_class, "packed_modules_mapping", {}) - - quant_config = _get_quantization_config( - model_config, load_config, packed_modules_mapping - ) + quant_config = _get_quantization_config(model_config, load_config) if quant_config is not None and hasattr(quant_config, "weight_block_size"): return getattr(quant_config, "weight_block_size")