Download chat_template.jinja from aksern/humanizer: direct link, hf CLI and curl.
- Browser
- Download file 1.02 kB
-
https://huggingface.co/aksern/humanizer/resolve/main/chat_template.jinja
- Command line
-
hf download hf://aksern/humanizer/chat_template.jinja
-
curl -L -o chat_template.jinja https://huggingface.co/aksern/humanizer/resolve/main/chat_template.jinja
1.02 kB
| {%- set INSTRUCTION = "Rewrite the text below so it reads like a person wrote it, not a language model.\n\nReorganize it as you see fit. Vary sentence length on purpose. Cut hedging,\nthroat-clearing, and any sentence that only announces what comes next.\nPrefer the concrete word over the abstract one. It is fine to sound uneven.\n\nEvery fact, number, unit, date, name and quotation must survive unchanged." -%} | |
| {%- set RESPONSE_MARKER = "### Rewritten:\n\n" -%} | |
| {%- for message in messages -%} | |
| {%- if message['role'] == 'system' -%} | |
| {{- message['content'].strip() -}} | |
| {{- "\n\n" -}} | |
| {%- elif message['role'] == 'user' -%} | |
| {%- if loop.first -%} | |
| {{- INSTRUCTION -}} | |
| {{- "\n\n" -}} | |
| {%- endif -%} | |
| {{- message['content'].strip() -}} | |
| {{- "\n\n" -}} | |
| {{- RESPONSE_MARKER -}} | |
| {%- elif message['role'] == 'assistant' -%} | |
| {{- message['content'].strip() -}} | |
| {{- "<|end_of_text|>" -}} | |
| {%- endif -%} | |
| {%- endfor -%} | |