Files
Strata/include
Niko1221 c0c2d72c8d Merge f-chunk-equal: in a build without MMQ, long prompts on one GPU are read in chunks of equal size
A prompt segment longer than its chunk was read in full chunks and a short
remainder. In a build without MMQ on one GPU it is now read in
ceil(tokens / chunk) chunks of equal size: 20,932 tokens at a 10,240-token
chunk become 3 x 6,978 instead of 10,240 + 10,240 + 452. The number of chunks
stays the same, no chunk is larger than the configured one, and the short last
chunk under the stream floor goes away. On an RTX 5070 12 GB with the Q2_0
plain pack, 14,000 to 32,000 tokens read in 0.923 to 1.001 of the time of the
old cut; first-token KL at 10,500 tokens no worse.

A segment that fits one chunk keeps its chunk, and a guard keeps the old cut
when the equal chunk would lend more cache slots. The opt-in rule for other
builds (STRATA_PREFILL_EQUAL=1) is kept value for value. A build with MMQ is
unchanged.

No user text changes.
2026-11-14 11:46:04 +01:00
..