spec : avoid binding reference to null pointer (#27404)

This commit is contained in:
Georgi Gerganov 2026-08-20 10:00:16 +03:00 committed by GitHub
parent 2cfdb5fc08
commit f466cfa38f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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