]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
embedding : enable --no-warmup option (#11475)
authorDaniel Bevenius <redacted>
Wed, 29 Jan 2025 08:38:54 +0000 (09:38 +0100)
committerGitHub <redacted>
Wed, 29 Jan 2025 08:38:54 +0000 (10:38 +0200)
This commit enables the `--no-warmup` option for the llama-embeddings.

The motivation for this change is to allow the user to disable the
warmup when running the the program.

common/arg.cpp

index a6226a34b18606141c0683e1bafe7829d3b17466..f5e9b294f304802a2a6eae04a11aad54bdeaf9c6 100644 (file)
@@ -877,7 +877,7 @@ common_params_context common_params_parser_init(common_params & params, llama_ex
         [](common_params & params) {
             params.warmup = false;
         }
-    ).set_examples({LLAMA_EXAMPLE_MAIN, LLAMA_EXAMPLE_SERVER}));
+    ).set_examples({LLAMA_EXAMPLE_MAIN, LLAMA_EXAMPLE_SERVER, LLAMA_EXAMPLE_EMBEDDING}));
     add_opt(common_arg(
         {"--spm-infill"},
         string_format(