Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
e6f523b5
"vscode:/vscode.git/clone" did not exist on "cebf13414afb9aafbe28ff25fe7fcd256051bf07"
Unverified
Commit
e6f523b5
authored
Dec 29, 2024
by
HAI
Committed by
GitHub
Dec 29, 2024
Browse files
fix typo in python/sglang/srt/layers/quantization/fp8.py (#2655)
parent
32318178
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
python/sglang/srt/layers/quantization/fp8.py
python/sglang/srt/layers/quantization/fp8.py
+2
-2
No files found.
python/sglang/srt/layers/quantization/fp8.py
View file @
e6f523b5
...
@@ -280,9 +280,9 @@ class Fp8LinearMethod(LinearMethodBase):
...
@@ -280,9 +280,9 @@ class Fp8LinearMethod(LinearMethodBase):
weight_scale
=
layer
.
weight_scale_inv
,
weight_scale
=
layer
.
weight_scale_inv
,
input_scale
=
None
,
input_scale
=
None
,
)
)
layer
.
weight
=
torch
.
nn
.
Parameter
(
weight
,
require_grad
=
False
)
layer
.
weight
=
torch
.
nn
.
Parameter
(
weight
,
require
s
_grad
=
False
)
layer
.
weight_scale_inv
=
torch
.
nn
.
Parameter
(
layer
.
weight_scale_inv
=
torch
.
nn
.
Parameter
(
weight_scale
,
require_grad
=
False
weight_scale
,
require
s
_grad
=
False
)
)
layer
.
input_scale
=
None
layer
.
input_scale
=
None
return
return
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment