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

Function mtmd_init_from_file

tools/mtmd/mtmd.cpp:600–609  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

598};
599
600mtmd_context * mtmd_init_from_file(const char * mmproj_fname,
601 const struct llama_model * text_model,
602 const struct mtmd_context_params ctx_params) {
603 try {
604 return new mtmd_context(mmproj_fname, text_model, ctx_params);
605 } catch (const std::exception & e) {
606 LOG_ERR("%s: error: %s\n", __func__, e.what());
607 return nullptr;
608 }
609}
610
611void mtmd_free(mtmd_context * ctx) {
612 delete ctx;

Callers 3

init_vision_contextMethod · 0.85
mainFunction · 0.85
load_modelMethod · 0.85

Calls 1

whatMethod · 0.45

Tested by

no test coverage detected