From a52e023969d317fffc70fc9410292b6a2f942abb Mon Sep 17 00:00:00 2001 From: VJHack Date: Sun, 19 Jan 2025 22:58:42 -0600 Subject: [PATCH] fixed string format to float --- common/arg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/arg.cpp b/common/arg.cpp index 5e2f9c1f6..27d5c576d 100644 --- a/common/arg.cpp +++ b/common/arg.cpp @@ -914,7 +914,7 @@ common_params_context common_params_parser_init(common_params & params, llama_ex ).set_sparam()); add_opt(common_arg( {"--top-nsigma"}, "N", - string_format("top-n-sigma sampling (default: %d, -1 = disabled)", params.sampling.top_n_sigma), + string_format("top-n-sigma sampling (default: %.1f, -1.0 = disabled)", params.sampling.top_n_sigma), [](common_params & params, const std::string & value) { params.sampling.top_n_sigma = std::stof(value); }