Commit Graph
3 Commits
Author SHA1 Message Date
Pavlo RatushnyiandClaude Sonnet 5.5 c159a7fdee Tests: PLE rows are matched by row, never by position (plan 0.4; upstream 36381540)
Upstream's gather_batch compared its prefetch list with the batch by position and re-read reordered or duplicated rows. Our reader
has no such matching (tickets own their output slots, the row cache and the KAR GPU cache are keyed by row id); the tests pin it with
the upstream cases and with chunks that are permuted, shifted, repeated or partly new.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-26 17:11:24 +01:00
Pavlo RatushnyiandClaude Sonnet 5.5 b3bd6a0936 feat(runtime): read the 16 PLE rows of a token through the async reader
Issue the rows before the embedding read, collect before layer 1, decode
exactly as ple_row does. Reader opens lazily with the original defaults
(1M-row cache, 64 in flight, SSD keep-alive), an O_DIRECT handle on Linux
accepted only after an inode check and aligned probe read, and falls back
to the synchronous path when unavailable. Invalid LELEKA_PLE_* values are
refused.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 15:34:05 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 195b0a99af feat(model-format): add async PLE row reader with page dedup and row cache
Port of ngram/ple_reader: issue/collect tickets, 4 KiB page dedup and
offset-sorted reads over positional reads and worker threads, 8-way
round-robin row cache, sticky errors, injected delay, keep-alive.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 15:30:18 +02:00