Unverified Commit ab07cd3e authored by Lianmin Zheng's avatar Lianmin Zheng Committed by GitHub
Browse files

[Auto Sync] Update test_deterministic_utils.py (20251023) (#12022)


Co-authored-by: default avatarStefan He <hebiaobuaa@gmail.com>
parent a9849683
...@@ -23,9 +23,13 @@ class TestDeterministicBase(CustomTestCase): ...@@ -23,9 +23,13 @@ class TestDeterministicBase(CustomTestCase):
def get_server_args(cls): def get_server_args(cls):
return COMMON_SERVER_ARGS return COMMON_SERVER_ARGS
@classmethod
def get_model(cls):
return DEFAULT_MODEL
@classmethod @classmethod
def setUpClass(cls): def setUpClass(cls):
cls.model = DEFAULT_MODEL cls.model = cls.get_model()
cls.base_url = DEFAULT_URL_FOR_TEST cls.base_url = DEFAULT_URL_FOR_TEST
if "--attention-backend" not in cls.get_server_args(): if "--attention-backend" not in cls.get_server_args():
raise unittest.SkipTest("Skip the base test class") raise unittest.SkipTest("Skip the base test class")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment