Fix benchmark import for should_use_tensor_core (#17232)
This commit is contained in:
@@ -6,8 +6,8 @@ import torch
|
|||||||
import torch.utils.benchmark as benchmark
|
import torch.utils.benchmark as benchmark
|
||||||
from flashinfer import BatchDecodeWithPagedKVCacheWrapper
|
from flashinfer import BatchDecodeWithPagedKVCacheWrapper
|
||||||
|
|
||||||
|
from sglang.srt.layers.attention.flashinfer_backend import should_use_tensor_core
|
||||||
from sglang.srt.layers.attention.triton_ops.decode_attention import decode_attention_fwd
|
from sglang.srt.layers.attention.triton_ops.decode_attention import decode_attention_fwd
|
||||||
from sglang.srt.utils import should_use_tensor_core
|
|
||||||
|
|
||||||
|
|
||||||
def benchmark_forward(
|
def benchmark_forward(
|
||||||
|
|||||||
Reference in New Issue
Block a user