{"record":{"id":"09a104d71cecd3b1","repo":"exo-explore/exo","slug":"no-vision-weights-found-with-prefixes-vision-pref","errorCode":null,"errorMessage":"No vision weights found with prefixes {vision_prefixes} in {self._model_path}. Ensure the model repo contains bundled vision weights.","messagePattern":"No vision weights found with prefixes (.+?) in (.+?)\\. Ensure the model repo contains bundled vision weights\\.","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"src/exo/worker/engines/mlx/vision.py","lineNumber":459,"sourceCode":"                        if key.startswith(prefix):\n                            vision_weights[key[len(prefix) :]] = _torch_tensor_to_mx(\n                                f.get_tensor(key)\n                            )\n                            if prefix == \"model.visual.\":\n                                needs_sanitize = True\n                            matched = True\n                            break\n                    if matched:\n                        continue\n                    for prefix in projector_prefixes:\n                        if key.startswith(prefix):\n                            projector_weights[key[len(prefix) :]] = _torch_tensor_to_mx(\n                                f.get_tensor(key)\n                            )\n                            break\n\n        if not vision_weights:\n            raise ValueError(\n                f\"No vision weights found with prefixes {vision_prefixes} in {self._model_path}. \"\n                \"Ensure the model repo contains bundled vision weights.\"\n            )\n\n        assert self._vision_tower is not None\n        if needs_sanitize:\n            sanitize: Callable[[dict[str, mx.array]], dict[str, mx.array]] | None = (\n                getattr(self._vision_tower, \"sanitize\", None)\n            )\n            if sanitize is not None:\n                vision_weights = sanitize(vision_weights)\n\n        self._vision_tower.load_weights(list(vision_weights.items()))\n        mx.eval(self._vision_tower.parameters())\n\n        if self._projector is not None and projector_weights:\n            self._apply_projector_quantization_if_needed(projector_weights)\n            self._projector.load_weights(list(projector_weights.items()))","sourceCodeStart":441,"sourceCodeEnd":477,"githubUrl":"https://github.com/exo-explore/exo/blob/21a54c5ea0230a3bec1e1a786d200126c7e34ec6/src/exo/worker/engines/mlx/vision.py#L441-L477","documentation":"Error \"No vision weights found with prefixes {vision_prefixes} in {self._model_path}. Ensure the model repo contains bundled vision weights.\" thrown in exo-explore/exo.","triggerScenarios":"Thrown at src/exo/worker/engines/mlx/vision.py:459 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"21a54c5ea0230a3bec1e1a786d200126c7e34ec6","analyzedAt":"2026-08-26T00:02:16.033Z","schemaVersion":2},"datasetVersion":"2026-08-26T04:18:47.238Z"}