From 9ef8cb5a3e9e3ad55cf56b9bb619588cb5a20f9a Mon Sep 17 00:00:00 2001 From: MaggotHATE Date: Fri, 1 Nov 2024 14:15:05 +0500 Subject: [PATCH] Removed custom reset --- src/llama-sampling.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/llama-sampling.cpp b/src/llama-sampling.cpp index 2b0f907a8..73bec0b98 100644 --- a/src/llama-sampling.cpp +++ b/src/llama-sampling.cpp @@ -1127,16 +1127,11 @@ static void llama_sampler_k_shift_free(struct llama_sampler * smpl) { delete (llama_sampler_k_shift *) smpl->ctx; } -static void llama_sampler_k_shift_reset(struct llama_sampler * smpl) { - auto * ctx = (llama_sampler_k_shift *) smpl->ctx; - ctx->k_set = false; -} - static struct llama_sampler_i llama_sampler_k_shift_i = { /* .name = */ llama_sampler_k_shift_name, /* .accept = */ nullptr, /* .apply = */ llama_sampler_k_shift_apply, - /* .reset = */ llama_sampler_k_shift_reset, + /* .reset = */ nullptr, /* .clone = */ llama_sampler_k_shift_clone, /* .free = */ llama_sampler_k_shift_free, };