| 106 | } |
| 107 | |
| 108 | static void test_min_p(const std::vector<float> & probs, const std::vector<float> & probs_expected, float p) { |
| 109 | sampler_tester tester(probs, probs_expected); |
| 110 | |
| 111 | DUMP(&tester.cur_p); |
| 112 | tester.apply(llama_sampler_init_min_p(p, 0)); |
| 113 | tester.apply(llama_sampler_init_dist (0)); |
| 114 | DUMP(&tester.cur_p); |
| 115 | |
| 116 | tester.check(); |
| 117 | } |
| 118 | |
| 119 | static void test_xtc(const std::vector<float> & probs, const std::vector<float> & probs_expected, float p, float t) { |
| 120 | sampler_tester tester(probs, probs_expected); |
no test coverage detected