[Kernel] Move sgl-kernel under sglang.kernels.aot (#32648)
This commit is contained in:
@@ -294,7 +294,7 @@ class TestVerifyTreeGreedy(CustomTestCase):
|
||||
|
||||
def test_verify_tree_greedy_upstream_golden(self):
|
||||
# Golden fixture ported from the CUDA kernel UT
|
||||
# sgl-kernel/tests/speculative/test_eagle_utils.py::test_verify_tree_greedy
|
||||
# python/sglang/kernels/aot/tests/speculative/test_eagle_utils.py::test_verify_tree_greedy
|
||||
# (device swapped to CPU); expected outputs are the CUDA kernel's.
|
||||
candidates = torch.tensor(
|
||||
[
|
||||
@@ -767,7 +767,7 @@ class TestReconstructIndicesFromTreeMask(CustomTestCase):
|
||||
bs, draft_token_num = 2, 4
|
||||
seq_lens = torch.tensor([12, 5], dtype=torch.int64)
|
||||
# Request 0: root(0) -> {1, 2}, 2 -> 3 (golden case from
|
||||
# sgl-kernel/tests/speculative/test_ngram_utils.py).
|
||||
# python/sglang/kernels/aot/tests/speculative/test_ngram_utils.py).
|
||||
# Request 1: plain chain 0 -> 1 -> 2 -> 3.
|
||||
tree_mask = torch.tensor(
|
||||
# fmt: off
|
||||
|
||||
Reference in New Issue
Block a user