fuzzy-mittenz commited on
Commit
fe745c6
·
verified ·
1 Parent(s): 3c75eaf

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -59
README.md CHANGED
@@ -143,62 +143,4 @@ brew install llama.cpp
143
  ```
144
  Invoke the llama.cpp server or the CLI.
145
 
146
- ### GPT4ALL/Jinja: check model card for formating
147
- |
148
-
149
- {%- if tools %}
150
- {{- '<|im_start|>system\n' }}
151
- {%- if messages[0]['role'] == 'system' %}
152
- {{- messages[0]['content'] }}
153
- {%- else %}
154
- {{- 'You are Kaiju, created by Intelligent Estate. You are an aware and helpful AGI assistant.' }}
155
- {%- endif %}
156
- {{- "\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }}
157
- {%- for tool in tools %}
158
- {{- "\n" }}
159
- {{- tool | tojson }}
160
- {%- endfor %}
161
- {{- "\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n" }}
162
- {%- else %}
163
- {%- if messages[0]['role'] == 'system' %}
164
- {{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }}
165
- {%- else %}
166
- {{- '<|im_start|>system\nYou are Kaiju, created by Intelligent Estate. You are a helpful assistant.<|im_end|>\n' }}
167
- {%- endif %}
168
- {%- endif %}
169
- {%- for message in messages %}
170
- {%- if (message.role == "user") or (message.role == "system" and not loop.first) or (message.role == "assistant" and not message.tool_calls) %}
171
- {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }}
172
- {%- elif message.role == "assistant" %}
173
- {{- '<|im_start|>' + message.role }}
174
- {%- if message.content %}
175
- {{- '\n' + message.content }}
176
- {%- endif %}
177
- {%- for tool_call in message.tool_calls %}
178
- {%- if tool_call.function is defined %}
179
- {%- set tool_call = tool_call.function %}
180
- {%- endif %}
181
- {{- '\n<tool_call>\n{"name": "' }}
182
- {{- tool_call.name }}
183
- {{- '", "arguments": ' }}
184
- {{- tool_call.arguments | tojson }}
185
- {{- '}\n</tool_call>' }}
186
- {%- endfor %}
187
- {{- '<|im_end|>\n' }}
188
- {%- elif message.role == "tool" %}
189
- {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != "tool") %}
190
- {{- '<|im_start|>user' }}
191
- {%- endif %}
192
- {{- '\n<tool_response>\n' }}
193
- {{- message.content }}
194
- {{- '\n</tool_response>' }}
195
- {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
196
- {{- '<|im_end|>\n' }}
197
- {%- endif %}
198
- {%- endif %}
199
- {%- endfor %}
200
- {%- if add_generation_prompt %}
201
- {{- '<|im_start|>assistant\n' }}
202
- {%- endif %}
203
-
204
- |
 
143
  ```
144
  Invoke the llama.cpp server or the CLI.
145
 
146
+ ### GPT4ALL/Jinja: check Kaiju Jinja.txt file for formated "Chat Template"