mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-08-27 09:13:34 +00:00
spec : avoid binding reference to null pointer (#27404)
This commit is contained in:
parent
2cfdb5fc08
commit
f466cfa38f
1 changed files with 4 additions and 0 deletions
|
|
@ -2649,6 +2649,10 @@ void common_speculative_draft(common_speculative * spec) {
|
|||
for (llama_seq_id seq_id = 0; seq_id < (llama_seq_id) dparams.size(); ++seq_id) {
|
||||
auto & dp = dparams[seq_id];
|
||||
|
||||
if (!dp.drafting) {
|
||||
continue;
|
||||
}
|
||||
|
||||
auto & result = *dp.result;
|
||||
|
||||
// a new draft has been sampled
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue