[Bugfix][Logprobs] Fix logprobs op to support more backend (#21591)
Signed-off-by: MengqingCao <cmq0113@163.com>
This commit is contained in:
@@ -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:
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user