{"record":{"id":"f6e8f5ca3cc9a6e0","repo":"2noise/ChatTTS","slug":"self-quantization-quantization-is-currently-not","errorCode":null,"errorMessage":"{self.quantization} quantization is currently not supported in ROCm.","messagePattern":"(.+?) quantization is currently not supported in ROCm\\.","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"ChatTTS/model/velocity/configs.py","lineNumber":186,"sourceCode":"            hf_quant_method = str(hf_quant_config[\"quant_method\"]).lower()\n            if self.quantization is None:\n                self.quantization = hf_quant_method\n            elif self.quantization != hf_quant_method:\n                raise ValueError(\n                    \"Quantization method specified in the model config \"\n                    f\"({hf_quant_method}) does not match the quantization \"\n                    f\"method specified in the `quantization` argument \"\n                    f\"({self.quantization}).\"\n                )\n\n        if self.quantization is not None:\n            if self.quantization not in supported_quantization:\n                raise ValueError(\n                    f\"Unknown quantization method: {self.quantization}. Must \"\n                    f\"be one of {supported_quantization}.\"\n                )\n            if is_hip() and self.quantization in rocm_not_supported_quantization:\n                raise ValueError(\n                    f\"{self.quantization} quantization is currently not supported \"\n                    f\"in ROCm.\"\n                )\n            logger.warning(\n                f\"{self.quantization} quantization is not fully \"\n                \"optimized yet. The speed can be slower than \"\n                \"non-quantized models.\"\n            )\n\n    def _verify_cuda_graph(self) -> None:\n        if self.max_context_len_to_capture is None:\n            self.max_context_len_to_capture = self.max_model_len\n        self.max_context_len_to_capture = min(\n            self.max_context_len_to_capture, self.max_model_len\n        )\n\n    def verify_with_parallel_config(\n        self,","sourceCodeStart":168,"sourceCodeEnd":204,"githubUrl":"https://github.com/2noise/ChatTTS/blob/77b89ee281cd479f5b1a787ada330dc975ca1f2a/ChatTTS/model/velocity/configs.py#L168-L204","documentation":"Error \"{self.quantization} quantization is currently not supported in ROCm.\" thrown in 2noise/ChatTTS.","triggerScenarios":"Thrown at ChatTTS/model/velocity/configs.py:186 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"}