[UT for RL] Add UT to cover release/resume memory case for moe model (#8803)

This commit is contained in:
ryang
2025-09-10 10:25:12 +08:00
committed by GitHub
parent 676a7b51bd
commit dccf52f9c8
4 changed files with 79 additions and 5 deletions

View File

@@ -7,7 +7,7 @@ import requests
from sglang.srt.utils import is_cuda, kill_process_tree
from sglang.test.run_eval import run_eval
from sglang.test.test_utils import (
DEFAULT_SMALL_MOE_MODEL_NAME_FOR_TEST,
DEFAULT_SMALL_MOE_MODEL_NAME_FOR_TEST_BASE,
DEFAULT_TIMEOUT_FOR_SERVER_LAUNCH,
DEFAULT_URL_FOR_TEST,
CustomTestCase,
@@ -18,7 +18,7 @@ from sglang.test.test_utils import (
class TestTorchCompileMoe(CustomTestCase):
@classmethod
def setUpClass(cls):
cls.model = DEFAULT_SMALL_MOE_MODEL_NAME_FOR_TEST
cls.model = DEFAULT_SMALL_MOE_MODEL_NAME_FOR_TEST_BASE
cls.base_url = DEFAULT_URL_FOR_TEST
cls.process = popen_launch_server(
cls.model,