main : pass ctx to llama_token_nl()
This commit is contained in:
parent
0d29c8aaef
commit
1bf050c2a8
1 changed files with 1 additions and 1 deletions
|
@ -605,7 +605,7 @@ int main(int argc, char ** argv) {
|
||||||
last_n_repeat, alpha_frequency, alpha_presence);
|
last_n_repeat, alpha_frequency, alpha_presence);
|
||||||
if (!penalize_nl) {
|
if (!penalize_nl) {
|
||||||
for (size_t idx = 0; idx < candidates_p.size; idx++) {
|
for (size_t idx = 0; idx < candidates_p.size; idx++) {
|
||||||
if (candidates_p.data[idx].id == llama_token_nl()) {
|
if (candidates_p.data[idx].id == llama_token_nl(ctx)) {
|
||||||
candidates_p.data[idx].logit = nl_logit;
|
candidates_p.data[idx].logit = nl_logit;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue