From ed345abac81accdb6679d2a3ff8f68b8ddaddb1b Mon Sep 17 00:00:00 2001 From: HanishKVC Date: Sun, 26 May 2024 22:09:32 +0530 Subject: [PATCH] SimpleChat:DU:Avoid setting frequence/Presence penalty Some models like llama3 found to try to be over intelligent by repeating garbage still, but by tweaking the garbage a bit so that it is not exactly same. So avoid setting these penalties and let the model's default behaviour work out, as is. Also the simple minded histogram based garbage trimming from end, works to an extent, when the garbage is more predictable and repeatative. --- examples/server/public_simplechat/simplechat.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/server/public_simplechat/simplechat.js b/examples/server/public_simplechat/simplechat.js index 2e44ee14a..6da12fcc6 100644 --- a/examples/server/public_simplechat/simplechat.js +++ b/examples/server/public_simplechat/simplechat.js @@ -540,9 +540,9 @@ class Me { this.chatRequestOptions = { "temperature": 0.7, "max_tokens": 1024, - "frequency_penalty": 1.2, - "presence_penalty": 1.2, - "n_predict": 1024 + "n_predict": 1024, + //"frequency_penalty": 1.2, + //"presence_penalty": 1.2, }; }