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

Function llama_sampler_penalties_reset

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

Source from the content-addressed store, hash-verified

1681}
1682
1683static void llama_sampler_penalties_reset(struct llama_sampler * smpl) {
1684 auto * ctx = (llama_sampler_penalties *) smpl->ctx;
1685 ctx->prev.clear();
1686 ctx->token_count.clear();
1687}
1688
1689static struct llama_sampler * llama_sampler_penalties_clone(const struct llama_sampler * smpl) {
1690 const auto * ctx = (const llama_sampler_penalties *) smpl->ctx;

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected