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
a29e62ea
Unverified
Commit
a29e62ea
authored
Jun 28, 2025
by
Michael Goin
Committed by
GitHub
Jun 27, 2025
Browse files
Fix num_token_padding support for static per-tensor scaled_fp8_quant (#20188)
Signed-off-by:
mgoin
<
mgoin64@gmail.com
>
parent
e53be6f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
vllm/_custom_ops.py
vllm/_custom_ops.py
+1
-2
No files found.
vllm/_custom_ops.py
View file @
a29e62ea
...
@@ -1274,8 +1274,7 @@ def scaled_fp8_quant(
...
@@ -1274,8 +1274,7 @@ def scaled_fp8_quant(
scale
=
torch
.
zeros
(
1
,
device
=
input
.
device
,
dtype
=
torch
.
float32
)
scale
=
torch
.
zeros
(
1
,
device
=
input
.
device
,
dtype
=
torch
.
float32
)
torch
.
ops
.
_C
.
dynamic_scaled_fp8_quant
(
output
,
input
,
scale
)
torch
.
ops
.
_C
.
dynamic_scaled_fp8_quant
(
output
,
input
,
scale
)
else
:
else
:
# num_token_padding not implemented for this case
assert
scale
.
numel
()
==
1
assert
(
scale
.
numel
()
==
1
and
num_token_padding
is
None
)
torch
.
ops
.
_C
.
static_scaled_fp8_quant
(
output
,
input
,
scale
)
torch
.
ops
.
_C
.
static_scaled_fp8_quant
(
output
,
input
,
scale
)
return
output
,
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