2023-09-06 07:57:38 +08:00
|
|
|
import pytest
|
2024-03-25 22:59:47 +08:00
|
|
|
|
2024-05-04 06:51:27 +08:00
|
|
|
from vllm.utils import (create_kv_caches_with_random,
|
|
|
|
|
create_kv_caches_with_random_flash)
|
2023-09-06 07:57:38 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.fixture()
|
|
|
|
|
def kv_cache_factory():
|
2024-01-29 08:43:54 +08:00
|
|
|
return create_kv_caches_with_random
|
2024-05-04 06:51:27 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.fixture()
|
|
|
|
|
def kv_cache_factory_flashinfer():
|
|
|
|
|
return create_kv_caches_with_random_flash
|