{"record":{"id":"3dc24ed179dca735","repo":"2noise/ChatTTS","slug":"unknown-quantization-method-self-quantization","errorCode":null,"errorMessage":"Unknown quantization method: {self.quantization}. Must be one of {supported_quantization}.","messagePattern":"Unknown quantization method: (.+?)\\. Must be one of (.+?)\\.","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"ChatTTS/model/velocity/configs.py","lineNumber":181,"sourceCode":"            self.quantization = self.quantization.lower()\n\n        # Parse quantization method from the HF model config, if available.\n        hf_quant_config = getattr(self.hf_config, \"quantization_config\", None)\n        if hf_quant_config is not None:\n            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(","sourceCodeStart":163,"sourceCodeEnd":199,"githubUrl":"https://github.com/2noise/ChatTTS/blob/77b89ee281cd479f5b1a787ada330dc975ca1f2a/ChatTTS/model/velocity/configs.py#L163-L199","documentation":"Error \"Unknown quantization method: {self.quantization}. Must be one of {supported_quantization}.\" thrown in 2noise/ChatTTS.","triggerScenarios":"Thrown at ChatTTS/model/velocity/configs.py:181 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"}