Skip to content

Commit bca159c

Browse files
committed
fixed common issues
1 parent 9e9162f commit bca159c

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

common/common.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2025,7 +2025,7 @@ void yaml_dump_non_result_info(FILE * stream, const common_params & params, cons
20252025
const std::string & timestamp, const std::vector<int> & prompt_tokens, const char * model_desc) {
20262026
ggml_cpu_init(); // some ARM features are detected at runtime
20272027

2028-
const auto & sparams = params.sparams;
2028+
const auto & sparams = params.sampling;
20292029

20302030
fprintf(stream, "build_commit: %s\n", LLAMA_COMMIT);
20312031
fprintf(stream, "build_number: %d\n", LLAMA_BUILD_NUMBER);
@@ -2094,7 +2094,7 @@ void yaml_dump_non_result_info(FILE * stream, const common_params & params, cons
20942094
fprintf(stream, "interactive: %s # default: false\n", params.interactive ? "true" : "false");
20952095
fprintf(stream, "interactive_first: %s # default: false\n", params.interactive_first ? "true" : "false");
20962096
fprintf(stream, "keep: %d # default: 0\n", params.n_keep);
2097-
fprintf(stream, "logdir: %s # default: unset (no logging)\n", params.logdir.c_str());
2097+
//fprintf(stream, "logdir: %s # default: unset (no logging)\n", params.logdir.c_str());
20982098

20992099
fprintf(stream, "logit_bias:\n");
21002100
for (const auto & logit_bias : sparams.logit_bias) {
@@ -2121,7 +2121,7 @@ void yaml_dump_non_result_info(FILE * stream, const common_params & params, cons
21212121
fprintf(stream, "mirostat_lr: %f # default: 0.1\n", sparams.mirostat_eta);
21222122
fprintf(stream, "mlock: %s # default: false\n", params.use_mlock ? "true" : "false");
21232123
fprintf(stream, "model: %s # default: %s\n", params.model.c_str(), DEFAULT_MODEL_PATH);
2124-
fprintf(stream, "model_draft: %s # default:\n", params.model_draft.c_str());
2124+
//fprintf(stream, "model_draft: %s # default:\n", params.model_draft.c_str());
21252125
fprintf(stream, "multiline_input: %s # default: false\n", params.multiline_input ? "true" : "false");
21262126
fprintf(stream, "n_gpu_layers: %d # default: -1\n", params.n_gpu_layers);
21272127
fprintf(stream, "n_predict: %d # default: -1 (unlimited)\n", params.n_predict);

common/common.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -611,8 +611,6 @@ static const char * const LLM_KV_SPLIT_NO = "split.no";
611611
static const char * const LLM_KV_SPLIT_COUNT = "split.count";
612612
static const char * const LLM_KV_SPLIT_TENSORS_COUNT = "split.tensors.count";
613613

614-
=======
615-
616614
//
617615
// YAML utils
618616
//

0 commit comments

Comments
 (0)