Skip to content

Commit

Permalink
added dynamic temp params in main
Browse files Browse the repository at this point in the history
  • Loading branch information
l3utterfly committed Feb 3, 2024
1 parent 1912211 commit 620d4c5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions common/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 620d4c5

Please sign in to comment.