mirror of
https://github.com/nomic-ai/gpt4all
synced 2024-11-08 07:10:32 +00:00
Don't display the endoftext token.
This commit is contained in:
parent
c430ed12c6
commit
16d2160d40
1
gptj.cpp
1
gptj.cpp
@ -740,6 +740,7 @@ void GPTJ::prompt(const std::string &prompt, std::function<bool(const std::strin
|
|||||||
|
|
||||||
// add it to the context
|
// add it to the context
|
||||||
embd.push_back(id);
|
embd.push_back(id);
|
||||||
|
if (id != 50256)
|
||||||
resp.push_back(id);
|
resp.push_back(id);
|
||||||
} else {
|
} else {
|
||||||
// if here, it means we are still processing the input prompt
|
// if here, it means we are still processing the input prompt
|
||||||
|
Loading…
Reference in New Issue
Block a user