Add Mimo-v2-flash model to ci test (#15887)

This commit is contained in:
Ke Bao
2025-12-27 14:18:08 +08:00
committed by GitHub
parent 9ad546d7e8
commit faecd37ed4
4 changed files with 75 additions and 2 deletions

View File

@@ -9,6 +9,8 @@ from sglang.test.few_shot_gsm8k import run_eval as run_eval_gsm8k
class GSM8KMixin:
gsm8k_accuracy_thres: float
gsm8k_accept_length_thres: Optional[float] = None
gsm8k_num_questions: int = 200
gsm8k_parallel: int = 128
def test_gsm8k(self):
requests.get(self.base_url + "/flush_cache")
@@ -16,9 +18,9 @@ class GSM8KMixin:
args = SimpleNamespace(
num_shots=5,
data_path=None,
num_questions=200,
num_questions=self.gsm8k_num_questions,
max_new_tokens=512,
parallel=128,
parallel=self.gsm8k_parallel,
host="http://127.0.0.1",
port=int(self.base_url.split(":")[-1]),
)

View File

@@ -0,0 +1,23 @@
from sglang.test.send_one import BenchArgs, send_one_prompt
from sglang.test.test_utils import is_in_ci, write_github_step_summary
class SpecDecodingMixin:
bs_1_speed_thres: float
accept_length_thres: float
def test_bs_1_speed(self):
args = BenchArgs(port=int(self.base_url.split(":")[-1]), max_new_tokens=2048)
acc_length, speed = send_one_prompt(args)
print(f"{acc_length=:.2f} {speed=:.2f}")
if is_in_ci():
write_github_step_summary(
f"### test_bs_1_speed ({self.model})\n"
f"{acc_length=:.2f}\n"
f"{speed=:.2f} token/s\n"
)
self.assertGreater(acc_length, self.accept_length_thres)
self.assertGreater(speed, self.bs_1_speed_thres)