mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-06 00:08:52 +00:00
- serve: a verify window samples T rows, but only row 0's penalty history was staged; rows 1..T-1 read unwritten slots (past the allocation at penalty_last_n=4096). Every row now gets its own history (strata::kernels::penalty_rows: the consumed tail, the fed-back token, the drafts before that row). - prompt windows (their picks are discarded) skip the head sampling: Verifier::set_head_sampling. - sampler: history ids outside [0, n_vocab) are ignored (they set bits past the shared bitmap); sampled top_k 0 or > 64 means 64 and every row is written (0 used to leave the row unwritten). - server: a client's top_k 0 or > 64 is sent as 64 (it fell back to the default 20). - CLI: the speculative loop gets the CLI's sampling (it was always greedy), the per-token path draws Philox(seed, position) like a verify window, and the effective sampling is printed. - sampler_parity: fixtures 12-15 (per-row histories T=1..8 x H=1..4096, out-of-vocab ids, the top_k contract, penalty_rows); outputs are pre-filled so an unwritten row fails. - setup requires engine 0.1.19. Found by the engineering performance review (C1, C2).