mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-04 07:18:50 +00:00
Port of PR 4040 by merbanan (rebased onto f-0291-int-trial, bitwise by the author's checks). --lookup-max-t N (up to 16) lifts only the prompt-lookup windows to N tokens; the MTP drafts keep --spec. A window past kVerifyMaxT tokens runs as two token groups of at most kVerifyMaxT (the --spec-split layout), the head runs in column chunks, the batched GDN commit takes up to 16 kept rows, MtpDrafter::draft_long catches the drafter up past its window, and every lookup size is its own window graph (--lookup-sizes A,B picks them; one that finds no VRAM is dropped). A build whose windows already hold 16 rows (STRATA_WINDOW_MAX_T=16, the HIP default) runs the 16 as one group. Batch, pipelined and layer-split windows stay at kVerifyMaxT. Without the flag nothing changes. Port notes: kVerifyLongT = 16 for both window widths, the per-window-size graph arrays keep the trunk's [sel_long_][T] layout, the head chunk loop keeps fused_gr_read_multi's own slicing, the penalty history is sized for the widest window only when --lookup-max-t is past 8, and draft_long forwards the gated-proposal view.