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

5
from vllm.distributed import cleanup_dist_env_and_memory
6
7
8
from vllm.model_executor.model_loader.tensorizer import TensorizerConfig


9
@pytest.fixture(autouse=True)
10
def cleanup():
11
    cleanup_dist_env_and_memory(shutdown_ray=True)
12
13
14
15
16


@pytest.fixture(autouse=True)
def tensorizer_config():
    config = TensorizerConfig(tensorizer_uri="vllm")
17
    return config