Skip to content

Commit

Permalink
fixed slow generation speed
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsPi3141 committed Mar 25, 2023
1 parent a1e541e commit 822e5ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 822e5ca

Please sign in to comment.