Skip to content

Commit

Permalink
adjust prompt params-004
Browse files Browse the repository at this point in the history
  • Loading branch information
Ifiht committed Apr 25, 2024
1 parent 40c0385 commit 6762211
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/modules/discord/discord.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ def format_question(prompt)
"stream" => false, # keep false, breaks if true
"seed" => i, # Set the random number generator (RNG) seed.
"n_predict" => 500, # notes
"temperature" => 0.45, # was:0, def:0-1, higher is more creative
"temperature" => 0.55, # was:0, def:0-1, higher is more creative
"stop" => ["\n@User:"], # notes
"repeat_last_n" => 128, # Last n tokens to consider for penalizing repetition. 0 is disabled and -1 is ctx-size.
"repeat_penalty" => 1.1, # Control the repetition of token sequences in the generated text.
"top_k" => 25, # was:20, def:40
"top_p" => 0.7, # def:0.95, higher finds better predictions, but slower
"top_k" => 30, # was:20, def:40
"top_p" => 0.8, # def:0.95, higher finds better predictions, but slower
"tfs_z" => 1, # https://www.trentonbricken.com/Tail-Free-Sampling/
"typical_p" => 1, # notes
"presence_penalty" => 0, # notes
Expand Down
2 changes: 1 addition & 1 deletion src/modules/llama/startup.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"prompt": "You are Wayland. Wayland is a helpful and honest AI. Wayland always responds quickly, and tries to empathize with humans whenever possible.",
"prompt": "You are Wayland. Wayland is a helpful and honest AI. Wayland always responds quickly and with respect.",
"anti_prompt": "@User:",
"assistant_name": "@Wayland:"
}

0 comments on commit 6762211

Please sign in to comment.