conftest.py 422 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
7
from vllm.utils import (create_kv_caches_with_random,
                        create_kv_caches_with_random_flash)
8
9
10
11


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


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