From: Gian-Carlo Pascutto Date: Tue, 19 Aug 2025 16:58:14 +0000 (+0200) Subject: common : Add top-nsigma sampler to help globally (#15428) X-Git-Tag: upstream/0.0.6527~320 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=1e19f5d462b6df490a13103ca555d851f47e5fa5;p=pkg%2Fggml%2Fsources%2Fllama.cpp common : Add top-nsigma sampler to help globally (#15428) Fixes #15423. --- diff --git a/common/arg.cpp b/common/arg.cpp index d3868018..d9f6ec96 100644 --- a/common/arg.cpp +++ b/common/arg.cpp @@ -1830,7 +1830,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_examples({LLAMA_EXAMPLE_MAIN}).set_sparam()); + ).set_sparam()); add_opt(common_arg( {"--xtc-probability"}, "N", string_format("xtc probability (default: %.1f, 0.0 = disabled)", (double)params.sampling.xtc_probability),