diff --git a/engine/include/strata/ling32/ling32_tier_planner.hpp b/engine/include/strata/ling32/ling32_tier_planner.hpp index 8fb68c0952..ce9431667f 100644 --- a/engine/include/strata/ling32/ling32_tier_planner.hpp +++ b/engine/include/strata/ling32/ling32_tier_planner.hpp @@ -255,7 +255,8 @@ inline TierPlan plan_tier(const TierHardware& hw, const TierRequestOpts& rq, con } if (rq.tier != TierRequest::Nvme && b_fits) { p.mode = TierMode::B; - p.lookahead_k = 4; // measured on a 5090: the k = 4 predictor (more lead time, 1.8 ms) beats k = 2 (1.0 ms) by 8 points of decode speed in a gated prefetch + // the pool layout (every card byte is a slot) takes the k = 2 predictor (recall 64.6 % top-8, lead 0.8 ms): +2.0 % decode on a 3090 and +2.6 % on a 5090 against k = 4 (recall 54 %, lead 1.7 ms), same ids (2026-12-03). The old layout (hot prefix + a small pool, --tier-pool off) keeps k = 4: measured on a 5090 before the pool layout, k = 4 beat k = 2 by 8 points there. + p.lookahead_k = pool_mode ? 2 : 4; if (rq.prefetch_width < 0) p.prefetch_width = 4; // decode: gated (rank cut-off 8, 8 MB in flight): +4..5 % measured on a 5090; ungated width 4 or more is slower (see P2-RESULTS) p.ram_ranks = rt.n_exp - p.vram_ranks; p.ram_prefix_bytes = rest; diff --git a/engine/tests/ling32/ling32_tier_planner_test.cpp b/engine/tests/ling32/ling32_tier_planner_test.cpp index 795fe6c9a3..4262a05bb8 100644 --- a/engine/tests/ling32/ling32_tier_planner_test.cpp +++ b/engine/tests/ling32/ling32_tier_planner_test.cpp @@ -87,7 +87,7 @@ int main(int argc, char** argv) { p = plan_tier(hw, rq, rt, sz); std::printf("%s\n", p.describe().c_str()); // the default for cards up to 30 GiB is the pool layout: no static prefix, every card byte for experts is a slot - CHECK(p.ok && p.mode == TierMode::B && p.lookahead_k == 4 && p.pool_mode && p.vram_ranks == 0 && p.dyn_slots > 1000); + CHECK(p.ok && p.mode == TierMode::B && p.lookahead_k == 2 && p.pool_mode && p.vram_ranks == 0 && p.dyn_slots > 1000); CHECK(p.vram_prefix_bytes == 0 && p.ram_prefix_bytes == rt.total && p.ssd_bytes == 0 && p.ring_slots == 0); CHECK(p.vram_total_planned <= p.vram_budget); // the old layout (hot prefix + a small pool) is --tier-pool off