[CI] test chunked prefill more (#5798)
This commit is contained in:
@@ -1,23 +1,29 @@
|
||||
import unittest
|
||||
|
||||
from sglang.test.test_utils import CustomTestCase, is_in_ci, run_bench_one_batch
|
||||
from sglang.test.test_utils import (
|
||||
DEFAULT_SMALL_MODEL_NAME_FOR_TEST,
|
||||
CustomTestCase,
|
||||
is_in_ci,
|
||||
run_bench_offline_throughput,
|
||||
)
|
||||
|
||||
|
||||
class TestTorchTP(CustomTestCase):
|
||||
def test_torch_native_llama(self):
|
||||
output_throughput = run_bench_one_batch(
|
||||
"meta-llama/Meta-Llama-3-8B",
|
||||
output_throughput = run_bench_offline_throughput(
|
||||
DEFAULT_SMALL_MODEL_NAME_FOR_TEST,
|
||||
[
|
||||
"--tp",
|
||||
"2",
|
||||
"--json-model-override-args",
|
||||
'{"architectures": ["TorchNativeLlamaForCausalLM"]}',
|
||||
# This cannot run anymore with the new torch version.
|
||||
# "--json-model-override-args",
|
||||
# '{"architectures": ["TorchNativeLlamaForCausalLM"]}',
|
||||
"--disable-cuda-graph",
|
||||
],
|
||||
)
|
||||
|
||||
if is_in_ci():
|
||||
assert output_throughput > 0, f"{output_throughput=}"
|
||||
self.assertGreater(output_throughput, 0)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user