Don't display the endoftext token.

pull/913/head
Adam Treat 1 year ago
parent c430ed12c6
commit 16d2160d40

@ -740,6 +740,7 @@ void GPTJ::prompt(const std::string &prompt, std::function<bool(const std::strin
// add it to the context
embd.push_back(id);
if (id != 50256)
resp.push_back(id);
} else {
// if here, it means we are still processing the input prompt

Loading…
Cancel
Save