Merge pull request #3017 from Beinsezii/lcpp-dry-fix llama.cpp Enable dry w/ array convert

9cc67ae43fc7572df601a2e9a79d7942f6289386

Cohee <18619528+Cohee1207@users.noreply.github.com>

Signed
2 files changed, +2 -2Ignore whitespace
public/index.html+1 -2
@@ -1397,8 +1397,7 @@
1397 </div>1397 </div>
1398 </div>1398 </div>
13991399
1400 <!-- Enable for llama.cpp when the PR is merged: https://github.com/ggerganov/llama.cpp/pull/6839 -->1400 <div data-tg-type="ooba, koboldcpp, tabby, llamacpp" id="dryBlock" class="wide100p">
1401 <div data-tg-type="ooba, koboldcpp, tabby" id="dryBlock" class="wide100p">
1402 <h4 class="wide100p textAlignCenter" title="DRY penalizes tokens that would extend the end of the input into a sequence that has previously occurred in the input. Set multiplier to 0 to disable." data-i18n="[title]DRY_Repetition_Penalty_desc">1401 <h4 class="wide100p textAlignCenter" title="DRY penalizes tokens that would extend the end of the input into a sequence that has previously occurred in the input. Set multiplier to 0 to disable." data-i18n="[title]DRY_Repetition_Penalty_desc">
1403 <label data-i18n="DRY Repetition Penalty">DRY Repetition Penalty</label>1402 <label data-i18n="DRY Repetition Penalty">DRY Repetition Penalty</label>
1404 <a href="https://github.com/oobabooga/text-generation-webui/pull/5677" target="_blank">1403 <a href="https://github.com/oobabooga/text-generation-webui/pull/5677" target="_blank">
public/scripts/textgen-settings.js+1 -0
@@ -1312,6 +1312,7 @@ export function getTextGenGenerationData(finalPrompt, maxTokens, isImpersonate,
1312 // Conflicts with ooba's grammar_string1312 // Conflicts with ooba's grammar_string
1313 'grammar': settings.grammar_string,1313 'grammar': settings.grammar_string,
1314 'cache_prompt': true,1314 'cache_prompt': true,
1315 'dry_sequence_breakers': JSON.parse(params.dry_sequence_breakers),
1315 };1316 };
1316 params = Object.assign(params, llamaCppParams);1317 params = Object.assign(params, llamaCppParams);
1317 }1318 }