From 71c0a27fdfb93c5d26e194d5bb18e5cd0151c074 Mon Sep 17 00:00:00 2001 From: Le Hoang Anh Date: Wed, 20 Dec 2023 11:10:49 +0700 Subject: [PATCH] Fixed params count --- common/common.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/common/common.cpp b/common/common.cpp index def94b4e1..615ac00b4 100644 --- a/common/common.cpp +++ b/common/common.cpp @@ -150,10 +150,6 @@ bool gpt_params_parse_ex(int argc, char ** argv, gpt_params & params) { } params.seed = std::stoul(argv[i]); } else if (arg == "-awq" || arg == "--use-awq") { - if (++i >= argc) { - invalid_param = true; - break; - } params.use_awq = true; } else if (arg == "-t" || arg == "--threads") { if (++i >= argc) {