mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-12 02:15:01 +08:00
13 lines
331 B
Python
13 lines
331 B
Python
# SPDX-License-Identifier: Apache-2.0
|
|
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
|
|
|
|
import pytest
|
|
from transformers import AutoTokenizer
|
|
|
|
from vllm.tokenizers import TokenizerLike
|
|
|
|
|
|
@pytest.fixture(scope="function")
|
|
def default_tokenizer() -> TokenizerLike:
|
|
return AutoTokenizer.from_pretrained("gpt2")
|