conftest.py 396 Bytes
Newer Older
1
# SPDX-License-Identifier: Apache-2.0
2
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
3

4
import pytest
5

6
from vllm.utils import create_kv_caches_with_random, create_kv_caches_with_random_flash
7
8
9
10


@pytest.fixture()
def kv_cache_factory():
11
    return create_kv_caches_with_random
12
13
14
15
16


@pytest.fixture()
def kv_cache_factory_flashinfer():
    return create_kv_caches_with_random_flash