fix typo
This commit is contained in:
parent
cd443a6e06
commit
fc46a21ab7
|
@ -285,7 +285,7 @@ Let's! *I take a seat next to you* What should we do today? I'm up for anything.
|
|||
|
||||
::NOTE::`,
|
||||
temperature: 0.9,
|
||||
repititionPenalty: 1.15,
|
||||
repetitionPenalty: 1.25,
|
||||
startSequence: '<s>',
|
||||
stopSequence: '###,User:,</s>,Current user prompt:',
|
||||
aggressiveStop: true,
|
||||
|
|
|
@ -116,7 +116,7 @@ const defaults:ChatSettings = {
|
|||
systemMessageStart: '',
|
||||
systemMessageEnd: '',
|
||||
leadPrompt: '',
|
||||
repititionPenalty: 1,
|
||||
repetitionPenalty: 1,
|
||||
// useResponseAlteration: false,
|
||||
// responseAlterations: [],
|
||||
isDirty: false
|
||||
|
@ -504,7 +504,7 @@ const chatSettingsList: ChatSetting[] = [
|
|||
hide: hideModelSetting
|
||||
},
|
||||
{
|
||||
key: 'repititionPenalty',
|
||||
key: 'repetitionPenalty',
|
||||
name: 'Repitition Penalty',
|
||||
title: 'Number between 1.0 and infinity. Penalize new tokens based on whether they appear in the text so far, increasing the model\'s likelihood to talk about new topics.',
|
||||
min: 0,
|
||||
|
|
|
@ -94,7 +94,7 @@ export type ChatSettings = {
|
|||
leadPrompt: string;
|
||||
systemMessageStart: string;
|
||||
systemMessageEnd: string;
|
||||
repititionPenalty: number;
|
||||
repetitionPenalty: number;
|
||||
isDirty?: boolean;
|
||||
} & Request;
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ const hiddenSettings = {
|
|||
assistantMessageEnd: true,
|
||||
systemMessageStart: true,
|
||||
systemMessageEnd: true,
|
||||
repititionPenalty: true
|
||||
repetitionPenalty: true
|
||||
// leadPrompt: true
|
||||
}
|
||||
|
||||
|
|
|
@ -150,7 +150,7 @@ export const chatRequest = async (
|
|||
do_sample: 1, // enable top p and the like
|
||||
temperature,
|
||||
top_p: topP,
|
||||
repitition_penalty: chatSettings.repititionPenalty
|
||||
repitition_penalty: chatSettings.repetitionPenalty
|
||||
} as any
|
||||
if (stopSequencesC.length) petalsRequest.extra_stop_sequences = stopSequencesC
|
||||
// Update token count
|
||||
|
|
Loading…
Reference in New Issue