-
Notifications
You must be signed in to change notification settings - Fork 450
Adds more stop-tokens to chat formatter #699
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
cli/server.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we change this to
chatFormatterResponse.stop.extend(["<|system|>", "<|user|>", "<|assistant|>"])
(with properly formatting to make linter happy)
i think this reads better as we are actually adding more EOS tokens to the existing list which is set to be only the eos_token in the Jinja2ChatFormatter initialization.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah sure, will update
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JamesKunstle any update on this?
hickeyma
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JamesKunstle Just wondering if this is covered by the work done in #559 and #547?
|
this is to fix #159 |
Signed-off-by: James Kunstle <[email protected]>
f15b0e9 to
0bee5cf
Compare
|
@xukai92 functional test caught a problem- I misinterpreted the return from -> can close this PR without merging, it doesn't fix the problem. |
|
Closing as per @JamesKunstle comment in #699 (comment) |
We need to stale things! --------- Signed-off-by: JJ Asghar <[email protected]> Co-authored-by: BJ Hargrave <[email protected]>
Resolves #452
May fix #159, #137
Adds more stop-tokens to
ChatFormatterobject:[<|endoftext|>, <|system|>, <|user|>, <|assistant|>]