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
c32fb7a2
Unverified
Commit
c32fb7a2
authored
Sep 18, 2025
by
sogalin
Committed by
GitHub
Sep 17, 2025
Browse files
[ROCm] Fix fp8 quantization accuracy issue. (#10558)
parent
1ba137e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/sglang/srt/layers/quantization/fp8_utils.py
python/sglang/srt/layers/quantization/fp8_utils.py
+1
-1
No files found.
python/sglang/srt/layers/quantization/fp8_utils.py
View file @
c32fb7a2
...
...
@@ -732,7 +732,7 @@ def apply_fp8_linear(
# final solution should be: 1. add support to per-tensor activation scaling.
# 2. solve the torch.compile error from weight_scale.numel() == 1 and x_scale.numel() > 1 (below line#308)
if
_is_hip
and
weight_scale
.
numel
()
==
1
:
qinput
,
x_scale
=
ops
.
scaled_fp8_quant
(
qinput
,
x_scale
=
scaled_fp8_quant
(
input_2d
,
input_scale
,
use_per_token_if_dynamic
=
use_per_token_if_dynamic
,
...
...
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