mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-11-03 09:22:01 +00:00 
			
		
		
		
	mtmd-cli : fix out_of_range when input image path is empty (#13244)
* fix out_of_range error to keep the chat loop running * Update examples/llava/mtmd-cli.cpp Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com> * mtmd-cli : load image right away * add a new line for readability * rm printf * Update examples/llava/mtmd-cli.cpp Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com> * Update examples/llava/mtmd-cli.cpp --------- Co-authored-by: Sigbjørn Skjæret <sigbjorn.skjaeret@scala.com> Co-authored-by: Xuan Son Nguyen <son@huggingface.co> Co-authored-by: Xuan-Son Nguyen <thichthat@gmail.com>
This commit is contained in:
		@@ -590,7 +590,7 @@ int32_t mtmd_helper_eval(mtmd_context * ctx,
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
        } else if (chunk.type == MTMD_INPUT_CHUNK_TYPE_IMAGE) {
 | 
			
		||||
            GGML_ASSERT(!is_last && "logits for last image chunk is not yet support");
 | 
			
		||||
            GGML_ASSERT(!is_last && "logits for last image chunk is not yet supported");
 | 
			
		||||
            GGML_ASSERT(chunk.tokens_image != nullptr);
 | 
			
		||||
            int64_t t0 = ggml_time_ms();
 | 
			
		||||
            if (ctx->print_timings) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user