[Refactor] Cuda Graph Runner/Backend Refactor (#23906)

Co-authored-by: BBuf <1182563586@qq.com>
Co-authored-by: Cheng Wan <54331508+ch-wan@users.noreply.github.com>
Co-authored-by: Lianmin Zheng <lianminzheng@gmail.com>
This commit is contained in:
Yuwei An
2026-06-09 21:36:57 -07:00
committed by GitHub
co-authored by BBuf Cheng Wan Lianmin Zheng
parent 56f06278c6
commit 2495c02c2c
160 changed files with 5212 additions and 3083 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ class FP8GemmSM120Base:
"--trust-remote-code",
"--fp8-gemm-backend",
cls.backend,
"--disable-piecewise-cuda-graph",
"--cuda-graph-backend-prefill=disabled",
]
if cls.quantization:
other_args += ["--quantization", cls.quantization]
+3 -1
View File
@@ -19,7 +19,9 @@ class TestGGUF(CustomTestCase):
filename="qwen2-1_5b-instruct-q4_k_m.gguf",
)
engine = sgl.Engine(model_path=model_path, random_seed=42, cuda_graph_max_bs=2)
engine = sgl.Engine(
model_path=model_path, random_seed=42, cuda_graph_max_bs_decode=2
)
outputs = engine.generate(prompt, sampling_params)["text"]
engine.shutdown()
@@ -32,7 +32,7 @@ class FP4GemmSM120Base:
"modelopt_fp4",
"--fp4-gemm-backend",
cls.backend,
"--disable-piecewise-cuda-graph",
"--cuda-graph-backend-prefill=disabled",
]
cls.process = popen_launch_server(
cls.model,