From 7bbe511b8e9d79666cb148203c1678157160ac00 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 8 Feb 2024 19:04:02 +0000 Subject: [PATCH] Revert bad merge with dynatemp flags --- common/common.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/common/common.cpp b/common/common.cpp index 49f91b83b..26042ff4c 100644 --- a/common/common.cpp +++ b/common/common.cpp @@ -403,6 +403,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;