73 plan.seq_ids.reserve(
n);
80 plan.seq_ids.push_back(
102 if (
plan.clears_whole_cache) {
return true; }
104 for (
int id :
plan.seq_ids) {
Activate model on GPU (WARM → ACTIVE).
@ optional
optional: every escape asks the host's path approver
bool plan_disturbs_sessions(const BatchKvPlan &plan, int session_slots)
Whether a plan can disturb any session's resident KV.
BatchKvPlan plan_batch_kv(std::size_t n, int session_slots, const std::vector< int > &temp_ids)
Plan the sequence ids a same-prefix batch may use.
Which sequences a batch will write, and what it may clear.
std::vector< int > seq_ids
Sequence ids the batch will write, one per request.
bool clears_whole_cache
Whether the batch may clear the WHOLE KV cache.