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

Function llama_sampler_mirostat_reset

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

Source from the content-addressed store, hash-verified

1279}
1280
1281static void llama_sampler_mirostat_reset(struct llama_sampler * smpl) {
1282 auto * ctx = (llama_sampler_mirostat *) smpl->ctx;
1283 ctx->mu = 2.0f*ctx->tau;
1284 ctx->seed_cur = get_rng_seed(ctx->seed);
1285 ctx->rng.seed(ctx->seed_cur);
1286}
1287
1288static void llama_sampler_mirostat_free(struct llama_sampler * smpl) {
1289 delete (llama_sampler_mirostat *) smpl->ctx;

Callers

nothing calls this directly

Calls 1

get_rng_seedFunction · 0.85

Tested by

no test coverage detected