From bee4c7c9fa0e44a70ef8802e2d0f86a29b8498d9 Mon Sep 17 00:00:00 2001 From: VJHack Date: Mon, 13 Jan 2025 15:12:50 -0600 Subject: [PATCH] apply parameter to only llama-cli --- common/arg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/arg.cpp b/common/arg.cpp index 6c6be6ef7..c62e44168 100644 --- a/common/arg.cpp +++ b/common/arg.cpp @@ -905,7 +905,7 @@ common_params_context common_params_parser_init(common_params & params, llama_ex [](common_params & params, const std::string & value) { params.sampling.top_n_sigma = std::stof(value); } - ).set_sparam()); + ).set_examples({LLAMA_EXAMPLE_MAIN}).set_sparam()); add_opt(common_arg( {"--xtc-probability"}, "N", string_format("xtc probability (default: %.1f, 0.0 = disabled)", (double)params.sampling.xtc_probability),