update unit test in AMD CI (#3366)

This commit is contained in:
Yineng Zhang
2025-02-07 17:25:16 +08:00
committed by GitHub
parent e868d0b60e
commit 2b1808cec4
2 changed files with 42 additions and 6 deletions

View File

@@ -1,6 +1,8 @@
import unittest
from types import SimpleNamespace
import torch
from sglang.srt.utils import kill_process_tree
from sglang.test.few_shot_gsm8k import run_eval as run_eval_few_shot_gsm8k
from sglang.test.run_eval import run_eval
@@ -58,16 +60,14 @@ class TestDeepseekV3(unittest.TestCase):
def setUpClass(cls):
cls.model = "lmzheng/sglang-ci-dsv3-test"
cls.base_url = DEFAULT_URL_FOR_TEST
other_args = ["--trust-remote-code"]
if torch.cuda.is_available() and torch.version.cuda:
other_args.extend(["--enable-torch-compile", "--cuda-graph-max-bs", "2"])
cls.process = popen_launch_server(
cls.model,
cls.base_url,
timeout=DEFAULT_TIMEOUT_FOR_SERVER_LAUNCH,
other_args=[
"--trust-remote-code",
"--enable-torch-compile",
"--cuda-graph-max-bs",
"2",
],
other_args=other_args,
)
@classmethod