]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
arg: Skip mmproj download when user supplied mmproj (#24239)
authorkonradmb <redacted>
Sun, 7 Jun 2026 09:18:44 +0000 (11:18 +0200)
committerGitHub <redacted>
Sun, 7 Jun 2026 09:18:44 +0000 (11:18 +0200)
common/arg.cpp

index 1ffaf704858d6b75e2fd9140372966406b54a0b4..a859aac4fe250e8a08ccc3fce19abe5a4545d4ad 100644 (file)
@@ -444,7 +444,7 @@ bool common_params_handle_models(common_params & params, llama_example curr_ex)
     opts.offline         = params.offline;
     opts.skip_download   = params.skip_download;
     opts.download_mtp    = spec_type_draft_mtp;
-    opts.download_mmproj = !params.no_mmproj;
+    opts.download_mmproj = !params.no_mmproj && params.mmproj.path.empty() && params.mmproj.url.empty();
 
     // sub-models (draft, mmproj, vocoder) are explicitly specified by the user,
     // so we should not auto-discover mtp/mmproj siblings for them