From 620d4c5493ca6530d7fb8be20cba5fb4d5a074e5 Mon Sep 17 00:00:00 2001 From: l3utterfly Date: Sat, 3 Feb 2024 10:17:58 +0900 Subject: [PATCH] added dynamic temp params in main --- common/common.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/common/common.cpp b/common/common.cpp index ce739b15c..221e7172b 100644 --- a/common/common.cpp +++ b/common/common.cpp @@ -399,6 +399,18 @@ bool gpt_params_parse_ex(int argc, char ** argv, gpt_params & params) { break; } sparams.penalty_present = std::stof(argv[i]); + } else if (arg == "--dynatemp-range") { + if (++i >= argc) { + invalid_param = true; + break; + } + sparams.dynatemp_range = std::stof(argv[i]); + } else if (arg == "--dynatemp_exp") { + if (++i >= argc) { + invalid_param = true; + break; + } + sparams.dynatemp_exponent = std::stof(argv[i]); } else if (arg == "--mirostat") { if (++i >= argc) { invalid_param = true;