{"record":{"id":"b560a390be7d1d25","repo":"vllm-project/vllm","slug":"sleep-mode-is-not-supported-on-current-platform","errorCode":null,"errorMessage":"Sleep mode is not supported on current platform.","messagePattern":"Sleep mode is not supported on current platform\\.","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"vllm/config/model.py","lineNumber":596,"sourceCode":"                self.hf_token,\n            )\n\n        if (\n            can_resolve_model_revision\n            and self.tokenizer == self.model\n            and self.tokenizer_revision == requested_revision\n        ):\n            self.tokenizer_revision = self.revision\n        else:\n            self.tokenizer_revision = resolve_revision(\n                self.tokenizer,\n                self.tokenizer_revision,\n                self.hf_token,\n            )\n\n        if self.enable_sleep_mode:\n            if not current_platform.is_sleep_mode_available():\n                raise ValueError(\"Sleep mode is not supported on current platform.\")\n            if current_platform.is_cuda_alike() and not self.enable_cumem_allocator:\n                logger.info_once(\n                    \"Enabling cumem allocator because sleep mode requires it.\"\n                )\n                self.enable_cumem_allocator = True\n        if (\n            self.enable_cumem_allocator\n            and not current_platform.is_cumem_allocator_available()\n        ):\n            raise ValueError(\"cumem allocator is not supported on current platform.\")\n\n        hf_config = get_config(\n            self.hf_config_path or self.model,\n            self.trust_remote_code,\n            self.revision,\n            self.code_revision,\n            self.config_format,\n            hf_overrides_kw=hf_overrides_kw,","sourceCodeStart":578,"sourceCodeEnd":614,"githubUrl":"https://github.com/vllm-project/vllm/blob/c794754062d49a8fdb63ab3c5215b488b865030c/vllm/config/model.py#L578-L614","documentation":"Error \"Sleep mode is not supported on current platform.\" thrown in vllm-project/vllm.","triggerScenarios":"Raised at vllm/config/model.py:596 when validation fails: Sleep mode is not supported on current platform.. Typically triggered by an incompatible or incomplete vLLM configuration, an unsupported platform/backend combination, or a runtime resource/dependency that is missing.","commonSituations":"Commonly encountered at vllm/config/model.py:596 during vLLM startup/config validation or runtime setup when: (1) conflicting CLI flags or config fields are combined, (2) the current platform (CUDA/ROCm/CPU/XPU) or installed optional packages do not support the requested feature, or (3) a required value is absent or out of range. Resolve by correcting the configuration as described in the message, or by selecting a supported alternative.","solutions":["Do not enable sleep mode on the current platform; it is only supported on CUDA."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"c794754062d49a8fdb63ab3c5215b488b865030c","analyzedAt":"2026-08-14T21:17:39.825Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}