TensorRT-LLMs/tests/unittest/llmapi/test_llm_models_multi_gpu.py
xiweny 6979afa6f2
test: reorganize tests folder hierarchy (#2996)
1. move TRT path tests to 'trt' folder
2. optimize some import usage
2025-03-27 12:07:53 +08:00

13 lines
400 B
Python

from utils.util import skip_single_gpu
from .test_llm_models import llm_test_harness, qwen2_model_path, sampling_params
@skip_single_gpu
def test_llm_qwen2_tp2():
llm_test_harness(qwen2_model_path,
inputs=['A B C'],
references=['D E F G H I J K L M'],
sampling_params=sampling_params,
tensor_parallel_size=2)