Download chat_template.jinja from hf-tiny-v2/tiny-random-GlmImageTextModel: direct link, hf CLI and curl.
- Browser
- Download file 435 Bytes
-
https://huggingface.co/hf-tiny-v2/tiny-random-GlmImageTextModel/resolve/main/chat_template.jinja
- Command line
-
hf download hf://hf-tiny-v2/tiny-random-GlmImageTextModel/chat_template.jinja
-
curl -L -o chat_template.jinja https://huggingface.co/hf-tiny-v2/tiny-random-GlmImageTextModel/resolve/main/chat_template.jinja
435 Bytes
| {%- for m in messages -%} | |
| {%- if m.content is string -%} | |
| {{ m.content }} | |
| {%- else -%} | |
| {%- for item in m.content -%} | |
| {%- if item.type == 'image' or item.get('image') is not none -%} | |
| <|dit_token_16384|><|image|><|dit_token_16385|> | |
| {%- elif item.type == 'text' -%} | |
| {{ item.text }} | |
| {%- endif -%} | |
| {%- endfor -%} | |
| {%- endif -%} | |
| {%- endfor -%} |