Enable XTC support for llama.cpp

This commit is contained in:
theo77186 2024-10-16 18:30:46 +02:00
parent 3471d0be93
commit 37f3a24ac6
2 changed files with 3 additions and 1 deletions

View File

@ -1376,7 +1376,7 @@
</div>
</div>
<div data-tg-type="koboldcpp, aphrodite, tabby, ooba" id="xtc_block" class="wide100p">
<div data-tg-type="koboldcpp, aphrodite, tabby, ooba, llamacpp" id="xtc_block" class="wide100p">
<h4 class="wide100p textAlignCenter">
<label data-i18n="Exclude Top Choices (XTC)">Exclude Top Choices (XTC)</label>
<a href="https://github.com/oobabooga/text-generation-webui/pull/6335" target="_blank">
@ -1730,6 +1730,7 @@
<div data-name="typical_p" draggable="true"><span>Typical P</span><small></small></div>
<div data-name="tfs_z" draggable="true"><span>Tail Free Sampling</span><small></small></div>
<div data-name="min_p" draggable="true"><span>Min P</span><small></small></div>
<div data-name="xtc" draggable="true"><span>Exclude Top Choices</span><small></small></div>
</div>
<div id="llamacpp_samplers_default_order" class="menu_button menu_button_icon">
<span data-i18n="Load default order">Load default order</span>

View File

@ -65,6 +65,7 @@ const LLAMACPP_DEFAULT_ORDER = [
'typical_p',
'top_p',
'min_p',
'xtc',
'temperature',
];
const OOBA_DEFAULT_ORDER = [