dry is still buggy because token indexes are wrong

This commit is contained in:
Concedo 2024-08-21 00:59:26 +08:00
parent db6ef8d1e1
commit 6a4becb731

View file

@ -698,6 +698,10 @@ void sample_dry(int n_ctx, int penalty_range, float penalty_multiplier, float pe
candidates->data[token].logit -= penalty;
++count;
}
if(count>0)
{
candidates->sorted = false;
}
if (debugmode==1 && !dry_max_token_repeat.empty()) {
printf("]\n");
}