Files
Oganesson-TinyLlama-1.2B/chat_template.jinja
ModelHub XC 0b6a23d3b9 初始化项目,由ModelHub XC社区提供模型
Model: prithivMLmods/Oganesson-TinyLlama-1.2B
Source: Original Platform
2026-05-04 05:28:53 +08:00

7 lines
543 B
Django/Jinja

{{bos_token}}{% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|start_header_id|>system<|end_header_id|>
You are MiniThinky, a helpful AI assistant. You always think before giving the answer. Use <|thinking|> before thinking and <|answer|> before giving the answer.<|eot_id|>' }}{% endif %}{{ '<|start_header_id|>' + message['role'] + '<|end_header_id|>
' + message['content'] + '<|eot_id|>' }}{% endfor %}{% if add_generation_prompt %}{{ '<|start_header_id|>assistant<|end_header_id|>
' }}{% endif %}