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
88d6fd9a
"git@developer.sourcefind.cn:change/sglang.git" did not exist on "abea9250da812c2866f5f256f6e73e6110ebf161"
Unverified
Commit
88d6fd9a
authored
Apr 08, 2025
by
kk
Committed by
GitHub
Apr 08, 2025
Browse files
Fix torch compile errors (#5158)
parent
cc88d98a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
python/sglang/srt/layers/quantization/fp8_utils.py
python/sglang/srt/layers/quantization/fp8_utils.py
+2
-2
No files found.
python/sglang/srt/layers/quantization/fp8_utils.py
View file @
88d6fd9a
...
@@ -243,8 +243,8 @@ def apply_fp8_linear(
...
@@ -243,8 +243,8 @@ def apply_fp8_linear(
if
_is_cuda
:
if
_is_cuda
:
qinput
,
x_scale
=
sglang_per_token_quant_fp8
(
input_2d
)
qinput
,
x_scale
=
sglang_per_token_quant_fp8
(
input_2d
)
else
:
else
:
qinput
,
x_scale
=
per_token_group
_quant
_fp8
(
qinput
,
x_scale
=
ops
.
scaled_fp8
_quant
(
input_2d
,
group_size
=
input_2d
.
shape
[
1
]
input_2d
,
input_scale
,
use_per_token_if_dynamic
=
use_per_token_if_dynamic
)
)
if
cutlass_fp8_supported
:
if
cutlass_fp8_supported
:
...
...
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