| 1362 | } |
| 1363 | |
| 1364 | static 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 | |
| 1371 | static struct llama_sampler * llama_sampler_mirostat_v2_clone(const struct llama_sampler * smpl) { |
| 1372 | const auto * ctx = (const llama_sampler_mirostat_v2 *) smpl->ctx; |
nothing calls this directly
no test coverage detected