| 3988 | return ((Window*) w)->sample_slot_row(row, sp, hist, hist_len, tok, err); |
| 3989 | } |
| 3990 | void window_set_sampling(void* w, const strata::kernels::SamplerParams* sp, const int32_t* hist, int hist_len) { |
| 3991 | ((Window*) w)->set_sampling(sp, hist, hist_len); |
| 3992 | } |
| 3993 | bool window_run(void* w, int T, const int32_t* tokens, int64_t pos0, bool head, int32_t* out, std::string& err) { |
| 3994 | // STRATA_LOGPOS (the quant yardstick, the KL harness): every window's head logits are read, also the prompt's |
| 3995 | // windows that sample nothing (head_sampling off) |