From 8cddfa56a14e9ac03677bfc9e8df2f59b5bce382 Mon Sep 17 00:00:00 2001 From: Baizhou Zhang Date: Sat, 19 Jul 2025 15:56:50 -0700 Subject: [PATCH] Clean warning logs for gate_proj loading in Lora (#8172) --- python/sglang/srt/lora/lora.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/python/sglang/srt/lora/lora.py b/python/sglang/srt/lora/lora.py index 2a3d2acfd..7bc6af532 100644 --- a/python/sglang/srt/lora/lora.py +++ b/python/sglang/srt/lora/lora.py @@ -186,10 +186,6 @@ class LoRAAdapter(nn.Module): up_name = weight_name.replace("gate_proj", "up_proj") gate_up_name = weight_name.replace("gate_proj", "gate_up_proj") if up_name not in weights: - logger.warning( - f"Gate projection {weight_name} does not have a corresponding up projection {up_name}. " - f"Initializing up projection to zero." - ) weights[up_name] = torch.zeros_like(weights[weight_name]) # FIXME: Add gate-only support for flashinfer in future implementations assert self.lora_backend.name == "triton", (