[GH-ISSUE #805] Where are the role names specified? #387

Closed
opened 2026-04-12 10:01:57 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @louisabraham on GitHub (Oct 16, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/805

Different models have different names for the roles (eg USER, ASSISTANT, AI).

This is how llama.cpp handles them:

I didn't find any specification of reverse-prompt anywhere. Do you know if it is used?

I found templates, like

USER: {{ .Prompt }}
ASSISTANT: 

for Vicuna and

[INST] {{ .Prompt }} [/INST]

for Mistral.

Originally created by @louisabraham on GitHub (Oct 16, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/805 Different models have different names for the roles (eg USER, ASSISTANT, AI). This is how llama.cpp handles them: - https://github.com/ggerganov/llama.cpp/blob/11bff290458f12f020b588792707f76ec658a27a/examples/chat-vicuna.sh - https://github.com/ggerganov/llama.cpp/blob/11bff290458f12f020b588792707f76ec658a27a/examples/chat-13B.sh I didn't find any specification of reverse-prompt anywhere. Do you know if it is used? I found templates, like ``` USER: {{ .Prompt }} ASSISTANT: ``` for Vicuna and ``` [INST] {{ .Prompt }} [/INST] ``` for Mistral.
Author
Owner

@mxyng commented on GitHub (Oct 25, 2023):

Roles are defined in the Modelfile. You can see the Modelfile of a particular model with ollama show --modelfile <model>.

<!-- gh-comment-id:1779937450 --> @mxyng commented on GitHub (Oct 25, 2023): Roles are defined in the Modelfile. You can see the Modelfile of a particular model with `ollama show --modelfile <model>`.
Author
Owner

@louisabraham commented on GitHub (Oct 31, 2023):

My question is actually: do you use reverse prompts? Can Vicuna have "USER:" in its output?

<!-- gh-comment-id:1787319580 --> @louisabraham commented on GitHub (Oct 31, 2023): My question is actually: do you use reverse prompts? Can Vicuna have "USER:" in its output?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#387