Don't reuse memory for output views.

This commit is contained in:
Gaurav Garg
2026-07-06 17:28:14 +05:30
parent f1f008b2ee
commit 813c39b225
5 changed files with 74 additions and 20 deletions
+2 -1
View File
@@ -3882,7 +3882,8 @@ private:
// speculative decoding - main model sample and accept
iterate(slots, [&](server_slot & slot) {
if (slot.state != SLOT_STATE_GENERATING || !slot.can_speculate() || slot.spec_draft.empty()) {
if (slot.state != SLOT_STATE_GENERATING || !slot.can_speculate() ||
slot.spec_draft.empty() || slot.spec_i_batch.empty()) {
return;
}