MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / test_min_p

Function test_min_p

smallthinker/tests/test-sampling.cpp:108–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108static 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
119static 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);

Callers 1

mainFunction · 0.85

Calls 4

llama_sampler_init_min_pFunction · 0.85
llama_sampler_init_distFunction · 0.85
applyMethod · 0.45
checkMethod · 0.45

Tested by

no test coverage detected