Skip to content

Commit 54a0fee

Browse files
authored
arg: add -mm and -mmu as short form of --mmproj and --mmproj-url (#17958)
* arg: add -mm and -mmu as short form of --mmproj and --mmproj-url * correct order * update docs
1 parent dada4c8 commit 54a0fee

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

common/arg.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1856,15 +1856,15 @@ common_params_context common_params_parser_init(common_params & params, llama_ex
18561856
}
18571857
).set_examples({LLAMA_EXAMPLE_SERVER}).set_env("LLAMA_ARG_NO_CONT_BATCHING"));
18581858
add_opt(common_arg(
1859-
{"--mmproj"}, "FILE",
1859+
{"-mm", "--mmproj"}, "FILE",
18601860
"path to a multimodal projector file. see tools/mtmd/README.md\n"
18611861
"note: if -hf is used, this argument can be omitted",
18621862
[](common_params & params, const std::string & value) {
18631863
params.mmproj.path = value;
18641864
}
18651865
).set_examples(mmproj_examples).set_env("LLAMA_ARG_MMPROJ"));
18661866
add_opt(common_arg(
1867-
{"--mmproj-url"}, "URL",
1867+
{"-mmu", "--mmproj-url"}, "URL",
18681868
"URL to a multimodal projector file. see tools/mtmd/README.md",
18691869
[](common_params & params, const std::string & value) {
18701870
params.mmproj.url = value;

tools/server/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ For the ful list of features, please refer to [server's changelog](https://githu
166166
| `--pooling {none,mean,cls,last,rank}` | pooling type for embeddings, use model default if unspecified<br/>(env: LLAMA_ARG_POOLING) |
167167
| `-cb, --cont-batching` | enable continuous batching (a.k.a dynamic batching) (default: enabled)<br/>(env: LLAMA_ARG_CONT_BATCHING) |
168168
| `-nocb, --no-cont-batching` | disable continuous batching<br/>(env: LLAMA_ARG_NO_CONT_BATCHING) |
169-
| `--mmproj FILE` | path to a multimodal projector file. see tools/mtmd/README.md<br/>note: if -hf is used, this argument can be omitted<br/>(env: LLAMA_ARG_MMPROJ) |
170-
| `--mmproj-url URL` | URL to a multimodal projector file. see tools/mtmd/README.md<br/>(env: LLAMA_ARG_MMPROJ_URL) |
169+
| `-mm, --mmproj FILE` | path to a multimodal projector file. see tools/mtmd/README.md<br/>note: if -hf is used, this argument can be omitted<br/>(env: LLAMA_ARG_MMPROJ) |
170+
| `-mmu, --mmproj-url URL` | URL to a multimodal projector file. see tools/mtmd/README.md<br/>(env: LLAMA_ARG_MMPROJ_URL) |
171171
| `--no-mmproj` | explicitly disable multimodal projector, useful when using -hf<br/>(env: LLAMA_ARG_NO_MMPROJ) |
172172
| `--no-mmproj-offload` | do not offload multimodal projector to GPU<br/>(env: LLAMA_ARG_NO_MMPROJ_OFFLOAD) |
173173
| `--image-min-tokens N` | minimum number of tokens each image can take, only used by vision models with dynamic resolution (default: read from model)<br/>(env: LLAMA_ARG_IMAGE_MIN_TOKENS) |

0 commit comments

Comments
 (0)