MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / llama_sampler_mirostat_v2_reset

Function llama_sampler_mirostat_v2_reset

smallthinker/src/llama-sampling.cpp:1364–1369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1362}
1363
1364static void llama_sampler_mirostat_v2_reset(struct llama_sampler * smpl) {
1365 auto * ctx = (llama_sampler_mirostat_v2 *) smpl->ctx;
1366 ctx->mu = 2.0f*ctx->tau;
1367 ctx->seed_cur = get_rng_seed(ctx->seed);
1368 ctx->rng.seed(ctx->seed_cur);
1369}
1370
1371static struct llama_sampler * llama_sampler_mirostat_v2_clone(const struct llama_sampler * smpl) {
1372 const auto * ctx = (const llama_sampler_mirostat_v2 *) smpl->ctx;

Callers

nothing calls this directly

Calls 1

get_rng_seedFunction · 0.85

Tested by

no test coverage detected