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

Function llama_set_sampler

subprojects/llama.cpp/src/llama-context.cpp:3173–3175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3171}
3172
3173bool llama_set_sampler(llama_context * ctx, llama_seq_id seq_id, llama_sampler * smpl) {
3174 return ctx->set_sampler(seq_id, smpl);
3175}
3176
3177llama_token llama_get_sampled_token_ith(llama_context * ctx, int32_t i) {
3178 ctx->synchronize();

Callers 4

resetMethod · 0.85
launch_slot_with_taskMethod · 0.85
test_backend_set_samplerFunction · 0.85

Calls 1

set_samplerMethod · 0.80

Tested by 2

test_backend_set_samplerFunction · 0.68