{"record":{"id":"b34683043ba60bf0","repo":"exo-explore/exo","slug":"insufficient-memory-to-create-instance-required","errorCode":null,"errorMessage":"Insufficient memory to create instance. Required: {required_memory.in_gb:.1f}GB, Available: {available_memory.in_gb:.1f}GB","messagePattern":"Insufficient memory to create instance\\. Required: (.+?)GB, Available: (.+?)GB","errorType":"http","errorClass":"HTTPException","httpStatus":400,"severity":"error","filePath":"src/exo/api/main.py","lineNumber":453,"sourceCode":"        )\n        await self._send(command)\n\n        return CreateInstanceResponse(\n            message=\"Command received.\",\n            command_id=command.command_id,\n            model_card=command.model_card,\n        )\n\n    async def create_instance(\n        self, payload: CreateInstanceParams\n    ) -> CreateInstanceResponse:\n        instance = payload.instance\n        model_card = await ModelCard.load(instance.shard_assignments.model_id)\n        required_memory = model_card.storage_size\n        available_memory = self._calculate_total_available_memory()\n\n        if required_memory > available_memory:\n            raise HTTPException(\n                status_code=400,\n                detail=f\"Insufficient memory to create instance. Required: {required_memory.in_gb:.1f}GB, Available: {available_memory.in_gb:.1f}GB\",\n            )\n\n        command = CreateInstance(\n            instance=instance,\n        )\n        await self._send(command)\n\n        return CreateInstanceResponse(\n            message=\"Command received.\",\n            command_id=command.command_id,\n            model_card=model_card,\n        )\n\n    async def get_placement(\n        self,\n        model_id: ModelId,","sourceCodeStart":435,"sourceCodeEnd":471,"githubUrl":"https://github.com/exo-explore/exo/blob/21a54c5ea0230a3bec1e1a786d200126c7e34ec6/src/exo/api/main.py#L435-L471","documentation":"Error \"Insufficient memory to create instance. Required: {required_memory.in_gb:.1f}GB, Available: {available_memory.in_gb:.1f}GB\" thrown in exo-explore/exo.","triggerScenarios":"Thrown at src/exo/api/main.py:453 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"}