apply parameter to only llama-cli

This commit is contained in:
VJHack 2025-01-13 15:12:50 -06:00
parent da038d8715
commit bee4c7c9fa

View File

@ -905,7 +905,7 @@ common_params_context common_params_parser_init(common_params & params, llama_ex
[](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);
} }
).set_sparam()); ).set_examples({LLAMA_EXAMPLE_MAIN}).set_sparam());
add_opt(common_arg( add_opt(common_arg(
{"--xtc-probability"}, "N", {"--xtc-probability"}, "N",
string_format("xtc probability (default: %.1f, 0.0 = disabled)", (double)params.sampling.xtc_probability), string_format("xtc probability (default: %.1f, 0.0 = disabled)", (double)params.sampling.xtc_probability),