diff --git a/python/sglang/srt/lora/layers.py b/python/sglang/srt/lora/layers.py index 8b596c7ef..502aaf23b 100644 --- a/python/sglang/srt/lora/layers.py +++ b/python/sglang/srt/lora/layers.py @@ -39,6 +39,8 @@ class BaseLayerWithLoRA(nn.Module): self.lora_backend: BaseLoRABackend = lora_backend if hasattr(self.base_layer, "weight"): self.weight = self.base_layer.weight + if hasattr(self.base_layer, "bias") and self.base_layer.bias is not None: + self.bias = self.base_layer.bias def forward(self, x: torch.Tensor): return self.base_layer.forward(x)