From e7b06a9072cfa301e5e148a3ac113953fe9073c1 Mon Sep 17 00:00:00 2001 From: glide-the <2533736852@qq.com> Date: Thu, 25 May 2023 20:58:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=B5=81=E5=BC=8F=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E4=B8=AD=E7=9A=84=E7=BC=93=E5=AD=98=E6=B8=85=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/chatglm_llm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/chatglm_llm.py b/models/chatglm_llm.py index ea53737..ec8d052 100644 --- a/models/chatglm_llm.py +++ b/models/chatglm_llm.py @@ -63,7 +63,7 @@ class ChatGLM(BaseAnswer, LLM, ABC): temperature=self.temperature, stopping_criteria=stopping_criteria_list )): - self.checkPoint.clear_torch_cache() + # self.checkPoint.clear_torch_cache() history[-1] = [prompt, stream_resp] answer_result = AnswerResult() answer_result.history = history