Skip to content

Commit 9c192cf

Browse files
committed
clarify mtmd_get_output_embd
1 parent 699684c commit 9c192cf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/mtmd/mtmd.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,8 @@ MTMD_API int32_t mtmd_encode_chunk(mtmd_context * ctx,
203203
const mtmd_input_chunk * chunk);
204204

205205
// get output embeddings from the last encode pass
206+
// the reading size (in bytes) is equal to:
207+
// llama_model_n_embd(model) * mtmd_input_chunk_get_n_tokens(chunk) * sizeof(float)
206208
MTMD_API float * mtmd_get_output_embd(mtmd_context * ctx);
207209

208210
/////////////////////////////////////////

0 commit comments

Comments
 (0)