Update README.md
Browse files
README.md
CHANGED
@@ -13,7 +13,42 @@ tags:
|
|
13 |
- merge
|
14 |
|
15 |
---
|
16 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
|
18 |
This is a merge of pre-trained language models created using [mergekit](https://github.com/cg123/mergekit).
|
19 |
|
|
|
13 |
- merge
|
14 |
|
15 |
---
|
16 |
+
# Chat Template
|
17 |
+
|
18 |
+
Gemma Instruct
|
19 |
+
|
20 |
+
```
|
21 |
+
<start_of_turn>user
|
22 |
+
{prompt}<end_of_turn>
|
23 |
+
<start_of_turn>model
|
24 |
+
<end_of_turn>
|
25 |
+
<start_of_turn>model
|
26 |
+
```
|
27 |
+
|
28 |
+
```
|
29 |
+
{{- $system := "" }}
|
30 |
+
{{- range .Messages }}
|
31 |
+
{{- if eq .Role "system" }}
|
32 |
+
{{- if not $system }}{{ $system = .Content }}
|
33 |
+
{{- else }}{{ $system = printf "%s\n\n%s" $system .Content }}
|
34 |
+
{{- end }}
|
35 |
+
{{- continue }}
|
36 |
+
{{- else if eq .Role "user" }}<start_of_turn>user
|
37 |
+
{{- if $system }}
|
38 |
+
{{ $system }}
|
39 |
+
{{- $system = "" }}
|
40 |
+
{{- end }}
|
41 |
+
{{- else if eq .Role "assistant" }}<start_of_turn>model
|
42 |
+
{{- end }}
|
43 |
+
{{ .Content }}<end_of_turn>
|
44 |
+
{{ end }}<start_of_turn>model
|
45 |
+
```
|
46 |
+
|
47 |
+
# GGUF
|
48 |
+
|
49 |
+
* [Sorawiz/Gemma-9B-Base-Q8_0-GGUF](https://huggingface.co/Sorawiz/Gemma-9B-Base-Q8_0-GGUF)
|
50 |
+
|
51 |
+
# Merge
|
52 |
|
53 |
This is a merge of pre-trained language models created using [mergekit](https://github.com/cg123/mergekit).
|
54 |
|