{"record":{"id":"abc9bc58cfd3917a","repo":"2noise/ChatTTS","slug":"gpu-memory-utilization-must-be-less-than-1-0-got","errorCode":null,"errorMessage":"GPU memory utilization must be less than 1.0. Got {self.gpu_memory_utilization}.","messagePattern":"GPU memory utilization must be less than 1\\.0\\. Got (.+?)\\.","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"ChatTTS/model/velocity/configs.py","lineNumber":317,"sourceCode":"        self,\n        block_size: int,\n        gpu_memory_utilization: float,\n        swap_space: int,\n        sliding_window: Optional[int] = None,\n    ) -> None:\n        self.block_size = block_size\n        self.gpu_memory_utilization = gpu_memory_utilization\n        self.swap_space_bytes = swap_space * _GB\n        self.sliding_window = sliding_window\n        self._verify_args()\n\n        # Will be set after profiling.\n        self.num_gpu_blocks = None\n        self.num_cpu_blocks = None\n\n    def _verify_args(self) -> None:\n        if self.gpu_memory_utilization > 1.0:\n            raise ValueError(\n                \"GPU memory utilization must be less than 1.0. Got \"\n                f\"{self.gpu_memory_utilization}.\"\n            )\n\n    def verify_with_parallel_config(\n        self,\n        parallel_config: \"ParallelConfig\",\n    ) -> None:\n        total_cpu_memory = get_cpu_memory()\n        # FIXME(woosuk): Here, it is assumed that the GPUs in a tensor parallel\n        # group are in the same node. However, the GPUs may span multiple nodes.\n        num_gpus_per_node = parallel_config.tensor_parallel_size\n        cpu_memory_usage = self.swap_space_bytes * num_gpus_per_node\n\n        msg = (\n            f\"{cpu_memory_usage / _GB:.2f} GiB out of \"\n            f\"the {total_cpu_memory / _GB:.2f} GiB total CPU memory is \"\n            \"allocated for the swap space.\"","sourceCodeStart":299,"sourceCodeEnd":335,"githubUrl":"https://github.com/2noise/ChatTTS/blob/77b89ee281cd479f5b1a787ada330dc975ca1f2a/ChatTTS/model/velocity/configs.py#L299-L335","documentation":"Error \"GPU memory utilization must be less than 1.0. Got {self.gpu_memory_utilization}.\" thrown in 2noise/ChatTTS.","triggerScenarios":"Thrown at ChatTTS/model/velocity/configs.py:317 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":"77b89ee281cd479f5b1a787ada330dc975ca1f2a","analyzedAt":"2026-08-26T17:48:24.233Z","schemaVersion":2},"datasetVersion":"2026-08-26T21:11:00.512Z"}