| 62 | }; |
| 63 | |
| 64 | static void test_temp(const std::vector<float> & probs, const std::vector<float> & probs_expected, float temp) { |
| 65 | sampler_tester tester(probs, probs_expected); |
| 66 | |
| 67 | DUMP(&tester.cur_p); |
| 68 | tester.apply(llama_sampler_init_temp(temp)); |
| 69 | tester.apply(llama_sampler_init_dist(0)); |
| 70 | DUMP(&tester.cur_p); |
| 71 | |
| 72 | tester.check(); |
| 73 | } |
| 74 | |
| 75 | static void test_temp_ext(const std::vector<float> & probs, const std::vector<float> & probs_expected, float temp, float delta, float exponent) { |
| 76 | sampler_tester tester(probs, probs_expected); |
no test coverage detected