| 1279 | } |
| 1280 | |
| 1281 | static 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 | |
| 1288 | static void llama_sampler_mirostat_free(struct llama_sampler * smpl) { |
| 1289 | delete (llama_sampler_mirostat *) smpl->ctx; |
nothing calls this directly
no test coverage detected