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

Function llama_sampler_dist_reset

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

Source from the content-addressed store, hash-verified

596}
597
598static void llama_sampler_dist_reset(struct llama_sampler * smpl) {
599 auto * ctx = (llama_sampler_dist *) smpl->ctx;
600 ctx->seed_cur = get_rng_seed(ctx->seed);
601 ctx->rng.seed(ctx->seed_cur);
602}
603
604static void llama_sampler_dist_free(struct llama_sampler * smpl) {
605 delete (llama_sampler_dist *) smpl->ctx;

Callers

nothing calls this directly

Calls 1

get_rng_seedFunction · 0.85

Tested by

no test coverage detected