@@ -2204,32 +2204,33 @@ common_params_context common_params_parser_init(common_params & params, llama_ex
2204
2204
).set_examples ({LLAMA_EXAMPLE_SERVER}).set_env (" LLAMA_ARG_NO_CONT_BATCHING" ));
2205
2205
add_opt (common_arg (
2206
2206
{" --mmproj" }, " FILE" ,
2207
- " path to a multimodal projector file. see tools/mtmd/README.md" ,
2207
+ " path to a multimodal projector file. see tools/mtmd/README.md\n "
2208
+ " note: if -hf is used, this argument can be omitted" ,
2208
2209
[](common_params & params, const std::string & value) {
2209
2210
params.mmproj .path = value;
2210
2211
}
2211
- ).set_examples (mmproj_examples));
2212
+ ).set_examples (mmproj_examples). set_env ( " LLAMA_ARG_MMPROJ " ) );
2212
2213
add_opt (common_arg (
2213
2214
{" --mmproj-url" }, " URL" ,
2214
2215
" URL to a multimodal projector file. see tools/mtmd/README.md" ,
2215
2216
[](common_params & params, const std::string & value) {
2216
2217
params.mmproj .url = value;
2217
2218
}
2218
- ).set_examples (mmproj_examples));
2219
+ ).set_examples (mmproj_examples). set_env ( " LLAMA_ARG_MMPROJ_URL " ) );
2219
2220
add_opt (common_arg (
2220
2221
{" --no-mmproj" },
2221
2222
" explicitly disable multimodal projector, useful when using -hf" ,
2222
2223
[](common_params & params) {
2223
2224
params.no_mmproj = true ;
2224
2225
}
2225
- ).set_examples (mmproj_examples));
2226
+ ).set_examples (mmproj_examples). set_env ( " LLAMA_ARG_NO_MMPROJ " ) );
2226
2227
add_opt (common_arg (
2227
2228
{" --no-mmproj-offload" },
2228
2229
" do not offload multimodal projector to GPU" ,
2229
2230
[](common_params & params) {
2230
2231
params.mmproj_use_gpu = false ;
2231
2232
}
2232
- ).set_examples (mmproj_examples));
2233
+ ).set_examples (mmproj_examples). set_env ( " LLAMA_ARG_NO_MMPROJ_OFFLOAD " ) );
2233
2234
add_opt (common_arg (
2234
2235
{" --image" }, " FILE" ,
2235
2236
" path to an image file. use with multimodal models. Specify multiple times for batching" ,
0 commit comments