[MODEL] Apertus and XIELU (#23068)

Signed-off-by: EduardDurech <39579228+EduardDurech@users.noreply.github.com>
Co-authored-by: AllenHaoHuang <allenhuangdd@gmail.com>
This commit is contained in:
EduardDurech
2025-08-29 20:29:18 +08:00
committed by GitHub
co-authored by AllenHaoHuang
parent 4f7cde7272
commit 1cf3753b90
6 changed files with 696 additions and 1 deletions
+3
View File
@@ -24,6 +24,9 @@ from .registry import HF_EXAMPLE_MODELS
@pytest.mark.parametrize("model_arch", ModelRegistry.get_supported_archs())
def test_registry_imports(model_arch):
# Skip if transformers version is incompatible
model_info = HF_EXAMPLE_MODELS.get_hf_info(model_arch)
model_info.check_transformers_version(on_fail="skip")
# Ensure all model classes can be imported successfully
model_cls = ModelRegistry._try_load_model_cls(model_arch)
assert model_cls is not None