{"record":{"id":"a2442b8f069473e7","repo":"2noise/ChatTTS","slug":"unknown-tokenizer-mode-self-tokenizer-mode-mus","errorCode":null,"errorMessage":"Unknown tokenizer mode: {self.tokenizer_mode}. Must be either 'auto' or 'slow'.","messagePattern":"Unknown tokenizer mode: (.+?)\\. Must be either 'auto' or 'slow'\\.","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"ChatTTS/model/velocity/configs.py","lineNumber":153,"sourceCode":"            raise ValueError(\n                f\"load format '{load_format}' is not supported in ROCm. \"\n                f\"Supported load format are \"\n                f\"{rocm_supported_load_format}\"\n            )\n\n        # TODO: Remove this check once HF updates the pt weights of Mixtral.\n        architectures = getattr(self.hf_config, \"architectures\", [])\n        if \"MixtralForCausalLM\" in architectures and load_format == \"pt\":\n            raise ValueError(\n                \"Currently, the 'pt' format is not supported for Mixtral. \"\n                \"Please use the 'safetensors' format instead. \"\n            )\n        self.load_format = load_format\n\n    def _verify_tokenizer_mode(self) -> None:\n        tokenizer_mode = self.tokenizer_mode.lower()\n        if tokenizer_mode not in [\"auto\", \"slow\"]:\n            raise ValueError(\n                f\"Unknown tokenizer mode: {self.tokenizer_mode}. Must be \"\n                \"either 'auto' or 'slow'.\"\n            )\n        self.tokenizer_mode = tokenizer_mode\n\n    def _verify_quantization(self) -> None:\n        supported_quantization = [\"awq\", \"gptq\", \"squeezellm\"]\n        rocm_not_supported_quantization = [\"awq\"]\n        if self.quantization is not None:\n            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:","sourceCodeStart":135,"sourceCodeEnd":171,"githubUrl":"https://github.com/2noise/ChatTTS/blob/77b89ee281cd479f5b1a787ada330dc975ca1f2a/ChatTTS/model/velocity/configs.py#L135-L171","documentation":"Error \"Unknown tokenizer mode: {self.tokenizer_mode}. Must be either 'auto' or 'slow'.\" thrown in 2noise/ChatTTS.","triggerScenarios":"Thrown at ChatTTS/model/velocity/configs.py:153 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"}