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

Function llama_sampling_last

common/sampling.cpp:70–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70llama_token llama_sampling_last(llama_sampling_context * ctx) {
71 return ctx->prev.back();
72}
73
74std::string llama_sampling_prev_str(llama_sampling_context * ctx_sampling, llama_context * ctx_main, int n) {
75 const int size = ctx_sampling->prev.size();

Callers 2

mainFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected