mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Translate nsigma 0 to -1 to disable for llama.cpp
This commit is contained in:
@ -1313,8 +1313,8 @@
|
|||||||
<span data-i18n="Top nsigma">Top nsigma</span>
|
<span data-i18n="Top nsigma">Top nsigma</span>
|
||||||
<div class="fa-solid fa-circle-info opacity50p" title="A sampling method that filters logits based on their statistical properties. It keeps tokens within n standard deviations of the maximum logit value, providing a simpler alternative to top-p/top-k sampling while maintaining sampling stability across different temperatures."></div>
|
<div class="fa-solid fa-circle-info opacity50p" title="A sampling method that filters logits based on their statistical properties. It keeps tokens within n standard deviations of the maximum logit value, providing a simpler alternative to top-p/top-k sampling while maintaining sampling stability across different temperatures."></div>
|
||||||
</small>
|
</small>
|
||||||
<input class="neo-range-slider" type="range" id="nsigma_textgenerationwebui" name="volume" min="-0.01" max="5" step="0.01">
|
<input class="neo-range-slider" type="range" id="nsigma_textgenerationwebui" name="volume" min="0" max="5" step="0.01">
|
||||||
<input class="neo-range-input" type="number" min="-0.01" max="5" step="0.01" data-for="nsigma_textgenerationwebui" id="nsigma_counter_textgenerationwebui">
|
<input class="neo-range-input" type="number" min="0" max="5" step="0.01" data-for="nsigma_textgenerationwebui" id="nsigma_counter_textgenerationwebui">
|
||||||
</div>
|
</div>
|
||||||
<div data-tg-type="llamacpp" class="alignitemscenter flex-container flexFlowColumn flexBasis30p flexGrow flexShrink gap0">
|
<div data-tg-type="llamacpp" class="alignitemscenter flex-container flexFlowColumn flexBasis30p flexGrow flexShrink gap0">
|
||||||
<small>
|
<small>
|
||||||
|
@ -806,7 +806,7 @@ jQuery(function () {
|
|||||||
'dry_penalty_last_n_textgenerationwebui': 0,
|
'dry_penalty_last_n_textgenerationwebui': 0,
|
||||||
'xtc_threshold_textgenerationwebui': 0.1,
|
'xtc_threshold_textgenerationwebui': 0.1,
|
||||||
'xtc_probability_textgenerationwebui': 0,
|
'xtc_probability_textgenerationwebui': 0,
|
||||||
'nsigma_textgenerationwebui': [LLAMACPP].includes(settings.type) ? -0.01 : 0,
|
'nsigma_textgenerationwebui': 0,
|
||||||
'min_keep_textgenerationwebui': 0,
|
'min_keep_textgenerationwebui': 0,
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1335,8 +1335,8 @@ export async function getTextGenGenerationData(finalPrompt, maxTokens, isImperso
|
|||||||
'sampler_order': settings.type === textgen_types.KOBOLDCPP ? settings.sampler_order : undefined,
|
'sampler_order': settings.type === textgen_types.KOBOLDCPP ? settings.sampler_order : undefined,
|
||||||
'xtc_threshold': settings.xtc_threshold,
|
'xtc_threshold': settings.xtc_threshold,
|
||||||
'xtc_probability': settings.xtc_probability,
|
'xtc_probability': settings.xtc_probability,
|
||||||
'nsigma': settings.nsigma,
|
'nsigma': [LLAMACPP].includes(settings.type) && settings.nsigma === 0 ? -1 : settings.nsigma,
|
||||||
'top_n_sigma': settings.nsigma,
|
'top_n_sigma': [LLAMACPP].includes(settings.type) && settings.nsigma === 0 ? -1 : settings.nsigma,
|
||||||
'min_keep': settings.min_keep,
|
'min_keep': settings.min_keep,
|
||||||
};
|
};
|
||||||
const nonAphroditeParams = {
|
const nonAphroditeParams = {
|
||||||
|
Reference in New Issue
Block a user