From 00f48ade6afdbb709bfa3e747a213dd266685161 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=E1=BA=A7n=20=C4=90=E1=BB=A9c=20Nam?= Date: Fri, 22 Dec 2023 15:55:21 +0700 Subject: [PATCH] fix: common.cpp --- common/common.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/common.cpp b/common/common.cpp index d8891b0d9..7053ed270 100644 --- a/common/common.cpp +++ b/common/common.cpp @@ -149,7 +149,7 @@ bool gpt_params_parse_ex(int argc, char ** argv, gpt_params & params) { break; } params.seed = std::stoul(argv[i]); - } else if (arg == "-awq" || arg == "--use-awq") { + } else if (arg == "--use-awq") { params.use_awq = true; } else if (arg == "-t" || arg == "--threads") { if (++i >= argc) { @@ -811,7 +811,7 @@ void gpt_print_usage(int /*argc*/, char ** argv, const gpt_params & params) { printf(" (can be specified more than once for multiple prompts).\n"); printf(" --color colorise output to distinguish prompt and user input from generations\n"); printf(" -s SEED, --seed SEED RNG seed (default: -1, use random seed for < 0)\n"); - printf(" -awq, --use-awq Using AWQ quantization model in inferences\n"); + printf(" --use-awq Using AWQ quantization model in inferences\n"); printf(" -t N, --threads N number of threads to use during generation (default: %d)\n", params.n_threads); printf(" -tb N, --threads-batch N\n"); printf(" number of threads to use during batch and prompt processing (default: same as --threads)\n");