This commit is contained in:
Hongji Zhu 2025-01-14 02:20:31 +00:00
parent b9e66654a5
commit 1016cda8e0

View File

@ -152,7 +152,7 @@ class MiniCPMO(MiniCPMOPreTrainedModel):
tts_text_tokenizer_path = os.path.join(self.config._name_or_path, "assets/chattts_tokenizer")
if not os.path.exists(tts_text_tokenizer_path):
# try from hf model_id
tts_text_tokenizer_path = "bokesyo/chattts_tokenizer"
tts_text_tokenizer_path = "openbmb/chattts_tokenizer"
tts_text_tokenizer = BertTokenizerFast.from_pretrained(tts_text_tokenizer_path)
self.tts_processor = ChatTTSProcessor(text_tokenizer=tts_text_tokenizer)