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

Function llama_sampler_dry_reset

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

Source from the content-addressed store, hash-verified

2096}
2097
2098static void llama_sampler_dry_reset(struct llama_sampler * smpl) {
2099 auto * ctx = (llama_sampler_dry *) smpl->ctx;
2100 ctx->last_tokens.clear();
2101 ctx->dry_repeat_count.clear();
2102 ctx->dry_max_token_repeat.clear();
2103}
2104
2105static struct llama_sampler * llama_sampler_dry_clone(const struct llama_sampler * smpl) {
2106 const auto * ctx = (llama_sampler_dry *) smpl->ctx;

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected