test_registry.py 461 B

1234567891011121314
  1. import pytest
  2. import transformers
  3. from aphrodite.modeling.models import _MODELS, ModelRegistry
  4. @pytest.mark.parametrize("model_cls", _MODELS)
  5. def test_registry_imports(model_cls):
  6. if (model_cls == "Qwen2VLForConditionalGeneration"
  7. and transformers.__version__ < "4.45"):
  8. pytest.skip("Waiting for next transformers release")
  9. # Ensure all model classes can be imported successfully
  10. ModelRegistry.resolve_model_cls([model_cls])