Skip to content

Commit b29deb8

Browse files
committed
format
1 parent 0f7501c commit b29deb8

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
@@ -273,7 +273,7 @@ Top-nσ sampling is a text generation method that selects tokens based on a stat
273273

274274
Example usage: `--top-nsigma 1`
275275

276-
### Logit Bias
276+
### Logit Bias
277277

278278
- `-l TOKEN_ID(+/-)BIAS, --logit-bias TOKEN_ID(+/-)BIAS`: Modify the likelihood of a token appearing in the generated text completion.
279279

src/llama-sampling.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1672,7 +1672,7 @@ static void llama_sampler_top_n_sigma_apply(struct llama_sampler * smpl, llama_t
16721672
logits_sum += cur_p->data[i].logit;
16731673
}
16741674
float mean = (float)logits_sum/cur_p->size;
1675-
1675+
16761676
// calculate standard deviation
16771677
float acc = 0;
16781678
for(size_t i = 0; i < cur_p->size; ++i){

0 commit comments

Comments
 (0)