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

Method clone

tools/server/server-common.cpp:565–575  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

563}
564
565server_tokens server_tokens::clone() const {
566 server_tokens res;
567 res.has_mtmd = has_mtmd;
568 res.tokens = tokens;
569 for (auto it = map_idx_to_media.begin(); it != map_idx_to_media.end(); ++it) {
570 size_t idx = it->first;
571 const mtmd::input_chunk_ptr & chunk = it->second;
572 res.map_idx_to_media[idx] = mtmd::input_chunk_ptr(mtmd_input_chunk_copy(chunk.get()));
573 }
574 return res;
575}
576
577//
578// tokenizer and input processing utils

Callers 5

copy_state_toMethod · 0.45
allocMethod · 0.45
llama_sampler_cloneFunction · 0.45

Calls 4

mtmd_input_chunk_copyFunction · 0.85
endMethod · 0.80
beginMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected