diff --git a/src/llama-sampling.cpp b/src/llama-sampling.cpp index b61202c636..06a1eef148 100644 --- a/src/llama-sampling.cpp +++ b/src/llama-sampling.cpp @@ -2390,8 +2390,8 @@ static void llama_sampler_power_law_apply(struct llama_sampler * smpl, llama_tok } static void llama_sampler_power_law_reset(struct llama_sampler * smpl) { - auto * ctx = (llama_sampler_power_law *) smpl->ctx; - ctx->history = ring_buffer(ctx->window_size); + auto * ctx = (llama_sampler_power_law *) smpl->ctx; + ctx->history = ring_buffer(ctx->window_size); } static struct llama_sampler * llama_sampler_power_law_clone(const struct llama_sampler * smpl) {