MCPcopy Create free account
hub / github.com/antirez/llama.cpp-deepseek-v4-flash / test_typical

Function test_typical

tests/test-sampling.cpp:129–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129static 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
139static void test_penalties(
140 const std::vector<float> & probs, const std::vector<llama_token> & last_tokens,

Callers 1

mainFunction · 0.85

Calls 3

checkMethod · 0.80
applyMethod · 0.45

Tested by

no test coverage detected