Skip to content
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

llama-chat : add phi 4 template #11148

Merged
merged 1 commit into from
Jan 9, 2025
Merged

Conversation

ngxson
Copy link
Collaborator

@ngxson ngxson commented Jan 8, 2025

Phi 4 uses a template that may look like chatml, but not the same:

<|im_start|>system<|im_sep|>{system_prompt}<|im_end|><|im_start|>user<|im_sep|>{prompt}<|im_end|><|im_start|>assistant<|im_sep|><|im_end|>

There is no more \n character in the template, everything is now special tokens

@ngxson ngxson requested a review from ggerganov January 8, 2025 22:10
@github-actions github-actions bot added the testing Everything test related label Jan 8, 2025
@ngxson ngxson merged commit d9feae1 into ggerganov:master Jan 9, 2025
48 checks passed
bandoti pushed a commit to bandoti/llama.cpp that referenced this pull request Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Everything test related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants