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

Method size

tools/server/server-task.cpp:1972–1980  ·  view source on GitHub ↗

server_prompt_cache

Source from the content-addressed store, hash-verified

1970// server_prompt_cache
1971//
1972size_t server_prompt_cache::size() const {
1973 size_t res = 0;
1974
1975 for (const auto & state : states) {
1976 res += state.size();
1977 }
1978
1979 return res;
1980}
1981
1982size_t server_prompt_cache::n_tokens() const {
1983 size_t res = 0;

Callers 15

mainFunction · 0.45
calc_diffMethod · 0.45
filter_nonzero_rowsMethod · 0.45
concat_diff_tmpMethod · 0.45
build_v_diffMethod · 0.45
tokenized_promptMethod · 0.45
padding_seqMethod · 0.45
get_hidden_layersFunction · 0.45
export_ggufFunction · 0.45
prepare_entriesFunction · 0.45
mainFunction · 0.45
runFunction · 0.45

Calls

no outgoing calls

Tested by 15

mainFunction · 0.36
match_string_detailedFunction · 0.36
assert_msg_equalsFunction · 0.36
test_peg_parserFunction · 0.36
mainFunction · 0.36
test_contextMethod · 0.36
decodeMethod · 0.36
decode_tokensMethod · 0.36
token_to_pieceMethod · 0.36