{"record":{"id":"027f09513c8f9c97","repo":"2noise/ChatTTS","slug":"unknown-load-format-self-load-format-must-be-o","errorCode":null,"errorMessage":"Unknown load format: {self.load_format}. Must be one of 'auto', 'pt', 'safetensors', 'npcache', or 'dummy'.","messagePattern":"Unknown load format: (.+?)\\. Must be one of 'auto', 'pt', 'safetensors', 'npcache', or 'dummy'\\.","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"ChatTTS/model/velocity/configs.py","lineNumber":125,"sourceCode":"            )\n            self.model = model_path\n            self.download_dir = model_path\n            self.tokenizer = model_path\n\n        self.hf_config = get_config(self.model, trust_remote_code, revision)\n        self.dtype = _get_and_verify_dtype(self.hf_config, dtype)\n        self.max_model_len = _get_and_verify_max_len(self.hf_config, max_model_len)\n        self._verify_load_format()\n        self._verify_tokenizer_mode()\n        self._verify_quantization()\n        self._verify_cuda_graph()\n\n    def _verify_load_format(self) -> None:\n        load_format = self.load_format.lower()\n        supported_load_format = [\"auto\", \"pt\", \"safetensors\", \"npcache\", \"dummy\"]\n        rocm_not_supported_load_format = []\n        if load_format not in supported_load_format:\n            raise ValueError(\n                f\"Unknown load format: {self.load_format}. Must be one of \"\n                \"'auto', 'pt', 'safetensors', 'npcache', or 'dummy'.\"\n            )\n        if is_hip() and load_format in rocm_not_supported_load_format:\n            rocm_supported_load_format = [\n                f\n                for f in supported_load_format\n                if (f not in rocm_not_supported_load_format)\n            ]\n            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\":","sourceCodeStart":107,"sourceCodeEnd":143,"githubUrl":"https://github.com/2noise/ChatTTS/blob/77b89ee281cd479f5b1a787ada330dc975ca1f2a/ChatTTS/model/velocity/configs.py#L107-L143","documentation":"Error \"Unknown load format: {self.load_format}. Must be one of 'auto', 'pt', 'safetensors', 'npcache', or 'dummy'.\" thrown in 2noise/ChatTTS.","triggerScenarios":"Thrown at ChatTTS/model/velocity/configs.py:125 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"}