MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / test_top_n_sigma

Function test_top_n_sigma

subprojects/llama.cpp/tests/test-sampling.cpp:184–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184static void test_top_n_sigma(const std::vector<float> & probs, const std::vector<float> & probs_expected, int n) {
185 sampler_tester tester(probs, probs_expected);
186
187 DUMP(&tester.cur_p);
188 tester.apply(llama_sampler_init_top_n_sigma(n));
189 tester.apply(llama_sampler_init_dist (0));
190 DUMP(&tester.cur_p);
191
192 tester.check();
193}
194
195static void test_sampler_queue(const size_t n_vocab, const std::string & samplers_sequence, const int top_k, const float top_p, const float min_p
196) {

Callers 1

mainFunction · 0.85

Calls 4

llama_sampler_init_distFunction · 0.85
applyMethod · 0.65
checkMethod · 0.65

Tested by

no test coverage detected