[DPSKv3.2] Rewrite nsa tilelang act_quant kernel to triton (#11450)
This commit is contained in:
@@ -505,8 +505,10 @@ class Indexer(CustomOp):
|
||||
forward_batch: ForwardBatch,
|
||||
layer_id: int,
|
||||
) -> Optional[torch.Tensor]:
|
||||
if not is_npu():
|
||||
if is_hip():
|
||||
from sglang.srt.layers.attention.nsa.tilelang_kernel import act_quant
|
||||
elif not is_npu():
|
||||
from sglang.srt.layers.attention.nsa.triton_kernel import act_quant
|
||||
|
||||
if TYPE_CHECKING:
|
||||
assert isinstance(forward_batch.token_to_kv_pool, NSATokenToKVPool)
|
||||
|
||||
Reference in New Issue
Block a user