minor
This commit is contained in:
parent
93169593b8
commit
b3aea57768
|
|
@ -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) {
|
static void llama_sampler_power_law_reset(struct llama_sampler * smpl) {
|
||||||
auto * ctx = (llama_sampler_power_law *) smpl->ctx;
|
auto * ctx = (llama_sampler_power_law *) smpl->ctx;
|
||||||
ctx->history = ring_buffer<float>(ctx->window_size);
|
ctx->history = ring_buffer<float>(ctx->window_size);
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct llama_sampler * llama_sampler_power_law_clone(const struct llama_sampler * smpl) {
|
static struct llama_sampler * llama_sampler_power_law_clone(const struct llama_sampler * smpl) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue