2022-01-25 06:10:39 +01:00
gensettingstf = [
{
" uitype " : " slider " ,
" unit " : " int " ,
" label " : " Amount to Generate " ,
" id " : " setoutput " ,
" min " : 16 ,
" max " : 512 ,
" step " : 2 ,
" default " : 80 ,
" tooltip " : " Number of tokens the AI should generate. Higher numbers will take longer to generate. "
} ,
{
2021-05-07 20:32:10 +02:00
" uitype " : " slider " ,
" unit " : " float " ,
" label " : " Temperature " ,
" id " : " settemp " ,
" min " : 0.1 ,
" max " : 2.0 ,
" step " : 0.05 ,
2021-08-19 12:54:44 +02:00
" default " : 0.5 ,
2021-05-07 20:32:10 +02:00
" tooltip " : " Randomness of sampling. High values can increase creativity but may make text less sensible. Lower values will make text more predictable but can become repetitious. "
} ,
{
" uitype " : " slider " ,
" unit " : " float " ,
" label " : " Top p Sampling " ,
" id " : " settopp " ,
2021-08-19 14:47:57 +02:00
" min " : 0.0 ,
2021-05-07 20:32:10 +02:00
" max " : 1.0 ,
" step " : 0.05 ,
2021-08-19 12:54:44 +02:00
" default " : 0.9 ,
2021-08-24 01:18:09 +02:00
" tooltip " : " Used to discard unlikely text in the sampling process. Lower values will make text more predictable but can become repetitious. (Put this value on 1 to disable its effect) "
2021-08-19 14:47:57 +02:00
} ,
{
" uitype " : " slider " ,
" unit " : " int " ,
" label " : " Top k Sampling " ,
" id " : " settopk " ,
" min " : 0 ,
" max " : 100 ,
" step " : 1 ,
" default " : 0 ,
2021-08-24 01:18:09 +02:00
" tooltip " : " Alternative sampling method, can be combined with top_p. (Put this value on 0 to disable its effect) "
2021-08-19 14:47:57 +02:00
} ,
{
" uitype " : " slider " ,
" unit " : " float " ,
" label " : " Tail-free Sampling " ,
" id " : " settfs " ,
" min " : 0.0 ,
" max " : 1.0 ,
" step " : 0.05 ,
2022-03-27 22:25:50 +02:00
" default " : 1.0 ,
2021-08-24 01:18:09 +02:00
" tooltip " : " Alternative sampling method; it is recommended to disable top_p and top_k (set top_p to 1 and top_k to 0) if using this. 0.95 is thought to be a good value. (Put this value on 1 to disable its effect) "
2021-05-07 20:32:10 +02:00
} ,
{
" uitype " : " slider " ,
" unit " : " float " ,
2022-03-27 22:25:50 +02:00
" label " : " Typical Sampling " ,
" id " : " settypical " ,
" min " : 0.0 ,
" max " : 1.0 ,
" step " : 0.05 ,
" default " : 1.0 ,
" tooltip " : " Alternative sampling method described in the paper \" Typical Decoding for Natural Language Generation \" (10.48550/ARXIV.2202.00666). The paper suggests 0.2 as a good value for this setting. Set this setting to 1 to disable its effect. "
} ,
{
" uitype " : " slider " ,
" unit " : " float " ,
2021-05-07 20:32:10 +02:00
" label " : " Repetition Penalty " ,
" id " : " setreppen " ,
" min " : 1.0 ,
2021-12-28 03:22:14 +01:00
" max " : 3.0 ,
2021-11-29 08:28:51 +01:00
" step " : 0.01 ,
2021-08-19 12:54:44 +02:00
" default " : 1.1 ,
2021-12-28 03:22:14 +01:00
" tooltip " : " Used to penalize words that were already generated or belong to the context (Going over 1.2 breaks 6B models). "
2021-05-07 20:32:10 +02:00
} ,
{
" uitype " : " slider " ,
" unit " : " int " ,
2022-01-24 21:30:38 +01:00
" label " : " Rep Penalty Range " ,
" id " : " setreppenrange " ,
" min " : 0 ,
" max " : 4096 ,
" step " : 4 ,
" default " : 0 ,
" tooltip " : " Repetition penalty range. If set higher than 0, only applies repetition penalty to the last few tokens of your story rather than applying it to the entire story. This slider controls the amount of tokens at the end of your story to apply it to. "
} ,
{
" uitype " : " slider " ,
" unit " : " float " ,
" label " : " Rep Penalty Slope " ,
" id " : " setreppenslope " ,
" min " : 0.0 ,
" max " : 10.0 ,
" step " : 0.1 ,
" default " : 0.0 ,
" tooltip " : " Repetition penalty slope. If BOTH this setting and Rep Penalty Range are set higher than 0, will use sigmoid interpolation to apply repetition penalty more strongly on tokens that are closer to the end of your story. This setting controls the tension of the sigmoid curve; higher settings will result in the repetition penalty difference between the start and end of your story being more apparent. Setting this to 1 uses linear interpolation; setting this to 0 disables interpolation. "
2021-05-07 20:32:10 +02:00
} ,
{
" uitype " : " slider " ,
" unit " : " int " ,
" label " : " Max Tokens " ,
" id " : " settknmax " ,
" min " : 512 ,
2021-08-24 01:18:09 +02:00
" max " : 2048 ,
2021-05-07 20:32:10 +02:00
" step " : 8 ,
2021-08-19 12:54:44 +02:00
" default " : 1024 ,
2021-05-08 01:04:51 +02:00
" tooltip " : " Max number of tokens of context to submit to the AI for sampling. Make sure this is higher than Amount to Generate. Higher values increase VRAM/RAM usage. "
2021-05-29 11:46:03 +02:00
} ,
{
" uitype " : " slider " ,
" unit " : " int " ,
" label " : " Gens Per Action " ,
" id " : " setnumseq " ,
" min " : 1 ,
" max " : 5 ,
" step " : 1 ,
" default " : 1 ,
" tooltip " : " Number of results to generate per submission. Increases VRAM/RAM usage. "
} ,
{
" uitype " : " slider " ,
" unit " : " int " ,
" label " : " W Info Depth " ,
" id " : " setwidepth " ,
" min " : 1 ,
" max " : 5 ,
" step " : 1 ,
2021-08-19 12:54:44 +02:00
" default " : 3 ,
2021-05-29 11:46:03 +02:00
" tooltip " : " Number of historic actions to scan for W Info keys. "
} ,
2022-01-20 19:23:23 +01:00
{
" uitype " : " toggle " ,
" unit " : " bool " ,
" label " : " Auto Save " ,
" id " : " autosave " ,
" min " : 0 ,
" max " : 1 ,
" step " : 1 ,
" default " : 0 ,
" tooltip " : " Whether the game is saved after each action. "
} ,
2021-05-29 11:46:03 +02:00
{
" uitype " : " toggle " ,
" unit " : " bool " ,
" label " : " Always Add Prompt " ,
" id " : " setuseprompt " ,
" min " : 0 ,
" max " : 1 ,
" step " : 1 ,
" default " : 1 ,
" tooltip " : " Whether the prompt should be sent in the context of every action. "
2021-12-26 01:51:32 +01:00
} ,
{
" uitype " : " toggle " ,
" unit " : " bool " ,
2022-01-20 19:23:23 +01:00
" label " : " Adventure Mode " ,
" id " : " setadventure " ,
2021-12-26 01:51:32 +01:00
" min " : 0 ,
" max " : 1 ,
" step " : 1 ,
" default " : 0 ,
2022-01-20 19:23:23 +01:00
" tooltip " : " Turn this on if you are playing a Choose your Adventure model. "
2021-08-19 13:18:01 +02:00
} ,
{
" uitype " : " toggle " ,
" unit " : " bool " ,
2022-01-20 19:23:23 +01:00
" label " : " Chat Mode " ,
" id " : " setchatmode " ,
2021-08-19 13:18:01 +02:00
" min " : 0 ,
" max " : 1 ,
" step " : 1 ,
" default " : 0 ,
2022-01-20 19:23:23 +01:00
" tooltip " : " This mode optimizes KoboldAI for chatting. "
2021-11-03 17:18:48 +01:00
} ,
{
" uitype " : " toggle " ,
" unit " : " bool " ,
" label " : " Dynamic WI Scan " ,
" id " : " setdynamicscan " ,
" min " : 0 ,
" max " : 1 ,
" step " : 1 ,
" default " : 0 ,
2021-11-17 22:17:59 +01:00
" tooltip " : " Scan the AI ' s output for world info keys as it ' s generating the output. "
2021-12-16 12:47:44 +01:00
} ,
{
" uitype " : " toggle " ,
" unit " : " bool " ,
" label " : " No Prompt Generation " ,
" id " : " setnopromptgen " ,
" min " : 0 ,
" max " : 1 ,
" step " : 1 ,
" default " : 0 ,
" tooltip " : " When enabled the AI does not generate when you enter the prompt, instead you need to do an action first. "
2021-12-30 05:15:59 +01:00
} ,
{
" uitype " : " toggle " ,
" unit " : " bool " ,
" label " : " Random Story Persist " ,
" id " : " setrngpersist " ,
" min " : 0 ,
" max " : 1 ,
" step " : 1 ,
" default " : 0 ,
" tooltip " : " When enabled, the Memory text box in the Random Story dialog will be prefilled by default with your current story ' s memory instead of being empty. "
2022-01-16 05:31:07 +01:00
} ,
{
" uitype " : " toggle " ,
" unit " : " bool " ,
" label " : " No Genmod " ,
" id " : " setnogenmod " ,
" min " : 0 ,
" max " : 1 ,
" step " : 1 ,
" default " : 0 ,
2022-01-20 19:23:23 +01:00
" tooltip " : " Disables userscript generation modifiers. "
2022-01-24 18:54:44 +01:00
} ,
{
" uitype " : " toggle " ,
" unit " : " bool " ,
" label " : " Debug " ,
" id " : " debug " ,
" min " : 0 ,
" max " : 1 ,
" step " : 1 ,
" default " : 0 ,
" tooltip " : " Show debug info "
2022-01-20 19:23:23 +01:00
}
]
2021-05-07 20:32:10 +02:00
gensettingsik = [ {
" uitype " : " slider " ,
" unit " : " float " ,
" label " : " Temperature " ,
" id " : " settemp " ,
" min " : 0.1 ,
" max " : 2.0 ,
" step " : 0.05 ,
2021-08-19 12:54:44 +02:00
" default " : 0.5 ,
2021-05-07 20:32:10 +02:00
" tooltip " : " Randomness of sampling. High values can increase creativity but may make text less sensible. Lower values will make text more predictable but can become repetitious. "
} ,
{
" uitype " : " slider " ,
" unit " : " float " ,
" label " : " Top p Sampling " ,
" id " : " settopp " ,
2021-08-19 14:47:57 +02:00
" min " : 0.0 ,
2021-05-07 20:32:10 +02:00
" max " : 1.0 ,
" step " : 0.05 ,
2021-08-19 12:54:44 +02:00
" default " : 1.1 ,
2021-05-07 20:32:10 +02:00
" tooltip " : " Used to discard unlikely text in the sampling process. Lower values will make text more predictable but can become repetitious. "
} ,
2021-08-19 14:47:57 +02:00
{
" uitype " : " slider " ,
" unit " : " int " ,
" label " : " Top k Sampling " ,
" id " : " settopk " ,
" min " : 0 ,
" max " : 100 ,
" step " : 1 ,
" default " : 0 ,
" tooltip " : " Alternative sampling method, can be combined with top_p. "
} ,
{
" uitype " : " slider " ,
" unit " : " float " ,
" label " : " Tail-free Sampling " ,
" id " : " settfs " ,
" min " : 0.0 ,
" max " : 1.0 ,
" step " : 0.05 ,
" default " : 0.0 ,
" tooltip " : " Alternative sampling method; it is recommended to disable (set to 0) top_p and top_k if using this. 0.95 is thought to be a good value. "
} ,
2021-05-07 20:32:10 +02:00
{
" uitype " : " slider " ,
" unit " : " int " ,
" label " : " Amount to Generate " ,
" id " : " setikgen " ,
" min " : 50 ,
" max " : 3000 ,
" step " : 2 ,
" default " : 200 ,
" tooltip " : " Number of characters the AI should generate. "
2021-05-29 11:46:03 +02:00
} ,
{
" uitype " : " slider " ,
" unit " : " int " ,
" label " : " W Info Depth " ,
" id " : " setwidepth " ,
" min " : 1 ,
" max " : 5 ,
" step " : 1 ,
2021-08-19 12:54:44 +02:00
" default " : 3 ,
2021-05-29 11:46:03 +02:00
" tooltip " : " Number of historic actions to scan for W Info keys. "
} ,
2022-01-20 19:23:23 +01:00
{
" uitype " : " toggle " ,
" unit " : " bool " ,
" label " : " Auto Save " ,
" id " : " autosave " ,
" min " : 0 ,
" max " : 1 ,
" step " : 1 ,
" default " : 0 ,
" tooltip " : " Whether the game is saved after each action. "
} ,
2021-05-29 11:46:03 +02:00
{
" uitype " : " toggle " ,
" unit " : " bool " ,
" label " : " Always Add Prompt " ,
" id " : " setuseprompt " ,
" min " : 0 ,
" max " : 1 ,
" step " : 1 ,
" default " : 1 ,
" tooltip " : " Whether the prompt should be sent in the context of every action. "
2021-08-19 13:18:01 +02:00
} ,
{
" uitype " : " toggle " ,
" unit " : " bool " ,
2022-01-20 19:23:23 +01:00
" label " : " Adventure Mode " ,
" id " : " setadventure " ,
2021-12-26 01:51:32 +01:00
" min " : 0 ,
" max " : 1 ,
" step " : 1 ,
" default " : 0 ,
2022-01-20 19:23:23 +01:00
" tooltip " : " Turn this on if you are playing a Choose your Adventure model. "
2021-12-26 01:51:32 +01:00
} ,
{
" uitype " : " toggle " ,
" unit " : " bool " ,
2022-01-20 19:23:23 +01:00
" label " : " Chat Mode " ,
" id " : " setchatmode " ,
2021-08-19 13:18:01 +02:00
" min " : 0 ,
" max " : 1 ,
" step " : 1 ,
" default " : 0 ,
2022-01-20 19:23:23 +01:00
" tooltip " : " This mode optimizes KoboldAI for chatting. "
2021-12-30 05:15:59 +01:00
} ,
{
" uitype " : " toggle " ,
" unit " : " bool " ,
" label " : " No Prompt Generation " ,
" id " : " setnopromptgen " ,
" min " : 0 ,
" max " : 1 ,
" step " : 1 ,
" default " : 0 ,
" tooltip " : " When enabled the AI does not generate when you enter the prompt, instead you need to do an action first. "
} ,
{
" uitype " : " toggle " ,
" unit " : " bool " ,
" label " : " Random Story Persist " ,
" id " : " setrngpersist " ,
" min " : 0 ,
" max " : 1 ,
" step " : 1 ,
" default " : 0 ,
" tooltip " : " When enabled, the Memory text box in the Random Story dialog will be prefilled by default with your current story ' s memory instead of being empty. "
2022-01-24 18:54:44 +01:00
} ,
{
" uitype " : " toggle " ,
" unit " : " bool " ,
" label " : " Debug " ,
" id " : " debug " ,
" min " : 0 ,
" max " : 1 ,
" step " : 1 ,
" default " : 0 ,
" tooltip " : " Show debug info "
2022-01-20 19:23:23 +01:00
}
]
2021-05-11 01:17:10 +02:00
formatcontrols = [ {
" label " : " Trim incomplete sentences " ,
" id " : " frmttriminc " ,
" tooltip " : " Remove text after last sentence closure. If no closure is found, all tokens will be returned. "
} ,
{
" label " : " Remove blank lines " ,
" id " : " frmtrmblln " ,
" tooltip " : " Replace double newlines ( \\ n \\ n) with single newlines to avoid blank lines. "
} ,
{
" label " : " Remove special characters " ,
" id " : " frmtrmspch " ,
" tooltip " : " Remove special characters (@,#, % ,^, etc) "
} ,
{
" label " : " Add sentence spacing " ,
" id " : " frmtadsnsp " ,
" tooltip " : " If the last action ended with punctuation, add a space to the beginning of the next action. "
2021-10-23 17:30:48 +02:00
} ,
{
" label " : " Single Line " ,
" id " : " singleline " ,
" tooltip " : " Only allows the AI to output anything before the enter "
2021-12-28 03:22:14 +01:00
} ]