Skip to content

Commit aa88f32

Browse files
committed
Revert "rm change about no_mmproj"
This reverts commit 2cac8e0.
1 parent 2cac8e0 commit aa88f32

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

common/arg.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2120,6 +2120,13 @@ common_params_context common_params_parser_init(common_params & params, llama_ex
21202120
params.mmproj.url = value;
21212121
}
21222122
).set_examples({LLAMA_EXAMPLE_LLAVA}));
2123+
add_opt(common_arg(
2124+
{"--no-mmproj"},
2125+
"explicitly disable multimodal projector, useful when using -hf",
2126+
[](common_params & params) {
2127+
params.no_mmproj = true;
2128+
}
2129+
).set_examples({LLAMA_EXAMPLE_LLAVA}));
21232130
add_opt(common_arg(
21242131
{"--image"}, "FILE",
21252132
"path to an image file. use with multimodal models. Specify multiple times for batching",

common/common.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ struct common_params {
342342

343343
// multimodal models (see examples/llava)
344344
struct common_params_model mmproj;
345+
bool no_mmproj = false; // explicitly disable multimodal model
345346
std::vector<std::string> image; // path to image file(s)
346347

347348
// embedding

0 commit comments

Comments
 (0)