Ollama: deprecate Mirostat params Closes #4188

50cd88c5dc090f09b345a815ae19a888e5ff4ee9

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

2 files changed, +2 -5Ignore whitespace
public/index.html+1 -1
@@ -1499,7 +1499,7 @@
1499 </div>1499 </div>
1500 </div>1500 </div>
1501 </div>1501 </div>
1502 <div data-tg-type="ooba,infermaticai,koboldcpp,llamacpp,ollama,tabby" id="mirostat_block_ooba" class="wide100p">1502 <div data-tg-type="ooba,infermaticai,koboldcpp,llamacpp,tabby" id="mirostat_block_ooba" class="wide100p">
1503 <h4 class="wide100p textAlignCenter">1503 <h4 class="wide100p textAlignCenter">
1504 <label data-i18n="Mirostat (mode=1 is only for llama.cpp)">Mirostat</label>1504 <label data-i18n="Mirostat (mode=1 is only for llama.cpp)">Mirostat</label>
1505 <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>1505 <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>
src/constants.js+1 -4
@@ -287,7 +287,7 @@ export const TOGETHERAI_KEYS = [
287 'stop',287 'stop',
288];288];
289289
290// https://github.com/ollama/ollama/blob/main/docs/api.md#request-with-options290// https://github.com/ollama/ollama/blob/main/docs/api.md#request-8
291export const OLLAMA_KEYS = [291export const OLLAMA_KEYS = [
292 'num_predict',292 'num_predict',
293 'num_ctx',293 'num_ctx',
@@ -303,9 +303,6 @@ export const OLLAMA_KEYS = [
303 'typical_p',303 'typical_p',
304 'seed',304 'seed',
305 'repeat_last_n',305 'repeat_last_n',
306 'mirostat',
307 'mirostat_tau',
308 'mirostat_eta',
309 'min_p',306 'min_p',
310];307];
311308