From 745b18b63d7c98e20008bd32ebcb5124d9a75b97 Mon Sep 17 00:00:00 2001 From: yhyang201 Date: Wed, 17 Sep 2025 17:36:59 +0000 Subject: [PATCH] fix --- python/sglang/srt/layers/quantization/mxfp4.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/sglang/srt/layers/quantization/mxfp4.py b/python/sglang/srt/layers/quantization/mxfp4.py index 0d98d00d63b2..8643a3e36e10 100644 --- a/python/sglang/srt/layers/quantization/mxfp4.py +++ b/python/sglang/srt/layers/quantization/mxfp4.py @@ -731,8 +731,8 @@ def apply( quant_info = TritonMoeQuantInfo( w13_weight=layer.w13_weight, w2_weight=layer.w2_weight, - w13_weight_bias=layer.w13_weight_bias, - w2_weight_bias=layer.w2_weight_bias, + b13=getattr(layer, "w13_weight_bias", None), + b2=getattr(layer, "w2_weight_bias", None), ) return self.runner.run(dispatch_output, quant_info)