mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-10 15:45:34 +08:00
15 lines
450 B
Python
15 lines
450 B
Python
# SPDX-License-Identifier: Apache-2.0
|
|
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
|
|
import pytest
|
|
|
|
from tests.models.utils import GenerateModelInfo
|
|
|
|
from .ppl_utils import wikitext_ppl_test
|
|
|
|
MODELS = [GenerateModelInfo("openai-community/gpt2-large")]
|
|
|
|
|
|
@pytest.mark.parametrize("model_info", MODELS)
|
|
def test_ppl(hf_runner, vllm_runner, model_info: GenerateModelInfo):
|
|
wikitext_ppl_test(hf_runner, vllm_runner, model_info)
|