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
f3a683b7
Unverified
Commit
f3a683b7
authored
Jul 25, 2025
by
Mengqing Cao
Committed by
GitHub
Jul 25, 2025
Browse files
[Bugfix][Logprobs] Fix logprobs op to support more backend (#21591)
Signed-off-by:
MengqingCao
<
cmq0113@163.com
>
parent
46d81d69
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
vllm/v1/sample/ops/logprobs.py
vllm/v1/sample/ops/logprobs.py
+3
-1
No files found.
vllm/v1/sample/ops/logprobs.py
View file @
f3a683b7
...
@@ -4,8 +4,10 @@
...
@@ -4,8 +4,10 @@
import
torch
import
torch
from
vllm.platforms
import
current_platform
@
torch
.
compile
(
dynamic
=
True
)
@
torch
.
compile
(
dynamic
=
True
,
backend
=
current_platform
.
simple_compile_backend
)
def
batched_count_greater_than
(
x
:
torch
.
Tensor
,
def
batched_count_greater_than
(
x
:
torch
.
Tensor
,
values
:
torch
.
Tensor
)
->
torch
.
Tensor
:
values
:
torch
.
Tensor
)
->
torch
.
Tensor
:
"""
"""
...
...
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