remove beam search

This commit is contained in:
AlpinDale 2024-09-14 12:42:21 +00:00
parent 9c94348491
commit fde76069e0
2 changed files with 1 additions and 5 deletions

View File

@ -1422,7 +1422,7 @@
</div> </div>
<div class=""> <div class="">
<label class="checkbox_label" for="early_stopping_textgenerationwebui"> <label class="checkbox_label" for="early_stopping_textgenerationwebui">
<input type="checkbox" id="early_stopping_textgenerationwebui" checked="false" /> <input type="checkbox" id="early_stopping_textgenerationwebui" />
<small data-i18n="Early Stopping">Early Stopping <small data-i18n="Early Stopping">Early Stopping
<div class="fa-solid fa-circle-info opacity50p" data-i18n="[title]Controls the stopping condition for beam search. If checked, the generation stops as soon as there are '# of Beams' sequences. If not checked, a heuristic is applied and the generation is stopped when it's very unlikely to find better candidates." title="Controls the stopping condition for beam search. If checked, the generation stops as soon as there are '# of Beams' sequences. If not checked, a heuristic is applied and the generation is stopped when it's very unlikely to find better candidates."></div> <div class="fa-solid fa-circle-info opacity50p" data-i18n="[title]Controls the stopping condition for beam search. If checked, the generation stops as soon as there are '# of Beams' sequences. If not checked, a heuristic is applied and the generation is stopped when it's very unlikely to find better candidates." title="Controls the stopping condition for beam search. If checked, the generation stops as soon as there are '# of Beams' sequences. If not checked, a heuristic is applied and the generation is stopped when it's very unlikely to find better candidates."></div>
</small> </small>

View File

@ -1218,10 +1218,6 @@ export function getTextGenGenerationData(finalPrompt, maxTokens, isImpersonate,
'typical_p': settings.typical_p, 'typical_p': settings.typical_p,
'smoothing_factor': settings.smoothing_factor, 'smoothing_factor': settings.smoothing_factor,
'smoothing_curve': settings.smoothing_curve, 'smoothing_curve': settings.smoothing_curve,
'use_beam_search': settings.use_beam_search,
'best_of': settings.num_beams > 1 ? settings.num_beams : settings.n,
'length_penalty': settings.length_penalty,
'early_stopping': settings.early_stopping,
'ignore_eos': settings.ignore_eos_token, 'ignore_eos': settings.ignore_eos_token,
'min_tokens': settings.min_length, 'min_tokens': settings.min_length,
'skip_special_tokens': settings.skip_special_tokens, 'skip_special_tokens': settings.skip_special_tokens,