diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/common.cpp | 9 | ||||
-rw-r--r-- | common/common.h | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/common/common.cpp b/common/common.cpp index f7a6f76f..6bf6e4f9 100644 --- a/common/common.cpp +++ b/common/common.cpp @@ -1360,6 +1360,15 @@ bool gpt_params_find_arg(int argc, char ** argv, const std::string & arg, gpt_pa params.warmup = false; return true; } + if (arg == "--output-format") { + CHECK_ARG + std::string value(argv[i]); + /**/ if (value == "jsonl") { params.sweep_bench_output_jsonl = true; } + else if (value == "md") { params.sweep_bench_output_jsonl = false; } + else { invalid_param = true; } + return true; + } + #ifndef LOG_DISABLE_LOGS // Parse args for logging parameters if (log_param_single_parse(argv[i])) { diff --git a/common/common.h b/common/common.h index fc1ae619..b5b67986 100644 --- a/common/common.h +++ b/common/common.h @@ -269,6 +269,8 @@ struct gpt_params { bool spm_infill = false; // suffix/prefix/middle pattern for infill std::string lora_outfile = "ggml-lora-merged-f16.gguf"; + + bool sweep_bench_output_jsonl = false; }; void gpt_params_handle_hf_token(gpt_params & params); |