| 127 | } |
| 128 | |
| 129 | static void test_typical(const std::vector<float> & probs, const std::vector<float> & probs_expected, float p) { |
| 130 | sampler_tester tester(probs, probs_expected); |
| 131 | |
| 132 | DUMP(&tester.cur_p); |
| 133 | tester.apply(llama_sampler_init_typical(p, 0)); |
| 134 | DUMP(&tester.cur_p); |
| 135 | |
| 136 | tester.check(); |
| 137 | } |
| 138 | |
| 139 | static void test_penalties( |
| 140 | const std::vector<float> & probs, const std::vector<llama_token> & last_tokens, |
no test coverage detected