{"record":{"id":"530b682b1933a439","repo":"2noise/ChatTTS","slug":"load-format-load-format-is-not-supported-in-ro","errorCode":null,"errorMessage":"load format '{load_format}' is not supported in ROCm. Supported load format are {rocm_supported_load_format}","messagePattern":"load format '(.+?)' is not supported in ROCm\\. Supported load format are (.+?)","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"ChatTTS/model/velocity/configs.py","lineNumber":135,"sourceCode":"        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\":\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(","sourceCodeStart":117,"sourceCodeEnd":153,"githubUrl":"https://github.com/2noise/ChatTTS/blob/77b89ee281cd479f5b1a787ada330dc975ca1f2a/ChatTTS/model/velocity/configs.py#L117-L153","documentation":"Error \"load format '{load_format}' is not supported in ROCm. Supported load format are {rocm_supported_load_format}\" thrown in 2noise/ChatTTS.","triggerScenarios":"Thrown at ChatTTS/model/velocity/configs.py:135 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"}