For Mancer:

- Allow logprobs (works)
- Allow multiswipe (not yet)
- Adjust visible samplers
Fix: 0 logprob is 100% chance, handle accordingly.
This commit is contained in:
50h100a
2024-03-24 14:45:37 -04:00
parent 76cde592ad
commit 6f7e7b85ab
4 changed files with 37 additions and 22 deletions

View File

@ -139,7 +139,7 @@ function renderTopLogprobs() {
const candidates = topLogprobs
.sort(([, logA], [, logB]) => logB - logA)
.map(([text, log]) => {
if (log < 0) {
if (log <= 0) {
const probability = Math.exp(log);
sum += probability;
return [text, probability, log];