KVA: chunk-align the frontier for short cold batch prompts
This commit is contained in:
1 parent
c2b9b8ea62
commit
d3091502d4
1 file changed
+5
@@ -15243,6 +15243,11 @@ int main(int argc, char** argv) {
|
||||
};
|
||||
auto run = [&](int64_t q, int64_t r) -> bool {
|
||||
if (planned) sp.force_chunk(plan.chunk, plan_single, plan.chunked);
|
||||
if (kva_cold(a0, b0)) {
|
||||
const auto& kc = strata::prefill::kva_config();
|
||||
const int64_t frontier = (b0 - a0) - kc.effective_suffix();
|
||||
if (frontier > 0 && frontier <= sp.chunk()) sp.force_chunk(frontier, false, false);
|
||||
}
|
||||
bool run_ok;
|
||||
if (!co_set.empty() && !co_tried && admit_slot >= 0 && req_imgs.empty()) {
|
||||
co_tried = true;
|
||||
|
||||
Reference in new issue
Block a user