mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-04 15:28:40 +00:00
Measured on Strix Halo (UD-IQ4_XS, 1-2K contexts) a verify row costs ~9 ms on a ~61 ms window, so chaining every 3+-token match (49% of chained drafts accepted) gave +6.4% tokens per step for +7% window time. The policy now picks the number of chained tokens k with the best expected tokens per ms: the MTP window's measured tokens + p_mtp (c + c^2 + .. + c^k) at the measured cost of the longer window, where p_mtp is the product of the draft layer's own draft probabilities and c the chained drafts' acceptance by match length (their own decayed counts, learned only from rounds that reached the chain). Unmeasured sizes are probed a few times when p_mtp * c >= 0.6. STRATA_LOOKUP_CHAIN_FIXED=1 takes every proposal as before.