Skip to content

Commit f2a2a61

Browse files
authored
Fixed trailing backspaces
1 parent d9c9203 commit f2a2a61

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/llama-sampling.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,12 +1075,12 @@ static const char * llama_sampler_xtc_name(const struct llama_sampler * /*smpl*/
10751075
static void llama_sample_xtc_apply(struct llama_sampler * smpl, llama_token_data_array * cur_p) {
10761076
const auto * ctx = (llama_sampler_xtc *) smpl->ctx;
10771077

1078-
if (ctx->probability <= 0.0f
1079-
|| ctx->threshold <= 0.0f
1080-
|| ctx->threshold >= 1.0f
1081-
|| ctx->threshold_max <= 0.0f
1082-
|| ctx->threshold_max <= ctx->threshold
1083-
|| cur_p->size <= 2
1078+
if (ctx->probability <= 0.0f
1079+
|| ctx->threshold <= 0.0f
1080+
|| ctx->threshold >= 1.0f
1081+
|| ctx->threshold_max <= 0.0f
1082+
|| ctx->threshold_max <= ctx->threshold
1083+
|| cur_p->size <= 2
10841084
|| ctx->min_keep <= 2) {
10851085
return;
10861086
}

0 commit comments

Comments
 (0)