Merge pull request #3986 from 50h100a/pr_xtcdry Update parameters for Mancer: +XTC, +DRY, -Mirostat

9305c2978028e100bd4273613f2dd39df8c635fc

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

Signed
2 files changed, +14 -3Showing whitespace changes
public/index.html+3 -3
@@ -1406,7 +1406,7 @@
1406 </div>1406 </div>
1407 </div>1407 </div>
14081408
1409 <div data-tg-type="koboldcpp, aphrodite, tabby, ooba, llamacpp" id="xtc_block" class="wide100p">1409 <div data-tg-type="koboldcpp, aphrodite, mancer, tabby, ooba, llamacpp" id="xtc_block" class="wide100p">
1410 <h4 class="wide100p textAlignCenter">1410 <h4 class="wide100p textAlignCenter">
1411 <label data-i18n="Exclude Top Choices (XTC)">Exclude Top Choices (XTC)</label>1411 <label data-i18n="Exclude Top Choices (XTC)">Exclude Top Choices (XTC)</label>
1412 <a href="https://github.com/oobabooga/text-generation-webui/pull/6335" target="_blank">1412 <a href="https://github.com/oobabooga/text-generation-webui/pull/6335" target="_blank">
@@ -1427,7 +1427,7 @@
1427 </div>1427 </div>
1428 </div>1428 </div>
14291429
1430 <div data-tg-type="aphrodite, ooba, koboldcpp, tabby, llamacpp, dreamgen" id="dryBlock" class="wide100p">1430 <div data-tg-type="aphrodite, mancer, ooba, koboldcpp, tabby, llamacpp, dreamgen" id="dryBlock" class="wide100p">
1431 <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">1431 <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">
1432 <label data-i18n="DRY Repetition Penalty">DRY Repetition Penalty</label>1432 <label data-i18n="DRY Repetition Penalty">DRY Repetition Penalty</label>
1433 <a href="https://github.com/oobabooga/text-generation-webui/pull/5677" target="_blank">1433 <a href="https://github.com/oobabooga/text-generation-webui/pull/5677" target="_blank">
@@ -1493,7 +1493,7 @@
1493 </div>1493 </div>
1494 </div>1494 </div>
1495 </div>1495 </div>
1496 <div data-tg-type="ooba,infermaticai,koboldcpp,llamacpp,mancer,ollama,tabby" id="mirostat_block_ooba" class="wide100p">1496 <div data-tg-type="ooba,infermaticai,koboldcpp,llamacpp,ollama,tabby" id="mirostat_block_ooba" class="wide100p">
1497 <h4 class="wide100p textAlignCenter">1497 <h4 class="wide100p textAlignCenter">
1498 <label data-i18n="Mirostat (mode=1 is only for llama.cpp)">Mirostat</label>1498 <label data-i18n="Mirostat (mode=1 is only for llama.cpp)">Mirostat</label>
1499 <div class=" fa-solid fa-circle-info opacity50p " data-i18n="[title]Mirostat_desc" title="Mirostat is a thermostat for output perplexity.&#13;Mirostat matches the output perplexity to that of the input, thus avoiding the repetition trap&#13;(where, as the autoregressive inference produces text, the perplexity of the output tends toward zero)&#13;and the confusion trap (where the perplexity diverges).&#13;For details, see the paper Mirostat: A Neural Text Decoding Algorithm that Directly Controls Perplexity by Basu et al. (2020).&#13;Mode chooses the Mirostat version. 0=disable, 1=Mirostat 1.0 (llama.cpp only), 2=Mirostat 2.0."></div>1499 <div class=" fa-solid fa-circle-info opacity50p " data-i18n="[title]Mirostat_desc" title="Mirostat is a thermostat for output perplexity.&#13;Mirostat matches the output perplexity to that of the input, thus avoiding the repetition trap&#13;(where, as the autoregressive inference produces text, the perplexity of the output tends toward zero)&#13;and the confusion trap (where the perplexity diverges).&#13;For details, see the paper Mirostat: A Neural Text Decoding Algorithm that Directly Controls Perplexity by Basu et al. (2020).&#13;Mode chooses the Mirostat version. 0=disable, 1=Mirostat 1.0 (llama.cpp only), 2=Mirostat 2.0."></div>
public/scripts/textgen-settings.js+11 -0
@@ -1439,6 +1439,17 @@ export async function getTextGenGenerationData(finalPrompt, maxTokens, isImperso
1439 params.dynatemp_max = params.dynatemp_high;1439 params.dynatemp_max = params.dynatemp_high;
1440 delete params.dynatemp_low;1440 delete params.dynatemp_low;
1441 delete params.dynatemp_high;1441 delete params.dynatemp_high;
1442 const sequenceBreakers = (() => {
1443 try {
1444 return JSON.parse(params.dry_sequence_breakers);
1445 } catch {
1446 if (typeof params.dry_sequence_breakers === 'string') {
1447 return params.dry_sequence_breakers.split(',');
1448 }
1449 return undefined;
1450 }
1451 })();
1452 params.dry_sequence_breakers = sequenceBreakers;
1442 }1453 }
14431454
1444 if (settings.type === TABBY) {1455 if (settings.type === TABBY) {