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

Function llama_set_n_threads

llama.cpp:10614–10617  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10612}
10613
10614void llama_set_n_threads(struct llama_context * ctx, uint32_t n_threads, uint32_t n_threads_batch) {
10615 ctx->cparams.n_threads = n_threads;
10616 ctx->cparams.n_threads_batch = n_threads_batch;
10617}
10618
10619struct llama_batch llama_batch_get_one(
10620 llama_token * tokens,

Callers 2

test_promptFunction · 0.50
test_genFunction · 0.50

Calls

no outgoing calls

Tested by 2

test_promptFunction · 0.40
test_genFunction · 0.40