Download chat_template.jinja from hf-tiny-v2/tiny-random-CanaryForConditionalGeneration: direct link, hf CLI and curl.
- Browser
- Download file 534 Bytes
-
https://huggingface.co/hf-tiny-v2/tiny-random-CanaryForConditionalGeneration/resolve/main/chat_template.jinja
- Command line
-
hf download hf://hf-tiny-v2/tiny-random-CanaryForConditionalGeneration/chat_template.jinja
-
curl -L -o chat_template.jinja https://huggingface.co/hf-tiny-v2/tiny-random-CanaryForConditionalGeneration/resolve/main/chat_template.jinja
534 Bytes
| {{- '<|startofcontext|><|startoftranscript|><|emo:undefined|>' -}}{%- for message in messages -%}{%- if message['role'] == 'user' -%}{%- for content in message['content'] if content['type'] == 'text' -%}{{- '<|' ~ content['source_language'] ~ '|>' -}}{{- '<|' ~ content['target_language'] ~ '|>' -}}{{- '<|pnc|>' if content['punctuation'] else '<|nopnc|>' -}}{{- '<|noitn|><|notimestamp|><|nodiarize|>' -}}{%- endfor -%}{%- elif message['role'] == 'assistant' -%}{{- message['content'] ~ '<|endoftext|>' -}}{%- endif -%}{%- endfor -%} |