mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-05 15:58:53 +00:00
- One batched gather per chunk instead of a launch per token (same arithmetic: identical bits). - The prompt path's 'embed+steps' time was mostly the host reading the n-gram (PLE) rows from the SSD with the GPU idle: one thread issued every 90-byte read (~12 us of kernel time each, ~80K reads/s). DirectFile now only queues a read; a pool issues them (4 threads on Windows, overlapped; 16 blocking O_DIRECT preads on Linux, which read them one at a time before - perf-review F-2). STRATA_IO_THREADS. Q2_0 4K prompt: PLE 591 -> 291 ms, 941 -> 1010 tok/s. - STRATA_PREFILL_TIMING also prints the host's share (chunk setup, the per-chunk callback). Exactness: the prompt path's final residuals (STRATA_PREFILL_DUMP_R) and the continuation are byte-identical to 0.1.21 at 4K and 20K tokens, IQ and S2 embedding tables.