Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
47353f5e
Unverified
Commit
47353f5e
authored
Jul 11, 2024
by
Michael Yang
Committed by
GitHub
Jul 11, 2024
Browse files
Merge pull request #5639 from ollama/mxyng/unaggregated-system
parents
10e76882
5056bb9c
Changes
24
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
23 deletions
+6
-23
template/testdata/llama2-chat.gotmpl/user-assistant-user
template/testdata/llama2-chat.gotmpl/user-assistant-user
+3
-1
template/testdata/mistral-instruct.gotmpl/system-user-assistant-user
...stdata/mistral-instruct.gotmpl/system-user-assistant-user
+3
-2
template/vicuna.gotmpl
template/vicuna.gotmpl
+0
-11
template/zephyr.gotmpl
template/zephyr.gotmpl
+0
-9
No files found.
template/testdata/llama2-chat.gotmpl/user-assistant-user
View file @
47353f5e
[INST] <<SYS>><</SYS>>
[INST] <<SYS>><</SYS>>
Hello, how are you? [/INST] I'm doing great. How can I help you today?</s><s>[INST] I'd like to show off how chat templating works! [/INST]
Hello, how are you? [/INST] I'm doing great. How can I help you today?</s><s>[INST] <<SYS>><</SYS>>
\ No newline at end of file
I'd like to show off how chat templating works! [/INST]
\ No newline at end of file
template/testdata/mistral-instruct.gotmpl/system-user-assistant-user
View file @
47353f5e
[INST] Hello, how are you?[/INST] I'm doing great. How can I help you today?</s>[INST] You are a helpful assistant.
[INST] You are a helpful assistant.
I'd like to show off how chat templating works![/INST]
\ No newline at end of file
Hello, how are you?[/INST] I'm doing great. How can I help you today?</s>[INST] I'd like to show off how chat templating works![/INST]
\ No newline at end of file
template/vicuna.gotmpl
View file @
47353f5e
{{- if .Messages }}
{{- if .System }}{{ .System }}
{{ end }}
{{- range .Messages }}
{{- if eq .Role "user" }}USER: {{ .Content }}
{{ else if eq .Role "assistant" }}ASSISTANT: {{ .Content }}</s>
{{ end }}
{{- end }}ASSISTANT:
{{- else -}}
{{ if .System }}{{ .System }}
{{ if .System }}{{ .System }}
{{ end }}{{ if .Prompt }}USER: {{ .Prompt }}
{{ end }}{{ if .Prompt }}USER: {{ .Prompt }}
{{ end }}ASSISTANT: {{ .Response }}</s>
{{ end }}ASSISTANT: {{ .Response }}</s>
{{ end -}}
\ No newline at end of file
template/zephyr.gotmpl
View file @
47353f5e
{{- if .Messages }}
{{- if .System }}<|system|>
{{ .System }}</s>
{{ end }}
{{- range .Messages }}<|{{ .Role }}|>
{{ .Content }}</s>
{{ end }}<|assistant|>
{{ else -}}
{{ if .System }}<|system|>
{{ if .System }}<|system|>
{{ .System }}</s>
{{ .System }}</s>
{{ end }}{{ if .Prompt }}<|user|>
{{ end }}{{ if .Prompt }}<|user|>
{{ .Prompt }}</s>
{{ .Prompt }}</s>
{{ end }}<|assistant|>
{{ end }}<|assistant|>
{{ .Response }}</s>
{{ .Response }}</s>
{{ end -}}
\ No newline at end of file
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment