mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-10-03 03:25:40 +00:00
server,common : fix the GCC 12 stringop-overread false positive (again) (#29325)
Signed-off-by: Adrien Gallouët <angt@huggingface.co>
This commit is contained in:
parent
4c5957c277
commit
2b70583997
2 changed files with 2 additions and 4 deletions
|
|
@ -228,9 +228,7 @@ struct common_speculative_impl_draft_simple : public common_speculative_impl {
|
|||
common_params_sampling params;
|
||||
params.no_perf = false;
|
||||
params.top_k = 10;
|
||||
params.samplers = {
|
||||
COMMON_SAMPLER_TYPE_TOP_K,
|
||||
};
|
||||
params.samplers.assign(1, COMMON_SAMPLER_TYPE_TOP_K);
|
||||
|
||||
smpl.reset(common_sampler_init(llama_get_model(ctx_dft), params));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2060,7 +2060,7 @@ private:
|
|||
res->is_begin = true;
|
||||
} else {
|
||||
res->content = tkn.text_to_send;
|
||||
res->tokens = { tkn.tok };
|
||||
res->tokens.assign(1, tkn.tok);
|
||||
}
|
||||
|
||||
res->n_decoded = slot.stats.n_gen;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue