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
8b8c209e
Unverified
Commit
8b8c209e
authored
Jun 25, 2025
by
Eldar Kurtić
Committed by
GitHub
Jun 25, 2025
Browse files
static_scaled_fp8_quant should not run when scale.numel is not 1 (#20076)
parent
23a04e08
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 @
8b8c209e
...
...
@@ -1276,7 +1276,7 @@ def scaled_fp8_quant(
torch
.
ops
.
_C
.
dynamic_scaled_fp8_quant
(
output
,
input
,
scale
)
else
:
# num_token_padding not implemented for this case
assert
(
scale
.
numel
()
==
1
or
num_token_padding
is
None
)
assert
(
scale
.
numel
()
==
1
and
num_token_padding
is
None
)
torch
.
ops
.
_C
.
static_scaled_fp8_quant
(
output
,
input
,
scale
)
return
output
,
scale
...
...
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