Skip to content

Commit 9ef8cb5

Browse files
committed
Removed custom reset
1 parent aa458d1 commit 9ef8cb5

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/llama-sampling.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,16 +1127,11 @@ static void llama_sampler_k_shift_free(struct llama_sampler * smpl) {
11271127
delete (llama_sampler_k_shift *) smpl->ctx;
11281128
}
11291129

1130-
static void llama_sampler_k_shift_reset(struct llama_sampler * smpl) {
1131-
auto * ctx = (llama_sampler_k_shift *) smpl->ctx;
1132-
ctx->k_set = false;
1133-
}
1134-
11351130
static struct llama_sampler_i llama_sampler_k_shift_i = {
11361131
/* .name = */ llama_sampler_k_shift_name,
11371132
/* .accept = */ nullptr,
11381133
/* .apply = */ llama_sampler_k_shift_apply,
1139-
/* .reset = */ llama_sampler_k_shift_reset,
1134+
/* .reset = */ nullptr,
11401135
/* .clone = */ llama_sampler_k_shift_clone,
11411136
/* .free = */ llama_sampler_k_shift_free,
11421137
};

0 commit comments

Comments
 (0)