mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2024-10-01 01:06:10 -04:00
Don't display the endoftext token.
This commit is contained in:
parent
02e13737f3
commit
bd5e279621
3
gptj.cpp
3
gptj.cpp
@ -740,7 +740,8 @@ void GPTJ::prompt(const std::string &prompt, std::function<bool(const std::strin
|
||||
|
||||
// add it to the context
|
||||
embd.push_back(id);
|
||||
resp.push_back(id);
|
||||
if (id != 50256)
|
||||
resp.push_back(id);
|
||||
} else {
|
||||
// if here, it means we are still processing the input prompt
|
||||
for (int k = i; k < embd_inp.size(); k++) {
|
||||
|
Loading…
Reference in New Issue
Block a user