File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,6 @@ struct mtmd_input_text {
5555
5656//
5757// C API
58- // this is made to closely resemble the C++ API
5958//
6059
6160typedef struct mtmd_context mtmd_context;
@@ -211,11 +210,7 @@ MTMD_API int32_t mtmd_helper_eval_chunks(mtmd_context * ctx,
211210 bool logits_last,
212211 llama_pos * new_n_past);
213212
214- // helper function to evaluate a single chunk
215- // 1. run llama_decode() on text chunks
216- // 2. run mtmd_encode() on image chunks, then mtmd_get_output_embd() and then llama_decode()
217- // if any of the mtmd_encode() or llama_decode() calls return non-zero, stop and forward the error
218- // otherwise, returns 0 on success
213+ // works like mtmd_helper_eval_chunks(), but only for a single chunk
219214// this function is NOT thread-safe
220215MTMD_API int32_t mtmd_helper_eval_chunk_single (mtmd_context * ctx,
221216 struct llama_context * lctx,
You can’t perform that action at this time.
0 commit comments