Skip to content

llama-chat : add phi 4 template - #11148

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

ngxson merged 1 commit into
ggml-org:masterfrom
ngxson:xsn/phi4_tmpl

Conversation

@ngxson

@ngxson ngxson commented Jan 8, 2025 •

Copy link
Copy Markdown
Collaborator

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
Seunghhon pushed a commit to Seunghhon/llama.cpp that referenced this pull request Apr 26, 2026
ljubomirj pushed a commit to ljubomirj/llama.cpp that referenced this pull request May 6, 2026
my-other-github-account pushed a commit to my-other-github-account/llama.cpp that referenced this pull request May 15, 2026
AlexiAlp pushed a commit to minghaop/llama.cpp that referenced this pull request Jun 2, 2026
AlexiAlp pushed a commit to minghaop/llama.cpp that referenced this pull request Jun 2, 2026
fukuro-kun pushed a commit to fukuro-kun/fukuro-llama-cpp-turboquant that referenced this pull request Jul 5, 2026
zommiommy pushed a commit to zommiommy/llama.cpp that referenced this pull request Aug 18, 2026
frostyautumnleaf pushed a commit to frostyautumnleaf/llama.cpp that referenced this pull request Oct 5, 2026
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