| 339 | } |
| 340 | |
| 341 | void llama_sampler_apply(struct llama_sampler * smpl, struct llama_token_data_array * cur_p) { |
| 342 | GGML_ASSERT(smpl->iface->apply); |
| 343 | smpl->iface->apply(smpl, cur_p); |
| 344 | } |
| 345 | |
| 346 | void llama_sampler_reset(struct llama_sampler * smpl) { |
| 347 | if (smpl->iface->reset) { |