Merge pull request #1319 from kalomaze/tooltips-samplers

Tooltips added to KAI Samplers
This commit is contained in:
RossAscends
2023-11-06 13:18:10 +09:00
committed by GitHub

View File

@@ -273,6 +273,9 @@
<div class="range-block">
<div class="range-block-title" data-i18n="temperature">
Temperature
<a href="#" class="notes-link" title="Temperature controls the randomness in token selection: a lower temperature (<1.0) leads to more predictable text, favoring higher probability tokens, while a higher temperature (>1.0) increases creativity and diversity in the output by giving lower probability tokens a better chance. Set to 1.0 for the original probabilities.">
<span class="fa-solid fa-circle-question note-link-span"></span>
</a>
</div>
<div class="range-block-range-and-counter">
<div class="range-block-range">
@@ -280,10 +283,11 @@
</div>
<div class="range-block-counter">
<input type="number" min="0.0" max="2.0" step="0.01" data-for="temp" id="temp_counter">
</div>
</div>
</div>
<hr>
<h4 data-i18n="Repetition Penalty Settings">Repetition Penalty Settings</h4>
<div class="range-block">
<div class="range-block-title" data-i18n="rep.pen">
Repetition Penalty
@@ -327,6 +331,7 @@
</div>
</div>
</div>
<hr>
<div id="range_block_novel">
<div class="range-block">
<label class="checkbox_label widthFreeExpand">
@@ -343,7 +348,7 @@
</div>
<div class="range-block">
<div class="range-block-title" data-i18n="temperature">
Temperature
Temperature novel
</div>
<div class="range-block-range-and-counter">
<div class="range-block-range">
@@ -795,6 +800,9 @@
<div class="range-block">
<div class="range-block-title" data-i18n="Top P">
Top P
<a href="#" class="notes-link" title="Top P adds up all the top tokens required to add up to the target percentage. E.g Top 2 tokens are both 25%, and Top P is 0.50, only the Top 2 tokens are considered. Set to 1.0 to disable.">
<span class="fa-solid fa-circle-question note-link-span"></span>
</a>
</div>
<div class="range-block-range-and-counter">
<div class="range-block-range">
@@ -809,6 +817,9 @@
<div class="range-block">
<div class="range-block-title" data-i18n="Min P">
Min P
<a href="#" class="notes-link" title="Min P sets a base minimum probability. This is scaled according to the top token's probability. E.g If Top token is 80% probability, and Min P is 0.1, only tokens higher than 8% would be considered. Set to 0 to disable.">
<span class="fa-solid fa-circle-question note-link-span"></span>
</a>
</div>
<div class="range-block-range-and-counter">
<div class="range-block-range">
@@ -823,6 +834,9 @@
<div class="range-block">
<div class="range-block-title" data-i18n="Top A">
Top A
<a href="#" class="notes-link" title="Top A sets a threshold for token selection based on the square of the highest token probability. E.g if the Top-A value is 0.2 and the top token's probability is 50%, tokens with probabilities below 5% (0.2 * 0.5^2) are excluded. Set to 0 to disable.">
<span class="fa-solid fa-circle-question note-link-span"></span>
</a>
</div>
<div class="range-block-range-and-counter">
<div class="range-block-range">
@@ -837,6 +851,9 @@
<div class="range-block">
<div class="range-block-title" data-i18n="Top K">
Top K
<a href="#" class="notes-link" title="Top K sets a maximum amount of top tokens that can be chosen from. E.g Top K is 20, this means only the 20 highest ranking tokens will be kept (regardless of their probabilities being diverse or limited). Set to 0 to disable.">
<span class="fa-solid fa-circle-question note-link-span"></span>
</a>
</div>
<div class="range-block-range-and-counter">
<div class="range-block-range">
@@ -851,6 +868,9 @@
<div class="range-block">
<div class="range-block-title" data-i18n="Typical Sampling">
Typical Sampling
<a href="#" class="notes-link" title="Typical Sampling prioritizes tokens based on their deviation from the average entropy of the set. It maintains tokens whose cumulative probability is close to a predefined threshold (e.g., 0.5), emphasizing those with average information content. Set to 1.0 to disable.">
<span class="fa-solid fa-circle-question note-link-span"></span>
</a>
</div>
<div class="range-block-range-and-counter">
<div class="range-block-range">
@@ -865,6 +885,9 @@
<div class="range-block">
<div class="range-block-title" data-i18n="Tail Free Sampling">
Tail Free Sampling
<a href="#" class="notes-link" title="Tail-Free Sampling (TFS) analyzes the rate of change in token probabilities using derivatives. It retains tokens up to a threshold (e.g., 0.3) based on the normalized second derivative. Set to 1.0 to disable.">
<span class="fa-solid fa-circle-question note-link-span"></span>
</a>
</div>
<div class="range-block-range-and-counter">
<div class="range-block-range">