From: ddh0 Date: Thu, 19 Mar 2026 15:16:55 +0000 (-0500) Subject: common : add LLAMA_ARG_SPEC_TYPE (#20744) X-Git-Tag: upstream/0.0.8611~179 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=922b90e5672c869614baf6c617ed1069bab9a8e8;p=pkg%2Fggml%2Fsources%2Fllama.cpp common : add LLAMA_ARG_SPEC_TYPE (#20744) --- diff --git a/common/arg.cpp b/common/arg.cpp index 666339a09..cd78a5c64 100644 --- a/common/arg.cpp +++ b/common/arg.cpp @@ -3494,7 +3494,7 @@ common_params_context common_params_parser_init(common_params & params, llama_ex throw std::invalid_argument("unknown speculative decoding type without draft model"); } } - ).set_examples({LLAMA_EXAMPLE_SERVER})); + ).set_examples({LLAMA_EXAMPLE_SERVER}).set_env("LLAMA_ARG_SPEC_TYPE")); add_opt(common_arg( {"--spec-ngram-size-n"}, "N", string_format("ngram size N for ngram-simple/ngram-map speculative decoding, length of lookup n-gram (default: %d)", params.speculative.ngram_size_n),