mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2025-01-29 13:24:50 +01:00
fixed string format to float
This commit is contained in:
parent
6c1ca58f07
commit
a52e023969
@ -914,7 +914,7 @@ common_params_context common_params_parser_init(common_params & params, llama_ex
|
|||||||
).set_sparam());
|
).set_sparam());
|
||||||
add_opt(common_arg(
|
add_opt(common_arg(
|
||||||
{"--top-nsigma"}, "N",
|
{"--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) {
|
[](common_params & params, const std::string & value) {
|
||||||
params.sampling.top_n_sigma = std::stof(value);
|
params.sampling.top_n_sigma = std::stof(value);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user