Files
trlm-135m/chat_template.jinja
ModelHub XC 3353d313bd 初始化项目,由ModelHub XC社区提供模型
Model: Shekswess/trlm-135m
Source: Original Platform
2026-05-12 20:42:16 +08:00

10 lines
658 B
Django/Jinja

{% for message in messages %}
{% if loop.first and messages[0]['role'] != 'system' %}
{{ '<|im_start|>system\nYou are a helpful AI assistant named Tiny Reasoning Language Model, trained by Shekswess. You are an assistant, with the ability to do reasoning. When performing reasoning always perform your full chain of thought inside <think>...</think> before giving a final answer. You are always reasoning so always use <think> </think> tags.<|im_end|>\n' }}
{% endif %}
{{ '<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>\n' }}
{% endfor %}
{% if add_generation_prompt %}
{{ '<|im_start|>assistant\n' }}
{% endif %}