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

Function common_sampler_get_candidates

smallthinker/common/sampling.cpp:429–431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

427// helpers
428
429llama_token_data_array * common_sampler_get_candidates(struct common_sampler * gsmpl) {
430 return &gsmpl->cur_p;
431}
432
433llama_token common_sampler_last(const struct common_sampler * gsmpl) {
434 return gsmpl->prev.rat(0);

Callers 4

mainFunction · 0.85
populate_token_probsMethod · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by 2

mainFunction · 0.68