From 822e5cac2b4bf6a681d08400bd95dd699e01c9e2 Mon Sep 17 00:00:00 2001 From: Pi Date: Fri, 24 Mar 2023 19:48:52 -0700 Subject: [PATCH] fixed slow generation speed --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 9694193..d1d02e6 100644 --- a/index.js +++ b/index.js @@ -174,7 +174,7 @@ function initChat() { }); } }); - runningShell.write(`[System.Console]::OutputEncoding=[System.Console]::InputEncoding=[System.Text.Encoding]::UTF8; ."${path.resolve(__dirname, "bin", "chat.exe")}" -m "${modelPath}" --temp 0.9 --top_k 420 --top_p 0.9 --threads ${threads} --repeat_last_n 99999\r`); + runningShell.write(`[System.Console]::OutputEncoding=[System.Console]::InputEncoding=[System.Text.Encoding]::UTF8; ."${path.resolve(__dirname, "bin", "chat.exe")}" -m "${modelPath}" --temp 0.9 --top_k 420 --top_p 0.9 --threads ${threads} --repeat_last_n 128\r`); } ipcMain.on("startChat", () => { initChat();