| 518 | } |
| 519 | |
| 520 | struct llama_sampler * common_sampler_get(const struct common_sampler * gsmpl) { |
| 521 | if (!gsmpl) { |
| 522 | return nullptr; |
| 523 | } |
| 524 | |
| 525 | return gsmpl->chain; |
| 526 | } |
| 527 | |
| 528 | llama_token common_sampler_sample(struct common_sampler * gsmpl, struct llama_context * ctx, int idx, bool grammar_first) { |
| 529 | llama_synchronize(ctx); |
no outgoing calls
no test coverage detected