MCPcopy Create free account
hub / github.com/antirez/llama.cpp-deepseek-v4-flash / n_tokens

Method n_tokens

tools/server/server-task.cpp:1982–1990  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1980}
1981
1982size_t server_prompt_cache::n_tokens() const {
1983 size_t res = 0;
1984
1985 for (const auto & state : states) {
1986 res += state.n_tokens();
1987 }
1988
1989 return res;
1990}
1991
1992server_prompt * server_prompt_cache::alloc(const server_prompt & prompt, size_t state_size) {
1993 // first check if the current state is contained fully in the cache

Callers 15

get_n_draft_maxMethod · 0.45
update_batchMethod · 0.45
releaseMethod · 0.45
on_prompt_evalMethod · 0.45
on_decodedMethod · 0.45
slot_save_and_clearMethod · 0.45
try_clear_idle_slotsMethod · 0.45
process_tokenMethod · 0.45
send_errorMethod · 0.45
send_partial_responseMethod · 0.45
send_final_responseMethod · 0.45
send_embeddingMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected