From e6f523b5f241d2d094a54cf11ed1aadfed904150 Mon Sep 17 00:00:00 2001 From: HAI Date: Sun, 29 Dec 2024 23:45:02 -0800 Subject: [PATCH] fix typo in python/sglang/srt/layers/quantization/fp8.py (#2655) --- python/sglang/srt/layers/quantization/fp8.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/sglang/srt/layers/quantization/fp8.py b/python/sglang/srt/layers/quantization/fp8.py index 23d30f395..a263cb236 100644 --- a/python/sglang/srt/layers/quantization/fp8.py +++ b/python/sglang/srt/layers/quantization/fp8.py @@ -280,9 +280,9 @@ class Fp8LinearMethod(LinearMethodBase): weight_scale=layer.weight_scale_inv, input_scale=None, ) - layer.weight = torch.nn.Parameter(weight, require_grad=False) + layer.weight = torch.nn.Parameter(weight, requires_grad=False) layer.weight_scale_inv = torch.nn.Parameter( - weight_scale, require_grad=False + weight_scale, requires_grad=False ) layer.input_scale = None return