{"record":{"id":"fe03a82dc72d3eeb","repo":"sgl-project/sglang","slug":"model-architectures-architectures-are-not-suppor","errorCode":null,"errorMessage":"Model architectures {architectures} are not supported for now. Supported architectures: {all_supported_archs}","messagePattern":"Model architectures (.+?) are not supported for now\\. Supported architectures: (.+?)","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"python/sglang/multimodal_gen/runtime/models/registry.py","lineNumber":352,"sourceCode":"\n            model = _LazyRegisteredModel(\n                module_name=split_str[0], class_name=split_str[1]\n            )\n        else:\n            model = _RegisteredModel.from_model_cls(model_cls)\n\n        self.registered_models[model_arch] = model\n\n    def _raise_for_unsupported(self, architectures: list[str]) -> NoReturn:\n        all_supported_archs = self.get_supported_archs()\n\n        if any(arch in all_supported_archs for arch in architectures):\n            raise ValueError(\n                f\"Model architectures {architectures} failed \"\n                \"to be inspected. Please check the logs for more details.\"\n            )\n\n        raise ValueError(\n            f\"Model architectures {architectures} are not supported for now. \"\n            f\"Supported architectures: {all_supported_archs}\"\n        )\n\n    def _try_load_model_cls(self, model_arch: str) -> type[nn.Module] | None:\n        if model_arch not in self.registered_models:\n            return None\n\n        return _try_load_model_cls(model_arch, self.registered_models[model_arch])\n\n    def _try_inspect_model_cls(self, model_arch: str) -> _ModelInfo | None:\n        if model_arch not in self.registered_models:\n            return None\n\n        return _try_inspect_model_cls(model_arch, self.registered_models[model_arch])\n\n    def _normalize_archs(\n        self,","sourceCodeStart":334,"sourceCodeEnd":370,"githubUrl":"https://github.com/sgl-project/sglang/blob/0132848349585cfe6aae51c4941cbae872505f8a/python/sglang/multimodal_gen/runtime/models/registry.py#L334-L370","documentation":"The companion error to 1724: none of the requested architectures exist in the registry's supported list, so resolution cannot proceed. The message enumerates all registered architectures so you can see what is available.","triggerScenarios":"Calling inspect_model_cls/resolve_model_cls with a config architectures value like ['MyNewModel'] that was never registered via register_model, or with a typo'd/case-mismatched architecture name.","commonSituations":"New diffusion/multimodal model not yet added to this registry; HF config using a renamed architecture string; using the multimodal_gen registry for a text-only LLM architecture it does not cover.","solutions":["Copy the exact architecture string from the model's config.json into the call, or register your architecture with register_model(arch, module:class)","Check case/spacing against the printed supported list","If the model lives in the main sglang LLM path rather than multimodal_gen, use the LLM model registry instead","For a custom model, register it before resolving: registry.register_model('MyArch', 'my_pkg.my_mod:MyModel')"],"exampleFix":null,"handlingStrategy":"validation","validationCode":"supported = set(registry.get_supported_archs())\nmissing = [a for a in config.architectures if a not in supported]\nif missing:\n    raise ValueError(f'architectures not registered: {missing}; registered: {sorted(supported)}')","typeGuard":"def is_supported(config, registry) -> bool:\n    return any(a in registry.get_supported_archs() for a in config.architectures)","tryCatchPattern":"try:\n    cls = registry.resolve_model_cls(config)\nexcept ValueError as e:\n    if 'not supported' in str(e):\n        # fall back to explicit class or different registry\n        ...","preventionTips":["Validate architectures against get_supported_archs() before building the pipeline","Register custom architectures at plugin load time","Watch for architecture renames when upgrading model configs"],"tags":["registry","unsupported-architecture","model-resolution"],"backgroundTag":"unsupported-model-architecture","analyzedSha":"0132848349585cfe6aae51c4941cbae872505f8a","analyzedAt":"2026-08-28T05:10:05.995Z","schemaVersion":2},"datasetVersion":"2026-08-28T06:17:29.519Z"}