From 90a282f920018b64f17d575ca307f1bda43c827f Mon Sep 17 00:00:00 2001 From: zhaohu xing <920232796@qq.com> Date: Thu, 27 Jul 2023 17:03:08 +0800 Subject: [PATCH] fix messy code bug --- flagai/model/predictor/aquila_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flagai/model/predictor/aquila_server.py b/flagai/model/predictor/aquila_server.py index d679b18a..5ce7e0ea 100644 --- a/flagai/model/predictor/aquila_server.py +++ b/flagai/model/predictor/aquila_server.py @@ -92,7 +92,7 @@ def aquila_generate_by_ids_stream( if len(next_token_list) == 0: next_token_list.append(next_token.cpu().numpy()[0]) else: - #print(tmp) + tmp.replace("�", "") next_token_list = [] res_list += tmp if len(res_list) >= 10: