Translate nsigma 0 to -1 to disable for llama.cpp
| @@ -1313,8 +1313,8 @@ | ||
| 1313 | 1313 | <span data-i18n="Top nsigma">Top nsigma</span> |
| 1314 | 1314 | <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> |
| 1315 | 1315 | </small> |
| 1316 | 1316 | <input class="neo-range-slider" type="range" id="nsigma_textgenerationwebui" name="volume" min="-0.01" max="5" step="0.01"> |
| 1317 | 1317 | <input class="neo-range-input" type="number" min="-0.01" max="5" step="0.01" data-for="nsigma_textgenerationwebui" id="nsigma_counter_textgenerationwebui"> |
| 1318 | 1318 | </div> |
| 1319 | 1319 | <div data-tg-type="llamacpp" class="alignitemscenter flex-container flexFlowColumn flexBasis30p flexGrow flexShrink gap0"> |
| 1320 | 1320 | <small> |
| @@ -806,7 +806,7 @@ jQuery(function () { | ||
| 806 | 806 | 'dry_penalty_last_n_textgenerationwebui': 0, |
| 807 | 807 | 'xtc_threshold_textgenerationwebui': 0.1, |
| 808 | 808 | 'xtc_probability_textgenerationwebui': 0, |
| 809 | - 'nsigma_textgenerationwebui': [LLAMACPP].includes(settings.type) ? -0.01 : 0, | |
| 809 | + 'nsigma_textgenerationwebui': 0, | |
| 810 | 810 | 'min_keep_textgenerationwebui': 0, |
| 811 | 811 | }; |
| 812 | 812 | |
| @@ -1335,8 +1335,8 @@ export async function getTextGenGenerationData(finalPrompt, maxTokens, isImperso | ||
| 1335 | 1335 | 'sampler_order': settings.type === textgen_types.KOBOLDCPP ? settings.sampler_order : undefined, |
| 1336 | 1336 | 'xtc_threshold': settings.xtc_threshold, |
| 1337 | 1337 | 'xtc_probability': settings.xtc_probability, |
| 1338 | - 'nsigma': settings.nsigma, | |
| 1338 | + 'nsigma': [LLAMACPP].includes(settings.type) && settings.nsigma === 0 ? -1 : settings.nsigma, | |
| 1339 | - 'top_n_sigma': settings.nsigma, | |
| 1339 | + 'top_n_sigma': [LLAMACPP].includes(settings.type) && settings.nsigma === 0 ? -1 : settings.nsigma, | |
| 1340 | 1340 | 'min_keep': settings.min_keep, |
| 1341 | 1341 | }; |
| 1342 | 1342 | const nonAphroditeParams = { |