Signed-off-by: wang.yuqi <yuqi.wang@daocloud.io> Signed-off-by: wang.yuqi <noooop@126.com> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
19 lines
615 B
Python
19 lines
615 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("google/gemma-2b", hf_ppl=21.48524284362793),
|
|
GenerateModelInfo("google/gemma-2-2b", hf_ppl=102.59290313720703),
|
|
GenerateModelInfo("google/gemma-3-4b-it", hf_ppl=27.79648208618164),
|
|
]
|
|
|
|
|
|
@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)
|