Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/models/qwen3_5/program/transactions/commit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -732,6 +732,13 @@ bool ProgramImpl::salvage_continuation(SequenceState& state, RequestControl& req
state.dflash_context_frontier < frontier) {
return false;
}
// The next request reuses this endpoint under MTP only with the tail hidden state and the
// MTP KV up to frontier - 1 (request_plan.cpp). A prefill cut before its last chunk has no
// tail hidden state, so the conversation resumes from its last captured checkpoint.
if (speculative_backend == SpeculativeBackend::Mtp &&
(!state.tail_hidden_valid || state.mtp_kv_valid + 1 < frontier)) {
return false;
}
} else if (lifecycle == Lifecycle::Active || lifecycle == Lifecycle::Finishable) {
frontier = state.execution_frontier;
if (frontier < kSalvageMinFrontier || state.text_kv_valid != frontier) { return false; }
Expand Down