This commit is contained in:
Webifi 2023-08-20 14:01:01 -05:00
parent 754f8b5d69
commit 3593744035
2 changed files with 2 additions and 2 deletions

View File

@ -505,7 +505,7 @@ const chatSettingsList: ChatSetting[] = [
},
{
key: 'repetitionPenalty',
name: 'Repitition Penalty',
name: 'Repetition 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,
max: 1000,

View File

@ -150,7 +150,7 @@ export const chatRequest = async (
do_sample: 1, // enable top p and the like
temperature,
top_p: topP,
repitition_penalty: chatSettings.repetitionPenalty
repetition_penalty: chatSettings.repetitionPenalty
} as any
if (stopSequencesC.length) petalsRequest.extra_stop_sequences = stopSequencesC
// Update token count