Another antiprompt fix
This commit is contained in:
parent
9425a21db5
commit
ce7ebb3319
1 changed files with 2 additions and 1 deletions
3
main.cpp
3
main.cpp
|
@ -1004,7 +1004,8 @@ int main(int argc, char ** argv) {
|
|||
buf[n_read+1] = 0;
|
||||
}
|
||||
|
||||
std::vector<gpt_vocab::id> line_inp = ::llama_tokenize(vocab, buf, false);
|
||||
std::vector<gpt_vocab::id> line_inp;
|
||||
processor.Encode(buf, &antiprompt_inp);
|
||||
embd_inp.insert(embd_inp.end(), line_inp.begin(), line_inp.end());
|
||||
|
||||
input_noecho = true; // do not echo this again
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue