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

Function mtmd_tokenize

subprojects/llama.cpp/tools/mtmd/mtmd.cpp:789–796  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

787};
788
789int32_t mtmd_tokenize(mtmd_context * ctx,
790 mtmd_input_chunks * output,
791 const mtmd_input_text * text,
792 const mtmd_bitmap ** bitmaps,
793 size_t n_bitmaps) {
794 mtmd_tokenizer tokenizer(ctx, text, bitmaps, n_bitmaps);
795 return tokenizer.tokenize(output);
796}
797
798int32_t mtmd_encode_chunk(mtmd_context * ctx, const mtmd_input_chunk * chunk) {
799 if (chunk->type == MTMD_INPUT_CHUNK_TYPE_TEXT) {

Callers 2

eval_messageFunction · 0.85
process_mtmd_promptFunction · 0.85

Calls 1

tokenizeMethod · 0.45

Tested by

no test coverage detected