Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 22, 2024
1 parent d6d1380 commit 29c9176
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neural_speed/application/main_pybind.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ void init_gpt_params(gpt_params* params, const std::string& model_path, int max_
params->model_arch = model_name_to_arch::init().find(params->model_name);
params->model = model_path;
if (max_new_tokens < 0) {
fprintf(stderr, "warning: max_new_tokens must be not less than 0, reseting it to 0.\n");
fprintf(stderr, "warning: max_new_tokens must be not less than 0, resetting it to 0.\n");
params->n_predict = 0;
} else {
params->n_predict = max_new_tokens;
Expand Down

0 comments on commit 29c9176

Please sign in to comment.