MCPcopy Create free account
hub / github.com/Niko1221/Strata / window_set_sampling

Function window_set_sampling

engine/metal/src/engine/window.cpp:3990–3992  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3988 return ((Window*) w)->sample_slot_row(row, sp, hist, hist_len, tok, err);
3989}
3990void 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}
3993bool 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)

Callers 1

runMethod · 0.85

Calls 1

set_samplingMethod · 0.45

Tested by

no test coverage detected