Skip to content

Commit 111c820

Browse files
committed
add --audio arg
1 parent e7c8a2e commit 111c820

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

common/arg.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
using json = nlohmann::ordered_json;
4040

4141
std::initializer_list<enum llama_example> mmproj_examples = {
42-
LLAMA_EXAMPLE_LLAVA,
42+
LLAMA_EXAMPLE_MTMD,
4343
LLAMA_EXAMPLE_SERVER,
4444
};
4545

@@ -2233,12 +2233,12 @@ common_params_context common_params_parser_init(common_params & params, llama_ex
22332233
}
22342234
).set_examples(mmproj_examples).set_env("LLAMA_ARG_NO_MMPROJ_OFFLOAD"));
22352235
add_opt(common_arg(
2236-
{"--image"}, "FILE",
2237-
"path to an image file. use with multimodal models. Specify multiple times for batching",
2236+
{"--image", "--audio"}, "FILE",
2237+
"path to an image or audio file. use with multimodal models, can be repeated if you have multiple files\n",
22382238
[](common_params & params, const std::string & value) {
22392239
params.image.emplace_back(value);
22402240
}
2241-
).set_examples({LLAMA_EXAMPLE_LLAVA}));
2241+
).set_examples({LLAMA_EXAMPLE_MTMD}));
22422242
if (llama_supports_rpc()) {
22432243
add_opt(common_arg(
22442244
{"--rpc"}, "SERVERS",
@@ -2868,7 +2868,7 @@ common_params_context common_params_parser_init(common_params & params, llama_ex
28682868
[](common_params & params, const std::string & value) {
28692869
params.chat_template = value;
28702870
}
2871-
).set_examples({LLAMA_EXAMPLE_MAIN, LLAMA_EXAMPLE_SERVER, LLAMA_EXAMPLE_LLAVA}).set_env("LLAMA_ARG_CHAT_TEMPLATE"));
2871+
).set_examples({LLAMA_EXAMPLE_MAIN, LLAMA_EXAMPLE_SERVER, LLAMA_EXAMPLE_MTMD}).set_env("LLAMA_ARG_CHAT_TEMPLATE"));
28722872
add_opt(common_arg(
28732873
{"--chat-template-file"}, "JINJA_TEMPLATE_FILE",
28742874
string_format(

common/common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ enum llama_example {
7676
LLAMA_EXAMPLE_SERVER,
7777
LLAMA_EXAMPLE_CVECTOR_GENERATOR,
7878
LLAMA_EXAMPLE_EXPORT_LORA,
79-
LLAMA_EXAMPLE_LLAVA,
79+
LLAMA_EXAMPLE_MTMD,
8080
LLAMA_EXAMPLE_LOOKUP,
8181
LLAMA_EXAMPLE_PARALLEL,
8282
LLAMA_EXAMPLE_TTS,

tools/mtmd/mtmd-cli.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ int main(int argc, char ** argv) {
243243
common_params params;
244244
params.sampling.temp = 0.2; // lower temp by default for better quality
245245

246-
if (!common_params_parse(argc, argv, params, LLAMA_EXAMPLE_LLAVA, show_additional_info)) {
246+
if (!common_params_parse(argc, argv, params, LLAMA_EXAMPLE_MTMD, show_additional_info)) {
247247
return 1;
248248
}
249249

0 commit comments

Comments
 (0)