Skip to content

Commit

Permalink
Move enabledSamplers to the Session state
Browse files Browse the repository at this point in the history
  • Loading branch information
lmg-anon authored Oct 16, 2024
1 parent 53788ac commit cc7a16c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mikupad.html
Original file line number Diff line number Diff line change
Expand Up @@ -4723,7 +4723,8 @@
'instSuf': '<end_of_turn>\\n<start_of_turn>model\\n',
},
},
scrollTop: 0
scrollTop: 0,
enabledSamplers: ['temperature', 'rep_pen', 'pres_pen', 'freq_pen', 'mirostat', 'top_k', 'top_p', 'min_p'],
};

function joinPrompt(prompt) {
Expand Down Expand Up @@ -4927,7 +4928,7 @@
const [authorNoteDepth, setAuthorNoteDepth] = useSessionState('authorNoteDepth', defaultPresets.authorNoteDepth);
const [worldInfo, setWorldInfo] = useSessionState('worldInfo', defaultPresets.worldInfo);
const [sillyTarvernWorldInfoJSON, setSillyTarvernWorldInfoJSON] = useState(null);
const [enabledSamplers, setEnabledSamplers] = usePersistentState('enabledSamplers', ['temperature', 'rep_pen', 'pres_pen', 'freq_pen', 'mirostat', 'top_k', 'top_p', 'min_p']);
const [enabledSamplers, setEnabledSamplers] = useSessionState('enabledSamplers', defaultPresets.enabledSamplers);
const [grammar, setGrammar] = useSessionState('grammar', '');


Expand Down

0 comments on commit cc7a16c

Please sign in to comment.