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

Method set_warmup

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

Source from the content-addressed store, hash-verified

1001}
1002
1003void llama_context::set_warmup(bool value) {
1004 LLAMA_LOG_DEBUG("%s: value = %d\n", __func__, value);
1005
1006 if (cparams.warmup == value) {
1007 return;
1008 }
1009
1010 cparams.warmup = value;
1011
1012 // warmups are usually with small batches, so no need to reserve
1013 //sched_need_reserve = true;
1014}
1015
1016bool llama_context::set_sampler(llama_seq_id seq_id, llama_sampler * sampler) {
1017 if (!sampler && sampling.samplers.count(seq_id) == 0) {

Callers 1

llama_set_warmupFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected