From: Daniel Bevenius Date: Wed, 29 Jan 2025 08:38:54 +0000 (+0100) Subject: embedding : enable --no-warmup option (#11475) X-Git-Tag: upstream/0.0.4631~50 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=b636228c0ad0db95bf73008094c6145a05615cf6;p=pkg%2Fggml%2Fsources%2Fllama.cpp embedding : enable --no-warmup option (#11475) 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. --- diff --git a/common/arg.cpp b/common/arg.cpp index a6226a34..f5e9b294 100644 --- a/common/arg.cpp +++ b/common/arg.cpp @@ -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(