Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
03416ead
Unverified
Commit
03416ead
authored
Dec 09, 2025
by
haoyangli-amd
Committed by
GitHub
Dec 09, 2025
Browse files
[bugfix][quantization] Fix fp8 per_tensor scale shape (#30257)
Signed-off-by:
Haoyang Li
<
lihaoyang0109@gmail.com
>
parent
c72ea107
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/_custom_ops.py
vllm/_custom_ops.py
+1
-1
No files found.
vllm/_custom_ops.py
View file @
03416ead
...
...
@@ -1726,7 +1726,7 @@ def scaled_fp8_quant(
output
,
input
,
scale
,
scale_ub
)
else
:
scale
=
torch
.
empty
(
(
1
,
1
)
,
device
=
input
.
device
,
dtype
=
torch
.
float32
)
scale
=
torch
.
empty
(
1
,
device
=
input
.
device
,
dtype
=
torch
.
float32
)
torch
.
ops
.
_C
.
dynamic_scaled_fp8_quant
(
output
,
input
,
scale
)
else
:
assert
scale
.
numel
()
==
1
,
f
"
{
scale
.
shape
}
"
...
...
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