tokenize nothing for antiprompt if no reverse
This commit is contained in:
parent
da0837f55f
commit
c4efdb22af
1 changed files with 1 additions and 1 deletions
2
main.cpp
2
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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue