mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #374] [CLOSED] Prompt path: the first chunk's n-gram (PLE) rows read beside layer 0, 256 at a time (same output) #2606
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#2606
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/374
Author: @sergqwer
Created: 10/1/2026
Status: ❌ Closed
Base:
main← Head:pr/ple-reads📝 Commits (2)
8f617b0Prompt path: the first chunk's n-gram (PLE) rows read beside layer 0, 256 at a time89e2994ple_land: the rows' upload, its event and the wait before a refill are checked📊 Changes
3 files changed (+31 additions, -12 deletions)
View changed files
📝
include/strata/kernels/ngram.hpp(+1 -1)📝
src/prefill/prefill.cpp(+28 -9)📝
src/program/generate.cpp(+2 -2)📄 Description
Layer 1 adds the per-layer embedding (the n-gram table) to every token of a chunk, so a chunk's rows must be read before layer 1.
What changes:
ple_land: wait, upload, start the next chunk's gather), and a stage that ends before layer 1 lands it after its last layer.--ple-inflightdefaults to 256 (was 64).The same rows in the same order give the same results.
Same output
First-token logits are bit-identical to 0.1.31 at 8K and 32K. They were dumped with #276's
STRATA_DUMP_FIRST_LOGITSin test builds of both, with a fixed--expert-cache 14900.Speed
Setup: IQ2_XS (ISTA), RTX 5090, 9950X3D, 128 GB, Windows 11,
--max-context 262144 --kv int8 --prefill auto(8192-token chunks),--vram-reserve-mib 1500. The runs alternated between 0.1.31 and this PR.The gain is the first chunk's read, so it is larger with fewer chunks. On our NVFP4 fork, a 32K prompt in one 32K chunk (#282's auto) was 7-9% faster from the overlap and 2% more from the read depth.
🤖 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.