[Misc] Move registry to its own file (#9064)

This commit is contained in:
Cyrus Leung
2024-10-04 10:01:37 +00:00
committed by GitHub
parent 0f6d7a9a34
commit 0e36fd4909
8 changed files with 341 additions and 335 deletions
+2 -2
View File
@@ -3,13 +3,13 @@ import warnings
import pytest
import torch.cuda
from vllm.model_executor.models import _MODELS, ModelRegistry
from vllm.model_executor.models import ModelRegistry
from vllm.platforms import current_platform
from ..utils import fork_new_process_for_each_test
@pytest.mark.parametrize("model_arch", _MODELS)
@pytest.mark.parametrize("model_arch", ModelRegistry.get_supported_archs())
def test_registry_imports(model_arch):
# Ensure all model classes can be imported successfully
ModelRegistry.resolve_model_cls(model_arch)