mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #282] [CLOSED] prefill auto: chunks up to 32768 (was 8192), +15% on a 32K prompt #2548
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2548
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/282
Author: @sergqwer
Created: 9/30/2026
Status: ❌ Closed
Base:
main← Head:pr/prefill-auto-32k📝 Commits (1)
e2fafc8prefill auto: chunks up to 32768 (was 8192)📊 Changes
1 file changed (+6 additions, -3 deletions)
View changed files
📝
src/program/generate.cpp(+6 -3)📄 Description
Summary
With
--prefill autothe largest chunk was 8192 tokens. Every chunk streams each expert it routes to again, so a32K prompt crossed PCIe with nearly all experts of every layer four times. The auto list now starts at 32768 and
16384. It is still bounded by the lend rule (85-90% of the cache slots) and by
--max-context. A request lends onlywhat its own prompt needs, so short prompts are unaffected.
Periodic prompt-cache checkpoints fall on chunk ends, so in a long prompt they now land every 32K rather than every
16K.
Measured
Measured on current main (0.1.29,
d6708a4) with ISTA-DASLab's IQ2_XS, RTX 5090 32 GB, Ryzen 9 9950X3D, 128 GB DDR5, Windows 11. KL is first-token KL divergence (STRATA_DUMP_FIRST_LOGITS, #276); two runs of main itself differ by 0 on 5 of 6 short prompts and by 0.00013 on the sixth. A 32K prompt,--vram-reserve-mib 1500(see #279), 3 runs each,interleaved:
That is +15%. The 16 generated tokens were the same in 2 of the 3 pairs; one chunk instead of four changes the
summation order. An NVFP4 pack at 262K context gained more
(3,535 -> 5,201 tok/s): its experts are twice the size.
Switch
--prefill 8192keeps the old chunk size.🤖 Generated with Claude Code
https://claude.ai/code/session_01VZy1yKaDDiA8a7svdwaHio
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.