-
Notifications
You must be signed in to change notification settings - Fork 468
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
Add deepseek-r1 chat template #3072
base: main
Are you sure you want to change the base?
Conversation
|
||
|
||
@pytest.mark.parametrize('model_path_or_name', [ | ||
'deepseek-ai/DeepSeek-R1-Distill-Llama-70B', |
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.
May add all models in the group https://huggingface.co/collections/deepseek-ai/deepseek-r1-678e1e131c0169c0bc89728d to the test cases.
Im just 👀 to learn how you did it. Maybe if its easy like this I can add the next one? |
|
||
def messages2prompt(self, messages, sequence_start=True, **kwargs): | ||
if sequence_start and not isinstance(messages, str): | ||
return '<|begin▁of▁sentence|>' + super().messages2prompt(messages, sequence_start, **kwargs) |
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.
do you need to include the tags?
Thank you I’ll try to do one next time |
#3070