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
fb6cbc02
Commit
fb6cbc02
authored
Jun 27, 2024
by
Michael Yang
Browse files
update named templates
parent
326363b3
Changes
75
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
113 additions
and
2 deletions
+113
-2
template/testdata/phi-3.gotmpl/user-assistant-user
template/testdata/phi-3.gotmpl/user-assistant-user
+7
-0
template/testdata/solar-instruct.gotmpl/system-user-assistant-user
...testdata/solar-instruct.gotmpl/system-user-assistant-user
+13
-0
template/testdata/solar-instruct.gotmpl/user
template/testdata/solar-instruct.gotmpl/user
+4
-0
template/testdata/solar-instruct.gotmpl/user-assistant-user
template/testdata/solar-instruct.gotmpl/user-assistant-user
+10
-0
template/testdata/starcoder2-instruct.gotmpl/system-user-assistant-user
...ata/starcoder2-instruct.gotmpl/system-user-assistant-user
+12
-0
template/testdata/starcoder2-instruct.gotmpl/user
template/testdata/starcoder2-instruct.gotmpl/user
+4
-0
template/testdata/starcoder2-instruct.gotmpl/user-assistant-user
...e/testdata/starcoder2-instruct.gotmpl/user-assistant-user
+10
-0
template/testdata/vicuna.gotmpl/system-user-assistant-user
template/testdata/vicuna.gotmpl/system-user-assistant-user
+6
-0
template/testdata/vicuna.gotmpl/user
template/testdata/vicuna.gotmpl/user
+2
-0
template/testdata/vicuna.gotmpl/user-assistant-user
template/testdata/vicuna.gotmpl/user-assistant-user
+4
-0
template/testdata/zephyr.gotmpl/system-user-assistant-user
template/testdata/zephyr.gotmpl/system-user-assistant-user
+9
-0
template/testdata/zephyr.gotmpl/user
template/testdata/zephyr.gotmpl/user
+3
-0
template/testdata/zephyr.gotmpl/user-assistant-user
template/testdata/zephyr.gotmpl/user-assistant-user
+7
-0
template/vicuna.gotmpl
template/vicuna.gotmpl
+12
-1
template/zephyr.gotmpl
template/zephyr.gotmpl
+10
-1
No files found.
template/testdata/phi-3.gotmpl/user-assistant-user
0 → 100644
View file @
fb6cbc02
<|user|>
Hello, how are you?<|end|>
<|assistant|>
I'm doing great. How can I help you today?<|end|>
<|user|>
I'd like to show off how chat templating works!<|end|>
<|assistant|>
template/testdata/solar-instruct.gotmpl/system-user-assistant-user
0 → 100644
View file @
fb6cbc02
### System:
You are a helpful assistant.
### User:
Hello, how are you?
### Assistant:
I'm doing great. How can I help you today?</s>
### User:
I'd like to show off how chat templating works!
### Assistant:
template/testdata/solar-instruct.gotmpl/user
0 → 100644
View file @
fb6cbc02
### User:
Hello, how are you?
### Assistant:
template/testdata/solar-instruct.gotmpl/user-assistant-user
0 → 100644
View file @
fb6cbc02
### User:
Hello, how are you?
### Assistant:
I'm doing great. How can I help you today?</s>
### User:
I'd like to show off how chat templating works!
### Assistant:
template/testdata/starcoder2-instruct.gotmpl/system-user-assistant-user
0 → 100644
View file @
fb6cbc02
You are a helpful assistant.
### Instruction
Hello, how are you?
### Response
I'm doing great. How can I help you today?<|endoftext|>
### Instruction
I'd like to show off how chat templating works!
### Response
template/testdata/starcoder2-instruct.gotmpl/user
0 → 100644
View file @
fb6cbc02
### Instruction
Hello, how are you?
### Response
template/testdata/starcoder2-instruct.gotmpl/user-assistant-user
0 → 100644
View file @
fb6cbc02
### Instruction
Hello, how are you?
### Response
I'm doing great. How can I help you today?<|endoftext|>
### Instruction
I'd like to show off how chat templating works!
### Response
template/testdata/vicuna.gotmpl/system-user-assistant-user
0 → 100644
View file @
fb6cbc02
You are a helpful assistant.
USER: Hello, how are you?
ASSISTANT: I'm doing great. How can I help you today?</s>
USER: I'd like to show off how chat templating works!
ASSISTANT:
\ No newline at end of file
template/testdata/vicuna.gotmpl/user
0 → 100644
View file @
fb6cbc02
USER: Hello, how are you?
ASSISTANT:
\ No newline at end of file
template/testdata/vicuna.gotmpl/user-assistant-user
0 → 100644
View file @
fb6cbc02
USER: Hello, how are you?
ASSISTANT: I'm doing great. How can I help you today?</s>
USER: I'd like to show off how chat templating works!
ASSISTANT:
\ No newline at end of file
template/testdata/zephyr.gotmpl/system-user-assistant-user
0 → 100644
View file @
fb6cbc02
<|system|>
You are a helpful assistant.</s>
<|user|>
Hello, how are you?</s>
<|assistant|>
I'm doing great. How can I help you today?</s>
<|user|>
I'd like to show off how chat templating works!</s>
<|assistant|>
template/testdata/zephyr.gotmpl/user
0 → 100644
View file @
fb6cbc02
<|user|>
Hello, how are you?</s>
<|assistant|>
template/testdata/zephyr.gotmpl/user-assistant-user
0 → 100644
View file @
fb6cbc02
<|user|>
Hello, how are you?</s>
<|assistant|>
I'm doing great. How can I help you today?</s>
<|user|>
I'd like to show off how chat templating works!</s>
<|assistant|>
template/vicuna.gotmpl
View file @
fb6cbc02
{{- 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 }}
{{ end }}{{ if .Prompt }}USER: {{ .Prompt }}
{{ end }}ASSISTANT: {{ .Response }}
\ No newline at end of file
{{ end }}ASSISTANT: {{ .Response }}
{{- end }}
\ No newline at end of file
template/zephyr.gotmpl
View file @
fb6cbc02
{{- if .Messages }}
{{- if .System }}<|system|>
{{ .System }}</s>
{{ end }}
{{- range .Messages }}<|{{ .Role }}|>
{{ .Content }}</s>
{{ end }}<|assistant|>
{{ else }}
{{ if .System }}<|system|>
{{ .System }}</s>
{{ end }}{{ if .Prompt }}<|user|>
{{ .Prompt }}</s>
{{ end }}<|assistant|>
{{ .Response }}</s>
\ No newline at end of file
{{ .Response }}</s>
{{- end }}
\ No newline at end of file
Prev
1
2
3
4
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