初始化项目,由ModelHub XC社区提供模型

Model: khbr267/Llama-3-8B-Legal-Chatbot-Exp1
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-08-05 15:49:16 +08:00
commit d1958c55f7
12 changed files with 2492 additions and 0 deletions

9
chat_template.jinja Normal file
View File

@@ -0,0 +1,9 @@
{{ bos_token }}{% for message in messages %}{% if message['role'] == 'user' %}{{ '<|start_header_id|>user<|end_header_id|>
' + message['content'] | trim + '<|eot_id|>' }}{% elif message['role'] == 'assistant' %}{{ '<|start_header_id|>assistant<|end_header_id|>
' + message['content'] | trim + '<|eot_id|>' }}{% else %}{{ '<|start_header_id|>' + message['role'] + '<|end_header_id|>
' + message['content'] | trim + '<|eot_id|>' }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '<|start_header_id|>assistant<|end_header_id|>
' }}{% endif %}