From c4efdb22af1175dbd8308d981d17fb17ed7e4f18 Mon Sep 17 00:00:00 2001 From: rabidcopy Date: Wed, 22 Mar 2023 11:22:56 -0500 Subject: [PATCH] tokenize nothing for antiprompt if no reverse --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index df9d0f152..b64e9d13f 100644 --- a/main.cpp +++ b/main.cpp @@ -250,7 +250,7 @@ int main(int argc, char ** argv) { } // tokenize the first reverse prompt - auto first_antiprompt = ::llama_tokenize(ctx, params.prompt,false); + auto first_antiprompt = ::llama_tokenize(ctx,"",false); if (!params.antiprompt.empty()) { auto first_antiprompt = ::llama_tokenize(ctx, params.antiprompt.front(), false); }