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

Method insert

subprojects/llama.cpp/tools/server/server-common.cpp:323–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321}
322
323void server_tokens::insert(const llama_tokens & inp_tokens) {
324 GGML_ASSERT(!has_mtmd); // only allow this if mtmd is disabled
325 tokens.insert(tokens.end(), inp_tokens.begin(), inp_tokens.end());
326}
327
328const llama_tokens & server_tokens::get_text_tokens() const {
329 GGML_ASSERT(!has_mtmd); // only allow this if mtmd is disabled

Callers 15

mainFunction · 0.45
get_viewMethod · 0.45
load_hparamsMethod · 0.45
tokenizeMethod · 0.45
add_textMethod · 0.45
preprocessMethod · 0.45
parse_cmd_paramsFunction · 0.45
to_llama_mparamsMethod · 0.45
prompt_addFunction · 0.45
perplexity_v2Function · 0.45
perplexityFunction · 0.45
kl_divergenceFunction · 0.45

Calls 2

endMethod · 0.45
beginMethod · 0.45

Tested by 6

mainFunction · 0.36
mainFunction · 0.36
tensor_to_floatFunction · 0.36
list_all_opsFunction · 0.36
show_test_coverageFunction · 0.36