Distribute and run LLMs with a single file.
C++ cross-platformggufllama-cpplocal-ailocal-inferencelocal-llmopen-source-aisingle-file-executablespeech-to-text
Don't crash when --image argument is invalid
Justine Tunneyc617679ac690
diff --git a/llama.cpp/llava/llava-cli.cpp b/llama.cpp/llava/llava-cli.cppindex 246d1e3b..b11fd7a1 100644--- a/llama.cpp/llava/llava-cli.cpp+++ b/llama.cpp/llava/llava-cli.cpp@@ -263,6 +263,9 @@ int llava_cli(int argc, char ** argv) {sigaction(SIGINT, &sa, NULL);auto image_embed = load_image(ctx_llava, ¶ms);+ if (!image_embed) {+ exit(1);+ }// process the promptprocess_prompt(ctx_llava, image_embed, ¶ms, params.prompt);