Skip to content

llama-chat : add phi 4 template#11148

Merged
ngxson merged 1 commit intoggml-org:masterfrom
ngxson:xsn/phi4_tmpl
Jan 9, 2025
Merged

llama-chat : add phi 4 template#11148
ngxson merged 1 commit intoggml-org:masterfrom
ngxson:xsn/phi4_tmpl

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 ggml-org:master Jan 9, 2025
mtmcp pushed a commit to mtmcp/llama.cpp that referenced this pull request Jan 9, 2025
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Feb 26, 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