| 13 | extern struct llama_sampler * llama_sampler_init_dry_testing(int32_t context_size, float dry_multiplier, float dry_base, int32_t dry_allowed_length, int32_t dry_penalty_last_n, const std::vector<std::vector<llama_token>>& seq_breakers); |
| 14 | |
| 15 | static void dump(const llama_token_data_array * cur_p) { |
| 16 | for (size_t i = 0; i < cur_p->size; i++) { |
| 17 | printf("%d: %f (%f)\n", cur_p->data[i].id, cur_p->data[i].p, cur_p->data[i].logit); |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | #define DUMP(__cur_p) do { printf("%s:%d (%s)\n", __FILE__, __LINE__, __func__); dump((__cur_p)); printf("-\n"); } while(0) |
| 22 | |