Unverified Commit e6f523b5 authored by HAI's avatar HAI Committed by GitHub
Browse files

fix typo in python/sglang/srt/layers/quantization/fp8.py (#2655)

parent 32318178
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment