mirror of
https://github.com/lightseekorg/tokenspeed.git
synced 2026-12-04 10:26:50 +08:00
test(kernel): trim redundant dispatch and override cases (#4025)
Repeated row-count and override combinations duplicate behavior already covered by boundary and graph tests. Keep distinct kernel variants and selection boundaries while avoiding redundant work in each CI run. Signed-off-by: lightseek-bot <243258330+lightseek-bot@users.noreply.github.com>
This commit is contained in:
@@ -112,17 +112,13 @@ def mix(values, scale, independent):
|
||||
|
||||
|
||||
# The boundary graph test below covers bf16 with PDL on, including the Triton rows.
|
||||
# Keep one interior point and both sides of the automatic selection limit here.
|
||||
@pytest.mark.parametrize(
|
||||
("rows", "expected_kernel"),
|
||||
[
|
||||
(17, "cute_fused_hyperconnection_mix"),
|
||||
(32, "cute_fused_hyperconnection_mix"),
|
||||
(64, "cute_fused_hyperconnection_mix"),
|
||||
(128, "cute_fused_hyperconnection_mix"),
|
||||
(255, "cute_fused_hyperconnection_mix"),
|
||||
(256, "cute_fused_hyperconnection_mix"),
|
||||
(257, "triton_hyperconnection_mix"),
|
||||
(1024, "triton_hyperconnection_mix"),
|
||||
],
|
||||
)
|
||||
@pytest.mark.parametrize(
|
||||
@@ -368,7 +364,8 @@ def test_sm107_streaming_graph_replays_match_eager_bitwise(
|
||||
assert mismatches.item() == 0
|
||||
|
||||
|
||||
@pytest.mark.parametrize("rows", [17, 32, 33, 64, 97, 193, 224, 225, 256, 385, 1024])
|
||||
# Keep distinct tactics and full/tail tiles; 225 repeats the 193-row tail plan.
|
||||
@pytest.mark.parametrize("rows", [17, 32, 33, 64, 97, 193, 224, 256, 385, 1024])
|
||||
@pytest.mark.parametrize("enable_pdl", [False, True])
|
||||
@pytest.mark.parametrize("has_inject", [False, True])
|
||||
def test_fp16_optional_inject_and_pdl(rows, enable_pdl, has_inject):
|
||||
|
||||
@@ -1516,10 +1516,15 @@ def test_stream_topk_startup_warms_algorithm_and_capacity_buckets(
|
||||
assert stream_topk._COMPILED == compiled
|
||||
|
||||
|
||||
@pytest.mark.parametrize("override_source", ["context", "environment"])
|
||||
# Override sources share a resolver; exercise every entry without crossing them.
|
||||
@pytest.mark.parametrize(
|
||||
"entry",
|
||||
["auto-logits", "auto-stream", "stream", "direct"],
|
||||
("override_source", "entry"),
|
||||
[
|
||||
("context", "auto-logits"),
|
||||
("environment", "auto-stream"),
|
||||
("context", "stream"),
|
||||
("environment", "direct"),
|
||||
],
|
||||
)
|
||||
def test_stream_topk_startup_respects_kernel_override(
|
||||
device, monkeypatch, override_source, entry
|
||||
|
||||
Reference in New Issue
Block a user