Skip to content

Commit 3496f58

Browse files
committed
Small fixes
1 parent 28d2cff commit 3496f58

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/main/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ By removing top tokens XTC can improve the variety of answers, break writing cli
252252

253253
Being experimental and unique, XTC is disabled by default. The recommended combination of samplers is Min-P followed by XTC on its default settings: `--sampling-seq mx --min-p 0.02 --xtc-probability 0.5`.
254254

255-
Example usage: `--xtc-probability 0.5 --xtc-threshold 0.1
255+
Example usage: `--xtc-probability 0.5 --xtc-threshold 0.1`
256256

257257
### Logit Bias
258258

src/llama-sampling.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1102,7 +1102,7 @@ static void llama_sample_xtc_apply(struct llama_sampler * smpl, llama_token_data
11021102

11031103
if (cur_p->size - pos_last >= ctx->min_keep && pos_last > 0) {
11041104
cur_p->data += pos_last;
1105-
cur_p->size = cur_p->size - pos_last;
1105+
cur_p->size -= pos_last;
11061106
}
11071107
}
11081108

0 commit comments

Comments
 (0)