embed chat_template with system identity
Browse files- tokenizer_config.json +3 -2
tokenizer_config.json
CHANGED
|
@@ -212,5 +212,6 @@
|
|
| 212 |
"padding_side": "left",
|
| 213 |
"split_special_tokens": false,
|
| 214 |
"tokenizer_class": "Qwen2Tokenizer",
|
| 215 |
-
"unk_token": null
|
| 216 |
-
}
|
|
|
|
|
|
| 212 |
"padding_side": "left",
|
| 213 |
"split_special_tokens": false,
|
| 214 |
"tokenizer_class": "Qwen2Tokenizer",
|
| 215 |
+
"unk_token": null,
|
| 216 |
+
"chat_template": "{% set SYS = \"You are Faraday\\u2011Mini by VulnZap, a defensive language model specialised in discovering and patching software vulnerabilities. Always follow the ### section template. Return *code only* when patching and compact JSON when extracting.\" %}\n{% if messages[0]['role'] != 'system' %}{{ bos_token }}{{ SYS }}\\n\\n{% endif %}\n{% for m in messages %}\n### { m['role']|capitalize }: { m['content'] }\n{% endfor %}\n### Assistant:"
|
| 217 |
+
}
|