From 907ffbec009ae42aefb93c19c114cc56f9175511 Mon Sep 17 00:00:00 2001 From: Ivan Pegashev Date: Sun, 12 May 2024 23:53:05 +0300 Subject: [PATCH] bugfix(chat): fix repeat_penalty for codegemma chat model --- src/common/chat/localChat.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/chat/localChat.ts b/src/common/chat/localChat.ts index 5306633..ead1d02 100644 --- a/src/common/chat/localChat.ts +++ b/src/common/chat/localChat.ts @@ -17,7 +17,7 @@ const defualtParameters = { temperature: 0.7, stop: [], repeat_last_n: 256, - repeat_penalty: 1.18, + repeat_penalty: 1, penalize_nl: false, top_k: 20, top_p: 0.5,