CI: synchronize prefill graph test fixtures (#31665)

This commit is contained in:
Mick
2026-07-18 18:48:05 +08:00
committed by GitHub
parent faf6894093
commit 573c075fef
2 changed files with 4 additions and 0 deletions
@@ -33,6 +33,7 @@ class TestMultimodalPiecewiseCudaGraph(CustomTestCase):
runner.prefill_backend_name = backend
runner.has_mha_companion_layers = backend == Backend.BREAKABLE
runner.capture_hidden_mode = CaptureHiddenMode.NULL
runner.capture_num_tokens = [4, 16]
runner.max_num_tokens = 16
return runner
@@ -1,6 +1,7 @@
import unittest
from types import SimpleNamespace
from sglang.srt.model_executor.cuda_graph_config import Backend
from sglang.srt.model_executor.forward_batch_info import (
CaptureHiddenMode,
ForwardMode,
@@ -18,6 +19,8 @@ class TestPrefillCudaGraphPadding(CustomTestCase):
def _make_runner(self):
runner = PrefillCudaGraphRunner.__new__(PrefillCudaGraphRunner)
runner._is_full_backend = False
runner.prefill_backend_name = Backend.TC_PIECEWISE
runner.has_mha_companion_layers = False
runner.capture_hidden_mode = CaptureHiddenMode.NULL
runner.capture_num_tokens = [4, 16]
runner.max_num_tokens = 16