Crash the server correctly during error (#2231)
This commit is contained in:
@@ -6,7 +6,7 @@ import unittest
|
||||
|
||||
from test_nightly_gsm8k_eval import launch_server, parse_models
|
||||
|
||||
from sglang.srt.utils import kill_child_process
|
||||
from sglang.srt.utils import kill_process_tree
|
||||
from sglang.test.test_utils import (
|
||||
DEFAULT_MODEL_NAME_FOR_NIGHTLY_EVAL_FP8_TP1,
|
||||
DEFAULT_MODEL_NAME_FOR_NIGHTLY_EVAL_FP8_TP2,
|
||||
@@ -32,9 +32,9 @@ class TestEvalAccuracyLarge(unittest.TestCase):
|
||||
@classmethod
|
||||
def tearDownClass(cls):
|
||||
if cls.process:
|
||||
kill_child_process(cls.process.pid)
|
||||
kill_process_tree(cls.process.pid)
|
||||
if cls.eval_process:
|
||||
kill_child_process(cls.eval_process.pid)
|
||||
kill_process_tree(cls.eval_process.pid)
|
||||
|
||||
def run_evalplus(self, model):
|
||||
print("Delete evalplus results")
|
||||
|
||||
Reference in New Issue
Block a user