Skip to content

Commit f1320cd

Browse files
VJHackggerganov
andauthored
Update src/llama-sampling.cpp
Co-authored-by: Georgi Gerganov <[email protected]>
1 parent 37ed1ad commit f1320cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/llama-sampling.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1674,7 +1674,7 @@ static void llama_sampler_top_n_sigma_apply(struct llama_sampler * smpl, llama_t
16741674

16751675
// calculate standard deviation
16761676
float acc = 0;
1677-
for(size_t i = 0; i < cur_p->size; ++i){
1677+
for (size_t i = 0; i < cur_p->size; ++i) {
16781678
acc += pow(cur_p->data[i].logit - mean, 2);
16791679
}
16801680
float std = sqrt(acc/cur_p->size);

0 commit comments

Comments
 (0)