wp931120 / LongChainKBQA

kbqa,langchain,large langauge model, chatgpt
78 stars 14 forks source link

换了模型,运行失败 #4

Open cookie925 opened 9 months ago

cookie925 commented 9 months ago

把模型换成了llama,显示没有chat()函数。就是在llm.py文件中,有一段代码: response, _ = self.model.chat( self.tokenizer, prompt, history=self.history, max_length=self.max_token, temperature=self.temperature, ),请问这个chat函数的具体内容在哪里可以看呢,点击它是无法跳转的,而且在t5模型中也没有找到相关函数

xihaofei commented 8 months ago

把模型换成了llama,显示没有chat()函数。就是在llm.py文件中,有一段代码: response, _ = self.model.chat( self.tokenizer, prompt, history=self.history, max_length=self.max_token, temperature=self.temperature, ),请问这个chat函数的具体内容在哪里可以看呢,点击它是无法跳转的,而且在t5模型中也没有找到相关函数

请问这个问题最终解决了吗,是怎么解决的呢?