[NPU] Add GitHub test summary and deduplicate test code. Part 2 (#24689)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Elizaveta Martirosian <elizaveta.martirosian@gmail.com> Co-authored-by: ronnie_zheng <zl19940307@163.com>
This commit is contained in:
co-authored by
github-actions[bot]
Elizaveta Martirosian
ronnie_zheng
parent
62c505a196
commit
40030d8af8
+60
-104
@@ -1,25 +1,18 @@
|
||||
import os
|
||||
import unittest
|
||||
from types import SimpleNamespace
|
||||
|
||||
from sglang.srt.utils import kill_process_tree
|
||||
from sglang.test.ascend.gsm8k_ascend_mixin import GSM8KAscendMixin
|
||||
from sglang.test.ascend.test_ascend_utils import (
|
||||
QWEN3_CODER_480B_A35B_INSTRUCT_W8A8_QUAROT_WEIGHTS_PATH,
|
||||
)
|
||||
from sglang.test.ascend.test_mmlu import TestMMLU
|
||||
from sglang.test.ci.ci_register import register_npu_ci
|
||||
from sglang.test.few_shot_gsm8k import run_eval as run_gsm8k
|
||||
from sglang.test.run_eval import run_eval
|
||||
from sglang.test.test_utils import (
|
||||
DEFAULT_TIMEOUT_FOR_SERVER_LAUNCH,
|
||||
DEFAULT_URL_FOR_TEST,
|
||||
CustomTestCase,
|
||||
popen_launch_server,
|
||||
)
|
||||
from sglang.test.test_utils import CustomTestCase
|
||||
|
||||
register_npu_ci(est_time=200, suite="nightly-16-npu-a3", nightly=True)
|
||||
|
||||
|
||||
class TestDeepEpQwen(CustomTestCase):
|
||||
class TestDeepEpQwen(GSM8KAscendMixin, TestMMLU, CustomTestCase):
|
||||
"""
|
||||
Testcase:Test the Qwen3-Coder-480B-A35B-Instruct-w8a8-QuaRot model with DeepEP's auto mode enabled,
|
||||
and verify that there is no drop in accuracy compared to when DeepEP is not enabled.
|
||||
@@ -28,101 +21,64 @@ class TestDeepEpQwen(CustomTestCase):
|
||||
[Test Target] --moe-a2a-backend, --deepep-mode
|
||||
"""
|
||||
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
cls.model = QWEN3_CODER_480B_A35B_INSTRUCT_W8A8_QUAROT_WEIGHTS_PATH
|
||||
cls.base_url = DEFAULT_URL_FOR_TEST
|
||||
cls.process = popen_launch_server(
|
||||
cls.model,
|
||||
cls.base_url,
|
||||
timeout=DEFAULT_TIMEOUT_FOR_SERVER_LAUNCH,
|
||||
other_args=[
|
||||
"--trust-remote-code",
|
||||
"--nnodes",
|
||||
"1",
|
||||
"--node-rank",
|
||||
"0",
|
||||
"--attention-backend",
|
||||
"ascend",
|
||||
"--device",
|
||||
"npu",
|
||||
"--quantization",
|
||||
"modelslim",
|
||||
"--max-running-requests",
|
||||
96,
|
||||
"--context-length",
|
||||
8192,
|
||||
"--dtype",
|
||||
"bfloat16",
|
||||
"--chunked-prefill-size",
|
||||
28672,
|
||||
"--max-prefill-tokens",
|
||||
458880,
|
||||
"--disable-radix-cache",
|
||||
"--moe-a2a-backend",
|
||||
"deepep",
|
||||
"--deepep-mode",
|
||||
"auto",
|
||||
"--tp-size",
|
||||
16,
|
||||
"--dp-size",
|
||||
4,
|
||||
"--enable-dp-attention",
|
||||
"--enable-dp-lm-head",
|
||||
"--mem-fraction-static",
|
||||
0.7,
|
||||
"--cuda-graph-bs",
|
||||
16,
|
||||
20,
|
||||
24,
|
||||
],
|
||||
env={
|
||||
"PYTORCH_NPU_ALLOC_CONF": "expandable_segments:True",
|
||||
"SGLANG_DISAGGREGATION_BOOTSTRAP_TIMEOUT": "600",
|
||||
"HCCL_BUFFSIZE": "2100",
|
||||
"HCCL_OP_EXPANSION_MODE": "AIV",
|
||||
"TRANSFORMERS_VERBOSITY": "error",
|
||||
**os.environ,
|
||||
},
|
||||
)
|
||||
model = QWEN3_CODER_480B_A35B_INSTRUCT_W8A8_QUAROT_WEIGHTS_PATH
|
||||
other_args = [
|
||||
"--trust-remote-code",
|
||||
"--nnodes",
|
||||
"1",
|
||||
"--node-rank",
|
||||
"0",
|
||||
"--attention-backend",
|
||||
"ascend",
|
||||
"--device",
|
||||
"npu",
|
||||
"--quantization",
|
||||
"modelslim",
|
||||
"--max-running-requests",
|
||||
96,
|
||||
"--context-length",
|
||||
8192,
|
||||
"--dtype",
|
||||
"bfloat16",
|
||||
"--chunked-prefill-size",
|
||||
28672,
|
||||
"--max-prefill-tokens",
|
||||
458880,
|
||||
"--disable-radix-cache",
|
||||
"--moe-a2a-backend",
|
||||
"deepep",
|
||||
"--deepep-mode",
|
||||
"auto",
|
||||
"--tp-size",
|
||||
16,
|
||||
"--dp-size",
|
||||
4,
|
||||
"--enable-dp-attention",
|
||||
"--enable-dp-lm-head",
|
||||
"--mem-fraction-static",
|
||||
0.7,
|
||||
"--cuda-graph-bs",
|
||||
16,
|
||||
20,
|
||||
24,
|
||||
]
|
||||
env = {
|
||||
"PYTORCH_NPU_ALLOC_CONF": "expandable_segments:True",
|
||||
"SGLANG_DISAGGREGATION_BOOTSTRAP_TIMEOUT": "600",
|
||||
"HCCL_BUFFSIZE": "2100",
|
||||
"HCCL_OP_EXPANSION_MODE": "AIV",
|
||||
"TRANSFORMERS_VERBOSITY": "error",
|
||||
**os.environ,
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def tearDownClass(cls):
|
||||
kill_process_tree(cls.process.pid)
|
||||
# MMLU Configs
|
||||
mmlu_num_examples = 8
|
||||
accuracy_mmlu_threshold = 0.61 # MMLU accuracy ≥0.61
|
||||
|
||||
def test_mmlu(self):
|
||||
expect_score = 0.61
|
||||
|
||||
args = SimpleNamespace(
|
||||
base_url=self.base_url,
|
||||
model=self.model,
|
||||
eval_name="mmlu",
|
||||
num_examples=8,
|
||||
num_threads=32,
|
||||
)
|
||||
metrics = run_eval(args)
|
||||
self.assertGreater(metrics["score"], expect_score)
|
||||
|
||||
def test_gsm8k(self):
|
||||
expect_accuracy = 0.91
|
||||
|
||||
host = "http://127.0.0.1"
|
||||
port = int(self.base_url.split(":")[-1])
|
||||
args = SimpleNamespace(
|
||||
num_shots=8,
|
||||
data_path=None,
|
||||
num_questions=200,
|
||||
max_new_tokens=512,
|
||||
parallel=128,
|
||||
host=host,
|
||||
port=port,
|
||||
)
|
||||
metrics = run_gsm8k(args)
|
||||
self.assertGreaterEqual(
|
||||
metrics["accuracy"],
|
||||
expect_accuracy,
|
||||
f'Accuracy of {self.model} is {str(metrics["accuracy"])}, is lower than {expect_accuracy}',
|
||||
)
|
||||
# GSM8K Configs
|
||||
accuracy = 0.91 # GSM8K accuracy ≥0.91
|
||||
num_questions = 200
|
||||
gsm8k_num_shots = 8
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
+56
-96
@@ -1,20 +1,13 @@
|
||||
import os
|
||||
import unittest
|
||||
from types import SimpleNamespace
|
||||
|
||||
from sglang.srt.utils import kill_process_tree
|
||||
from sglang.test.ascend.gsm8k_ascend_mixin import GSM8KAscendMixin
|
||||
from sglang.test.ascend.test_ascend_utils import (
|
||||
QWEN3_NEXT_80B_A3B_INSTRUCT_WEIGHTS_PATH,
|
||||
)
|
||||
from sglang.test.ascend.test_mmlu import TestMMLU
|
||||
from sglang.test.ci.ci_register import register_npu_ci
|
||||
from sglang.test.few_shot_gsm8k import run_eval as run_gsm8k
|
||||
from sglang.test.run_eval import run_eval
|
||||
from sglang.test.test_utils import (
|
||||
DEFAULT_TIMEOUT_FOR_SERVER_LAUNCH,
|
||||
DEFAULT_URL_FOR_TEST,
|
||||
CustomTestCase,
|
||||
popen_launch_server,
|
||||
)
|
||||
from sglang.test.test_utils import CustomTestCase
|
||||
|
||||
register_npu_ci(
|
||||
est_time=200,
|
||||
@@ -23,7 +16,7 @@ register_npu_ci(
|
||||
)
|
||||
|
||||
|
||||
class TestQwen3Next(CustomTestCase):
|
||||
class TestQwen3Next(GSM8KAscendMixin, TestMMLU, CustomTestCase):
|
||||
"""
|
||||
Testcase:Test the Qwen3-Next-80B-A3B-Instruct-W8A8 model with DeepEP's auto mode enabled, and verify that there is
|
||||
no drop in accuracy compared to when DeepEP is not enabled.
|
||||
@@ -32,93 +25,60 @@ class TestQwen3Next(CustomTestCase):
|
||||
[Test Target] --moe-a2a-backend deepep, --deepep-mode auto
|
||||
"""
|
||||
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
cls.model = QWEN3_NEXT_80B_A3B_INSTRUCT_WEIGHTS_PATH
|
||||
cls.base_url = DEFAULT_URL_FOR_TEST
|
||||
cls.process = popen_launch_server(
|
||||
cls.model,
|
||||
cls.base_url,
|
||||
timeout=DEFAULT_TIMEOUT_FOR_SERVER_LAUNCH,
|
||||
other_args=[
|
||||
"--trust-remote-code",
|
||||
"--attention-backend",
|
||||
"ascend",
|
||||
"--device",
|
||||
"npu",
|
||||
"--tp-size",
|
||||
8,
|
||||
"--mem-fraction-static",
|
||||
0.8,
|
||||
"--max-running-requests",
|
||||
80,
|
||||
"--watchdog-timeout",
|
||||
9000,
|
||||
"--disable-radix-cache",
|
||||
"--cuda-graph-bs",
|
||||
2,
|
||||
4,
|
||||
6,
|
||||
8,
|
||||
"--max-prefill-tokens",
|
||||
28672,
|
||||
"--max-total-tokens",
|
||||
450560,
|
||||
"--moe-a2a-backend",
|
||||
"deepep",
|
||||
"--deepep-mode",
|
||||
"auto",
|
||||
"--chunked-prefill-size",
|
||||
-1,
|
||||
],
|
||||
env={
|
||||
# In NPU scenarios, operators only support BF16 precision.
|
||||
# This environment variable needs to be set for quantizing weights.
|
||||
"SGLANG_DEEPEP_BF16_DISPATCH": "1",
|
||||
"PYTORCH_NPU_ALLOC_CONF": "expandable_segments:True",
|
||||
"STREAMS_PER_DEVICE": "32",
|
||||
"HCCL_OP_EXPANSION_MODE": "AIV",
|
||||
"HCCL_ALGO": "level0:NA;level1:ring",
|
||||
"SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK": "20",
|
||||
"HCCL_BUFFSIZE": "2000",
|
||||
"GDN_ATTN_BACKEND_TRITON": "1",
|
||||
**os.environ,
|
||||
},
|
||||
)
|
||||
model = QWEN3_NEXT_80B_A3B_INSTRUCT_WEIGHTS_PATH
|
||||
other_args = [
|
||||
"--trust-remote-code",
|
||||
"--attention-backend",
|
||||
"ascend",
|
||||
"--device",
|
||||
"npu",
|
||||
"--tp-size",
|
||||
8,
|
||||
"--mem-fraction-static",
|
||||
0.8,
|
||||
"--max-running-requests",
|
||||
80,
|
||||
"--watchdog-timeout",
|
||||
9000,
|
||||
"--disable-radix-cache",
|
||||
"--cuda-graph-bs",
|
||||
2,
|
||||
4,
|
||||
6,
|
||||
8,
|
||||
"--max-prefill-tokens",
|
||||
28672,
|
||||
"--max-total-tokens",
|
||||
450560,
|
||||
"--moe-a2a-backend",
|
||||
"deepep",
|
||||
"--deepep-mode",
|
||||
"auto",
|
||||
"--chunked-prefill-size",
|
||||
-1,
|
||||
]
|
||||
env = {
|
||||
# In NPU scenarios, operators only support BF16 precision.
|
||||
# This environment variable needs to be set for quantizing weights.
|
||||
"SGLANG_DEEPEP_BF16_DISPATCH": "1",
|
||||
"PYTORCH_NPU_ALLOC_CONF": "expandable_segments:True",
|
||||
"STREAMS_PER_DEVICE": "32",
|
||||
"HCCL_OP_EXPANSION_MODE": "AIV",
|
||||
"HCCL_ALGO": "level0:NA;level1:ring",
|
||||
"SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK": "20",
|
||||
"HCCL_BUFFSIZE": "2000",
|
||||
"GDN_ATTN_BACKEND_TRITON": "1",
|
||||
**os.environ,
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def tearDownClass(cls):
|
||||
kill_process_tree(cls.process.pid)
|
||||
# MMLU Configs
|
||||
mmlu_num_examples = 8
|
||||
accuracy_mmlu_threshold = 0.56 # MMLU accuracy ≥0.56
|
||||
|
||||
def test_mmlu(self):
|
||||
expect_score = 0.56
|
||||
args = SimpleNamespace(
|
||||
base_url=self.base_url,
|
||||
model=self.model,
|
||||
eval_name="mmlu",
|
||||
num_examples=8,
|
||||
num_threads=32,
|
||||
)
|
||||
metrics = run_eval(args)
|
||||
self.assertGreater(metrics["score"], expect_score)
|
||||
|
||||
def test_gsm8k(self):
|
||||
expect_accuracy = 0.9
|
||||
args = SimpleNamespace(
|
||||
num_shots=5,
|
||||
data_path=None,
|
||||
num_questions=200,
|
||||
max_new_tokens=512,
|
||||
parallel=128,
|
||||
host="http://127.0.0.1",
|
||||
port=int(self.base_url.split(":")[-1]),
|
||||
)
|
||||
metrics = run_gsm8k(args)
|
||||
self.assertGreaterEqual(
|
||||
metrics["accuracy"],
|
||||
expect_accuracy,
|
||||
f'Accuracy of {self.model} is {str(metrics["accuracy"])}, is lower than {expect_accuracy}',
|
||||
)
|
||||
# GSM8K Configs
|
||||
accuracy = 0.9 # GSM8K accuracy ≥0.9
|
||||
num_questions = 200
|
||||
gsm8k_num_shots = 5
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
+46
-87
@@ -1,22 +1,16 @@
|
||||
import os
|
||||
import unittest
|
||||
from types import SimpleNamespace
|
||||
|
||||
from sglang.srt.utils import kill_process_tree
|
||||
from sglang.test.ascend.gsm8k_ascend_mixin import GSM8KAscendMixin
|
||||
from sglang.test.ascend.test_ascend_utils import DEEPSEEK_V3_2_W8A8_WEIGHTS_PATH
|
||||
from sglang.test.ascend.test_mmlu import TestMMLU
|
||||
from sglang.test.ci.ci_register import register_npu_ci
|
||||
from sglang.test.few_shot_gsm8k import run_eval as run_gsm8k
|
||||
from sglang.test.run_eval import run_eval
|
||||
from sglang.test.test_utils import (
|
||||
DEFAULT_URL_FOR_TEST,
|
||||
CustomTestCase,
|
||||
popen_launch_server,
|
||||
)
|
||||
from sglang.test.test_utils import CustomTestCase
|
||||
|
||||
register_npu_ci(est_time=200, suite="nightly-16-npu-a3", nightly=True)
|
||||
|
||||
|
||||
class TestDeepEpDeepseekV32(CustomTestCase):
|
||||
class TestDeepEpDeepseekV32(GSM8KAscendMixin, TestMMLU, CustomTestCase):
|
||||
"""Testcase: Verify that for the DeepSeek V3.2 model in the single-machine colocation scenario,
|
||||
its inference accuracy on the MMLU and GSM8K dataset meets the preset standard when the parameter --deepep-mode low_latency is configured.
|
||||
|
||||
@@ -25,85 +19,50 @@ class TestDeepEpDeepseekV32(CustomTestCase):
|
||||
[Test Suggestions] Mixing deployment + low_latency mode is not recommended.
|
||||
"""
|
||||
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
cls.model = DEEPSEEK_V3_2_W8A8_WEIGHTS_PATH
|
||||
cls.base_url = DEFAULT_URL_FOR_TEST
|
||||
cls.process = popen_launch_server(
|
||||
cls.model,
|
||||
cls.base_url,
|
||||
timeout=6000,
|
||||
other_args=[
|
||||
"--trust-remote-code",
|
||||
"--tp-size",
|
||||
"16",
|
||||
"--quantization",
|
||||
"modelslim",
|
||||
"--moe-a2a-backend",
|
||||
"deepep",
|
||||
"--deepep-mode",
|
||||
"low_latency",
|
||||
"--mem-fraction-static",
|
||||
0.82,
|
||||
"--disable-cuda-graph",
|
||||
"--disable-radix-cache",
|
||||
"--context-length",
|
||||
40960,
|
||||
"--max-prefill-tokens",
|
||||
128,
|
||||
"--max-total-tokens",
|
||||
40960,
|
||||
"--watchdog-timeout",
|
||||
900,
|
||||
],
|
||||
env={
|
||||
"PYTORCH_NPU_ALLOC_CONF": "expandable_segments:True",
|
||||
"STREAMS_PER_DEVICE": "32",
|
||||
"SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK": "128",
|
||||
"HCCL_BUFFSIZE": "2048",
|
||||
"HCCL_OP_EXPANSION_MODE": "AIV",
|
||||
"TASK_QUEUE_ENABLE": "0",
|
||||
"TRANSFORMERS_VERBOSITY": "error",
|
||||
**os.environ,
|
||||
},
|
||||
)
|
||||
model = DEEPSEEK_V3_2_W8A8_WEIGHTS_PATH
|
||||
timeout_for_server_launch = 6000
|
||||
other_args = [
|
||||
"--trust-remote-code",
|
||||
"--tp-size",
|
||||
"16",
|
||||
"--quantization",
|
||||
"modelslim",
|
||||
"--moe-a2a-backend",
|
||||
"deepep",
|
||||
"--deepep-mode",
|
||||
"low_latency",
|
||||
"--mem-fraction-static",
|
||||
0.82,
|
||||
"--disable-cuda-graph",
|
||||
"--disable-radix-cache",
|
||||
"--context-length",
|
||||
40960,
|
||||
"--max-prefill-tokens",
|
||||
128,
|
||||
"--max-total-tokens",
|
||||
40960,
|
||||
"--watchdog-timeout",
|
||||
900,
|
||||
]
|
||||
env = {
|
||||
"PYTORCH_NPU_ALLOC_CONF": "expandable_segments:True",
|
||||
"STREAMS_PER_DEVICE": "32",
|
||||
"SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK": "128",
|
||||
"HCCL_BUFFSIZE": "2048",
|
||||
"HCCL_OP_EXPANSION_MODE": "AIV",
|
||||
"TASK_QUEUE_ENABLE": "0",
|
||||
"TRANSFORMERS_VERBOSITY": "error",
|
||||
**os.environ,
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def tearDownClass(cls):
|
||||
kill_process_tree(cls.process.pid)
|
||||
# MMLU Configs
|
||||
mmlu_num_examples = 128
|
||||
accuracy_mmlu_threshold = 0.85 # MMLU accuracy ≥0.85
|
||||
|
||||
def test_mmlu(self):
|
||||
expect_score = 0.85
|
||||
args = SimpleNamespace(
|
||||
base_url=self.base_url,
|
||||
model=self.model,
|
||||
eval_name="mmlu",
|
||||
num_examples=128,
|
||||
num_threads=32,
|
||||
)
|
||||
print("Starting mmlu test...")
|
||||
metrics = run_eval(args)
|
||||
self.assertGreater(metrics["score"], expect_score)
|
||||
|
||||
def test_gsm8k(self):
|
||||
expect_accuracy = 0.95
|
||||
args = SimpleNamespace(
|
||||
num_shots=8,
|
||||
data_path=None,
|
||||
timeout=60000,
|
||||
num_questions=200,
|
||||
max_new_tokens=512,
|
||||
parallel=128,
|
||||
host="http://127.0.0.1",
|
||||
port=int(self.base_url.split(":")[-1]),
|
||||
)
|
||||
print("Starting gsm8k test...")
|
||||
metrics = run_gsm8k(args)
|
||||
self.assertGreaterEqual(
|
||||
metrics["accuracy"],
|
||||
expect_accuracy,
|
||||
f'Accuracy of {self.model} is {str(metrics["accuracy"])}, is lower than {expect_accuracy}',
|
||||
)
|
||||
# GSM8K Configs
|
||||
accuracy = 0.95 # GSM8K accuracy ≥0.95
|
||||
num_questions = 200
|
||||
gsm8k_num_shots = 8
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
+60
-100
@@ -1,25 +1,18 @@
|
||||
import os
|
||||
import unittest
|
||||
from types import SimpleNamespace
|
||||
|
||||
from sglang.srt.utils import kill_process_tree
|
||||
from sglang.test.ascend.gsm8k_ascend_mixin import GSM8KAscendMixin
|
||||
from sglang.test.ascend.test_ascend_utils import (
|
||||
QWEN3_CODER_480B_A35B_INSTRUCT_W8A8_QUAROT_WEIGHTS_PATH,
|
||||
)
|
||||
from sglang.test.ascend.test_mmlu import TestMMLU
|
||||
from sglang.test.ci.ci_register import register_npu_ci
|
||||
from sglang.test.few_shot_gsm8k import run_eval as run_gsm8k
|
||||
from sglang.test.run_eval import run_eval
|
||||
from sglang.test.test_utils import (
|
||||
DEFAULT_TIMEOUT_FOR_SERVER_LAUNCH,
|
||||
DEFAULT_URL_FOR_TEST,
|
||||
CustomTestCase,
|
||||
popen_launch_server,
|
||||
)
|
||||
from sglang.test.test_utils import CustomTestCase
|
||||
|
||||
register_npu_ci(est_time=200, suite="nightly-16-npu-a3", nightly=True)
|
||||
|
||||
|
||||
class TestDeepEpQwen(CustomTestCase):
|
||||
class TestDeepEpQwen(GSM8KAscendMixin, TestMMLU, CustomTestCase):
|
||||
"""
|
||||
Testcase:Test the Qwen3-Coder-480B-A35B-Instruct-w8a8-QuaRot model with DeepEP's low_latency mode enabled,
|
||||
and verify that there is no drop in accuracy compared to when DeepEP is not enabled.
|
||||
@@ -29,97 +22,64 @@ class TestDeepEpQwen(CustomTestCase):
|
||||
[Test Suggestions] Mixing deployment + low_latency mode is not recommended.
|
||||
"""
|
||||
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
cls.model = QWEN3_CODER_480B_A35B_INSTRUCT_W8A8_QUAROT_WEIGHTS_PATH
|
||||
cls.base_url = DEFAULT_URL_FOR_TEST
|
||||
cls.process = popen_launch_server(
|
||||
cls.model,
|
||||
cls.base_url,
|
||||
timeout=DEFAULT_TIMEOUT_FOR_SERVER_LAUNCH,
|
||||
other_args=[
|
||||
"--trust-remote-code",
|
||||
"--nnodes",
|
||||
"1",
|
||||
"--node-rank",
|
||||
"0",
|
||||
"--attention-backend",
|
||||
"ascend",
|
||||
"--device",
|
||||
"npu",
|
||||
"--quantization",
|
||||
"modelslim",
|
||||
"--max-running-requests",
|
||||
96,
|
||||
"--context-length",
|
||||
8192,
|
||||
"--dtype",
|
||||
"bfloat16",
|
||||
"--chunked-prefill-size",
|
||||
1024,
|
||||
"--max-prefill-tokens",
|
||||
458880,
|
||||
"--disable-radix-cache",
|
||||
"--moe-a2a-backend",
|
||||
"deepep",
|
||||
"--deepep-mode",
|
||||
"low_latency",
|
||||
"--tp-size",
|
||||
16,
|
||||
"--dp-size",
|
||||
4,
|
||||
"--enable-dp-attention",
|
||||
"--enable-dp-lm-head",
|
||||
"--mem-fraction-static",
|
||||
0.7,
|
||||
"--cuda-graph-bs",
|
||||
16,
|
||||
20,
|
||||
24,
|
||||
],
|
||||
env={
|
||||
"PYTORCH_NPU_ALLOC_CONF": "expandable_segments:True",
|
||||
"SGLANG_DISAGGREGATION_BOOTSTRAP_TIMEOUT": "600",
|
||||
"HCCL_BUFFSIZE": "2100",
|
||||
"HCCL_OP_EXPANSION_MODE": "AIV",
|
||||
"TRANSFORMERS_VERBOSITY": "error",
|
||||
**os.environ,
|
||||
},
|
||||
)
|
||||
model = QWEN3_CODER_480B_A35B_INSTRUCT_W8A8_QUAROT_WEIGHTS_PATH
|
||||
other_args = [
|
||||
"--trust-remote-code",
|
||||
"--nnodes",
|
||||
"1",
|
||||
"--node-rank",
|
||||
"0",
|
||||
"--attention-backend",
|
||||
"ascend",
|
||||
"--device",
|
||||
"npu",
|
||||
"--quantization",
|
||||
"modelslim",
|
||||
"--max-running-requests",
|
||||
96,
|
||||
"--context-length",
|
||||
8192,
|
||||
"--dtype",
|
||||
"bfloat16",
|
||||
"--chunked-prefill-size",
|
||||
1024,
|
||||
"--max-prefill-tokens",
|
||||
458880,
|
||||
"--disable-radix-cache",
|
||||
"--moe-a2a-backend",
|
||||
"deepep",
|
||||
"--deepep-mode",
|
||||
"low_latency",
|
||||
"--tp-size",
|
||||
16,
|
||||
"--dp-size",
|
||||
4,
|
||||
"--enable-dp-attention",
|
||||
"--enable-dp-lm-head",
|
||||
"--mem-fraction-static",
|
||||
0.7,
|
||||
"--cuda-graph-bs",
|
||||
16,
|
||||
20,
|
||||
24,
|
||||
]
|
||||
env = {
|
||||
"PYTORCH_NPU_ALLOC_CONF": "expandable_segments:True",
|
||||
"SGLANG_DISAGGREGATION_BOOTSTRAP_TIMEOUT": "600",
|
||||
"HCCL_BUFFSIZE": "2100",
|
||||
"HCCL_OP_EXPANSION_MODE": "AIV",
|
||||
"TRANSFORMERS_VERBOSITY": "error",
|
||||
**os.environ,
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def tearDownClass(cls):
|
||||
kill_process_tree(cls.process.pid)
|
||||
# MMLU Configs
|
||||
mmlu_num_examples = 8
|
||||
accuracy_mmlu_threshold = 0.61 # MMLU accuracy ≥0.61
|
||||
|
||||
def test_mmlu(self):
|
||||
expect_score = 0.61
|
||||
args = SimpleNamespace(
|
||||
base_url=self.base_url,
|
||||
model=self.model,
|
||||
eval_name="mmlu",
|
||||
num_examples=8,
|
||||
num_threads=32,
|
||||
)
|
||||
metrics = run_eval(args)
|
||||
self.assertGreater(metrics["score"], expect_score)
|
||||
|
||||
def test_gsm8k(self):
|
||||
expect_accuracy = 0.91
|
||||
args = SimpleNamespace(
|
||||
num_shots=8,
|
||||
data_path=None,
|
||||
num_questions=200,
|
||||
max_new_tokens=512,
|
||||
parallel=128,
|
||||
host="http://127.0.0.1",
|
||||
port=int(self.base_url.split(":")[-1]),
|
||||
)
|
||||
metrics = run_gsm8k(args)
|
||||
self.assertGreaterEqual(
|
||||
metrics["accuracy"],
|
||||
expect_accuracy,
|
||||
f'Accuracy of {self.model} is {str(metrics["accuracy"])}, is lower than {expect_accuracy}',
|
||||
)
|
||||
# GSM8K Configs
|
||||
accuracy = 0.91 # GSM8K accuracy ≥0.91
|
||||
num_questions = 200
|
||||
gsm8k_num_shots = 8
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
+60
-100
@@ -1,20 +1,13 @@
|
||||
import os
|
||||
import unittest
|
||||
from types import SimpleNamespace
|
||||
|
||||
from sglang.srt.utils import kill_process_tree
|
||||
from sglang.test.ascend.gsm8k_ascend_mixin import GSM8KAscendMixin
|
||||
from sglang.test.ascend.test_ascend_utils import (
|
||||
QWEN3_NEXT_80B_A3B_INSTRUCT_WEIGHTS_PATH,
|
||||
)
|
||||
from sglang.test.ascend.test_mmlu import TestMMLU
|
||||
from sglang.test.ci.ci_register import register_npu_ci
|
||||
from sglang.test.few_shot_gsm8k import run_eval as run_gsm8k
|
||||
from sglang.test.run_eval import run_eval
|
||||
from sglang.test.test_utils import (
|
||||
DEFAULT_TIMEOUT_FOR_SERVER_LAUNCH,
|
||||
DEFAULT_URL_FOR_TEST,
|
||||
CustomTestCase,
|
||||
popen_launch_server,
|
||||
)
|
||||
from sglang.test.test_utils import CustomTestCase
|
||||
|
||||
register_npu_ci(
|
||||
est_time=200,
|
||||
@@ -23,7 +16,7 @@ register_npu_ci(
|
||||
)
|
||||
|
||||
|
||||
class TestQwen3Next(CustomTestCase):
|
||||
class TestQwen3Next(GSM8KAscendMixin, TestMMLU, CustomTestCase):
|
||||
"""
|
||||
Testcase:Test the Qwen3-Next-80B-A3B-Instruct-W8A8 model with DeepEP's low_latency mode enabled, and verify that
|
||||
there is no drop in accuracy compared to when DeepEP is not enabled.
|
||||
@@ -32,97 +25,64 @@ class TestQwen3Next(CustomTestCase):
|
||||
[Test Target] --moe-a2a-backend deepep, --deepep-mode low_latency
|
||||
"""
|
||||
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
cls.model = QWEN3_NEXT_80B_A3B_INSTRUCT_WEIGHTS_PATH
|
||||
cls.base_url = DEFAULT_URL_FOR_TEST
|
||||
cls.process = popen_launch_server(
|
||||
cls.model,
|
||||
cls.base_url,
|
||||
timeout=DEFAULT_TIMEOUT_FOR_SERVER_LAUNCH,
|
||||
other_args=[
|
||||
"--trust-remote-code",
|
||||
"--attention-backend",
|
||||
"ascend",
|
||||
"--device",
|
||||
"npu",
|
||||
"--tp-size",
|
||||
8,
|
||||
"--mem-fraction-static",
|
||||
0.8,
|
||||
"--max-running-requests",
|
||||
80,
|
||||
"--watchdog-timeout",
|
||||
9000,
|
||||
"--disable-radix-cache",
|
||||
"--cuda-graph-bs",
|
||||
2,
|
||||
4,
|
||||
6,
|
||||
8,
|
||||
"--chunked-prefill-size",
|
||||
1024,
|
||||
"--max-prefill-tokens",
|
||||
28672,
|
||||
"--max-total-tokens",
|
||||
450560,
|
||||
"--moe-a2a-backend",
|
||||
"deepep",
|
||||
"--deepep-mode",
|
||||
"low_latency",
|
||||
],
|
||||
env={
|
||||
# The product of the following two environment variables must be greater than --max-prefill-tokens
|
||||
# divide by dp size
|
||||
"DEEPEP_NORMAL_LONG_SEQ_PER_ROUND_TOKENS": "3000",
|
||||
"DEEPEP_NORMAL_LONG_SEQ_ROUND": "10",
|
||||
# In NPU scenarios, operators only support BF16 precision.
|
||||
# This environment variable needs to be set for quantizing weights.
|
||||
"SGLANG_DEEPEP_BF16_DISPATCH": "1",
|
||||
"PYTORCH_NPU_ALLOC_CONF": "expandable_segments:True",
|
||||
"STREAMS_PER_DEVICE": "32",
|
||||
"HCCL_OP_EXPANSION_MODE": "AIV",
|
||||
"HCCL_ALGO": "level0:NA;level1:ring",
|
||||
"SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK": "160",
|
||||
"HCCL_BUFFSIZE": "2048",
|
||||
"GDN_ATTN_BACKEND_TRITON": "1",
|
||||
**os.environ,
|
||||
},
|
||||
)
|
||||
model = QWEN3_NEXT_80B_A3B_INSTRUCT_WEIGHTS_PATH
|
||||
other_args = [
|
||||
"--trust-remote-code",
|
||||
"--attention-backend",
|
||||
"ascend",
|
||||
"--device",
|
||||
"npu",
|
||||
"--tp-size",
|
||||
8,
|
||||
"--mem-fraction-static",
|
||||
0.8,
|
||||
"--max-running-requests",
|
||||
80,
|
||||
"--watchdog-timeout",
|
||||
9000,
|
||||
"--disable-radix-cache",
|
||||
"--cuda-graph-bs",
|
||||
2,
|
||||
4,
|
||||
6,
|
||||
8,
|
||||
"--chunked-prefill-size",
|
||||
1024,
|
||||
"--max-prefill-tokens",
|
||||
28672,
|
||||
"--max-total-tokens",
|
||||
450560,
|
||||
"--moe-a2a-backend",
|
||||
"deepep",
|
||||
"--deepep-mode",
|
||||
"low_latency",
|
||||
]
|
||||
env = {
|
||||
# The product of the following two environment variables must be greater than --max-prefill-tokens
|
||||
# divide by dp size
|
||||
"DEEPEP_NORMAL_LONG_SEQ_PER_ROUND_TOKENS": "3000",
|
||||
"DEEPEP_NORMAL_LONG_SEQ_ROUND": "10",
|
||||
# In NPU scenarios, operators only support BF16 precision.
|
||||
# This environment variable needs to be set for quantizing weights.
|
||||
"SGLANG_DEEPEP_BF16_DISPATCH": "1",
|
||||
"PYTORCH_NPU_ALLOC_CONF": "expandable_segments:True",
|
||||
"STREAMS_PER_DEVICE": "32",
|
||||
"HCCL_OP_EXPANSION_MODE": "AIV",
|
||||
"HCCL_ALGO": "level0:NA;level1:ring",
|
||||
"SGLANG_DEEPEP_NUM_MAX_DISPATCH_TOKENS_PER_RANK": "160",
|
||||
"HCCL_BUFFSIZE": "2048",
|
||||
"GDN_ATTN_BACKEND_TRITON": "1",
|
||||
**os.environ,
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def tearDownClass(cls):
|
||||
kill_process_tree(cls.process.pid)
|
||||
# MMLU Configs
|
||||
mmlu_num_examples = 8
|
||||
accuracy_mmlu_threshold = 0.56 # MMLU accuracy ≥0.56
|
||||
|
||||
def test_mmlu(self):
|
||||
expect_score = 0.56
|
||||
args = SimpleNamespace(
|
||||
base_url=self.base_url,
|
||||
model=self.model,
|
||||
eval_name="mmlu",
|
||||
num_examples=8,
|
||||
num_threads=32,
|
||||
)
|
||||
metrics = run_eval(args)
|
||||
self.assertGreater(metrics["score"], expect_score)
|
||||
|
||||
def test_gsm8k(self):
|
||||
expect_accuracy = 0.9
|
||||
args = SimpleNamespace(
|
||||
num_shots=5,
|
||||
data_path=None,
|
||||
num_questions=200,
|
||||
max_new_tokens=512,
|
||||
parallel=128,
|
||||
host="http://127.0.0.1",
|
||||
port=int(self.base_url.split(":")[-1]),
|
||||
)
|
||||
metrics = run_gsm8k(args)
|
||||
self.assertGreaterEqual(
|
||||
metrics["accuracy"],
|
||||
expect_accuracy,
|
||||
f'Accuracy of {self.model} is {str(metrics["accuracy"])}, is lower than {expect_accuracy}',
|
||||
)
|
||||
# GSM8K Configs
|
||||
accuracy = 0.9 # GSM8K accuracy ≥0.9
|
||||
num_questions = 200
|
||||
gsm8k_num_shots = 5
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
@@ -6,79 +6,47 @@ python3 -m unittest test_ascend_w4a4_quantization.TestAscendW4A4.test_gsm8k
|
||||
import os
|
||||
import time
|
||||
import unittest
|
||||
from types import SimpleNamespace
|
||||
from urllib.parse import urlparse
|
||||
|
||||
import requests
|
||||
|
||||
from sglang.srt.utils import kill_process_tree
|
||||
from sglang.test.ci.ci_register import register_npu_ci
|
||||
from sglang.test.few_shot_gsm8k import run_eval
|
||||
from sglang.test.test_utils import (
|
||||
DEFAULT_TIMEOUT_FOR_SERVER_LAUNCH,
|
||||
DEFAULT_URL_FOR_TEST,
|
||||
CustomTestCase,
|
||||
is_in_ci,
|
||||
popen_launch_server,
|
||||
from sglang.test.ascend.gsm8k_ascend_mixin import GSM8KAscendMixin
|
||||
from sglang.test.ascend.test_ascend_utils import (
|
||||
ECO_TECH_QWEN3_32B_W4A4_LAOS_WEIGHTS_PATH,
|
||||
)
|
||||
from sglang.test.ci.ci_register import register_npu_ci
|
||||
from sglang.test.test_utils import CustomTestCase, is_in_ci, write_github_step_summary
|
||||
|
||||
register_npu_ci(est_time=400, suite="stage-b-test-4-npu-a3", nightly=False)
|
||||
register_npu_ci(est_time=400, suite="nightly-4-npu-a3", nightly=True)
|
||||
|
||||
if "ASCEND_RT_VISIBLE_DEVICES" not in os.environ:
|
||||
os.environ["ASCEND_RT_VISIBLE_DEVICES"] = "0,1,2,3"
|
||||
DEFAULT_PORT_FOR_SRT_TEST_RUNNER = (
|
||||
7000 + int(os.environ.get("ASCEND_RT_VISIBLE_DEVICES", "0")[0]) * 100
|
||||
)
|
||||
DEFAULT_URL_FOR_TEST = f"http://127.0.0.1:{DEFAULT_PORT_FOR_SRT_TEST_RUNNER + 1000}"
|
||||
|
||||
class TestAscendW4A4(GSM8KAscendMixin, CustomTestCase):
|
||||
|
||||
class TestAscendW4A4(CustomTestCase):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
cls.model = "/root/.cache/modelscope/hub/models/Eco-Tech/Qwen3-32B-w4a4-LAOS"
|
||||
cls.base_url = DEFAULT_URL_FOR_TEST
|
||||
cls.process = popen_launch_server(
|
||||
cls.model,
|
||||
cls.base_url,
|
||||
timeout=DEFAULT_TIMEOUT_FOR_SERVER_LAUNCH,
|
||||
other_args=[
|
||||
"--trust-remote-code",
|
||||
"--device",
|
||||
"npu",
|
||||
"--attention-backend",
|
||||
"ascend",
|
||||
"--tp-size",
|
||||
"4",
|
||||
"--mem-fraction-static",
|
||||
"0.8",
|
||||
"--cuda-graph-bs",
|
||||
"64",
|
||||
"--disable-radix-cache",
|
||||
],
|
||||
)
|
||||
model = ECO_TECH_QWEN3_32B_W4A4_LAOS_WEIGHTS_PATH
|
||||
other_args = [
|
||||
"--trust-remote-code",
|
||||
"--device",
|
||||
"npu",
|
||||
"--attention-backend",
|
||||
"ascend",
|
||||
"--tp-size",
|
||||
"4",
|
||||
"--mem-fraction-static",
|
||||
"0.8",
|
||||
"--cuda-graph-bs",
|
||||
"64",
|
||||
"--disable-radix-cache",
|
||||
]
|
||||
|
||||
@classmethod
|
||||
def tearDownClass(cls):
|
||||
kill_process_tree(cls.process.pid)
|
||||
env = {
|
||||
**os.environ,
|
||||
}
|
||||
|
||||
def test_gsm8k(self):
|
||||
base_url = DEFAULT_URL_FOR_TEST
|
||||
url = urlparse(base_url)
|
||||
args = SimpleNamespace(
|
||||
num_shots=5,
|
||||
data_path=None,
|
||||
num_questions=1319,
|
||||
max_new_tokens=512,
|
||||
parallel=64,
|
||||
host=f"http://{url.hostname}",
|
||||
port=int(url.port),
|
||||
)
|
||||
metrics = run_eval(args)
|
||||
print(metrics)
|
||||
|
||||
self.assertGreaterEqual(metrics["accuracy"], 0.80)
|
||||
self.assertGreaterEqual(metrics["output_throughput"], 1000)
|
||||
# GSM8K Configs
|
||||
accuracy = 0.80 # GSM8K accuracy ≥0.80
|
||||
num_questions = 1319
|
||||
gsm8k_num_shots = 5
|
||||
output_throughput = 1000 # GSM8K output throughput ≥1000 tokens/s
|
||||
|
||||
def run_decode(self, max_new_tokens):
|
||||
response = requests.post(
|
||||
@@ -100,11 +68,12 @@ class TestAscendW4A4(CustomTestCase):
|
||||
tic = time.perf_counter()
|
||||
res = self.run_decode(max_tokens)
|
||||
tok = time.perf_counter()
|
||||
print(res["text"])
|
||||
throughput = max_tokens / (tok - tic)
|
||||
print(f"Throughput: {throughput} tokens/s")
|
||||
summary = res["text"] + f"\nThroughput: {throughput} tokens/s"
|
||||
print(summary)
|
||||
|
||||
if is_in_ci():
|
||||
write_github_step_summary(summary + "\nThroughput threshold: 35 tokens/s")
|
||||
self.assertGreaterEqual(throughput, 35)
|
||||
|
||||
|
||||
|
||||
@@ -6,74 +6,39 @@ python3 -m unittest test_ascend_w8a8_quantization.TestAscendW8A8.test_gsm8k
|
||||
import os
|
||||
import time
|
||||
import unittest
|
||||
from types import SimpleNamespace
|
||||
from urllib.parse import urlparse
|
||||
|
||||
import requests
|
||||
|
||||
from sglang.srt.utils import kill_process_tree
|
||||
from sglang.test.ci.ci_register import register_npu_ci
|
||||
from sglang.test.few_shot_gsm8k import run_eval
|
||||
from sglang.test.test_utils import (
|
||||
DEFAULT_TIMEOUT_FOR_SERVER_LAUNCH,
|
||||
DEFAULT_URL_FOR_TEST,
|
||||
CustomTestCase,
|
||||
is_in_ci,
|
||||
popen_launch_server,
|
||||
from sglang.test.ascend.gsm8k_ascend_mixin import GSM8KAscendMixin
|
||||
from sglang.test.ascend.test_ascend_utils import (
|
||||
REDHATAI_QWEN2_5_0_5B_INSTRUCT_QUANTIZED_W8A8_WEIGHTS_PATH,
|
||||
)
|
||||
from sglang.test.ci.ci_register import register_npu_ci
|
||||
from sglang.test.test_utils import CustomTestCase, is_in_ci, write_github_step_summary
|
||||
|
||||
register_npu_ci(est_time=400, suite="stage-b-test-1-npu-a2", nightly=False)
|
||||
register_npu_ci(est_time=400, suite="nightly-1-npu-a3", nightly=True)
|
||||
|
||||
if "ASCEND_RT_VISIBLE_DEVICES" not in os.environ:
|
||||
os.environ["ASCEND_RT_VISIBLE_DEVICES"] = "0,1"
|
||||
DEFAULT_PORT_FOR_SRT_TEST_RUNNER = (
|
||||
7000 + int(os.environ.get("ASCEND_RT_VISIBLE_DEVICES", "0")[0]) * 100
|
||||
)
|
||||
DEFAULT_URL_FOR_TEST = f"http://127.0.0.1:{DEFAULT_PORT_FOR_SRT_TEST_RUNNER + 1000}"
|
||||
|
||||
class TestAscendW8A8CompressedTensors(GSM8KAscendMixin, CustomTestCase):
|
||||
model = REDHATAI_QWEN2_5_0_5B_INSTRUCT_QUANTIZED_W8A8_WEIGHTS_PATH
|
||||
other_args = [
|
||||
"--trust-remote-code",
|
||||
"--disable-cuda-graph",
|
||||
"--device",
|
||||
"npu",
|
||||
"--attention-backend",
|
||||
"ascend",
|
||||
]
|
||||
env = {
|
||||
**os.environ,
|
||||
}
|
||||
|
||||
class TestAscendW8A8CompressedTensors(CustomTestCase):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
# TODO: Move model to CI or Modelscope
|
||||
cls.model = "RedHatAI/Qwen2.5-0.5B-Instruct-quantized.w8a8"
|
||||
cls.base_url = DEFAULT_URL_FOR_TEST
|
||||
cls.process = popen_launch_server(
|
||||
cls.model,
|
||||
cls.base_url,
|
||||
timeout=DEFAULT_TIMEOUT_FOR_SERVER_LAUNCH,
|
||||
other_args=[
|
||||
"--trust-remote-code",
|
||||
"--disable-cuda-graph",
|
||||
"--device",
|
||||
"npu",
|
||||
"--attention-backend",
|
||||
"ascend",
|
||||
],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def tearDownClass(cls):
|
||||
kill_process_tree(cls.process.pid)
|
||||
|
||||
def test_gsm8k(self):
|
||||
base_url = DEFAULT_URL_FOR_TEST
|
||||
url = urlparse(base_url)
|
||||
args = SimpleNamespace(
|
||||
num_shots=5,
|
||||
data_path=None,
|
||||
num_questions=200,
|
||||
max_new_tokens=512,
|
||||
parallel=128,
|
||||
host=f"http://{url.hostname}",
|
||||
port=int(url.port),
|
||||
)
|
||||
metrics = run_eval(args)
|
||||
print(metrics)
|
||||
|
||||
self.assertGreaterEqual(metrics["accuracy"], 0.3)
|
||||
self.assertGreaterEqual(metrics["output_throughput"], 700)
|
||||
# GSM8K Configs
|
||||
accuracy = 0.3 # GSM8K accuracy ≥0.3
|
||||
num_questions = 200
|
||||
gsm8k_num_shots = 5
|
||||
output_throughput = 700 # GSM8K output throughput >=700 tokens/s
|
||||
|
||||
def run_decode(self, max_new_tokens):
|
||||
response = requests.post(
|
||||
@@ -95,11 +60,12 @@ class TestAscendW8A8CompressedTensors(CustomTestCase):
|
||||
tic = time.perf_counter()
|
||||
res = self.run_decode(max_tokens)
|
||||
tok = time.perf_counter()
|
||||
print(res["text"])
|
||||
throughput = max_tokens / (tok - tic)
|
||||
print(f"Throughput: {throughput} tokens/s")
|
||||
summary = f"\nThroughput: {throughput} tokens/s"
|
||||
print(res["text"] + summary)
|
||||
|
||||
if is_in_ci():
|
||||
write_github_step_summary(summary + "\nThroughput threshold: 25 tokens/s")
|
||||
self.assertGreaterEqual(throughput, 25)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user