2025-09-10 21:16:39 +08:00
|
|
|
# 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
|
|
|
|
|
|
2026-03-03 21:15:51 +08:00
|
|
|
MODELS = [GenerateModelInfo("openai-community/gpt2-large", hf_ppl=19.457056045532227)]
|
2025-09-10 21:16:39 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
@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)
|