arg : removed unecesary mmproj download when users pass --no-mmproj (#23425)

This commit is contained in:
Ryan Mangeno
2026-06-03 08:04:46 +03:00
committed by GitHub
parent 63e66fdd23
commit e3666269f9
+1 -1
View File
@@ -353,7 +353,6 @@ static handle_model_result common_params_handle_model(struct common_params_model
model.path = ""; model.path = "";
} }
common_download_opts hf_opts = opts; common_download_opts hf_opts = opts;
hf_opts.download_mmproj = true; // also look for mmproj when downloading hf model
auto download_result = common_download_model(model, hf_opts); auto download_result = common_download_model(model, hf_opts);
if (download_result.model_path.empty()) { if (download_result.model_path.empty()) {
@@ -445,6 +444,7 @@ bool common_params_handle_models(common_params & params, llama_example curr_ex)
opts.offline = params.offline; opts.offline = params.offline;
opts.skip_download = params.skip_download; opts.skip_download = params.skip_download;
opts.download_mtp = spec_type_draft_mtp; opts.download_mtp = spec_type_draft_mtp;
opts.download_mmproj = !params.no_mmproj;
try { try {
auto res = common_params_handle_model(params.model, opts); auto res = common_params_handle_model(params.model, opts);