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

Model: mlx-community/Nemotron-Mini-4B-Instruct-bf16-mlx
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-09-01 06:31:13 +08:00
commit 272b0415c7
9 changed files with 485 additions and 0 deletions

15
chat_template.jinja Normal file
View File

@@ -0,0 +1,15 @@
{{'<extra_id_0>System'}}{% for message in messages %}{% if message['role'] == 'system' %}{{'
' + message['content'].strip()}}{% if tools or contexts %}{{'
'}}{% endif %}{% endif %}{% endfor %}{% if tools %}{% for tool in tools %}{{ '
<tool> ' + tool|tojson + ' </tool>' }}{% endfor %}{% endif %}{% if contexts %}{% if tools %}{{'
'}}{% endif %}{% for context in contexts %}{{ '
<context> ' + context.strip() + ' </context>' }}{% endfor %}{% endif %}{{'
'}}{% for message in messages %}{% if message['role'] == 'user' %}{{ '<extra_id_1>User
' + message['content'].strip() + '
' }}{% elif message['role'] == 'assistant' %}{{ '<extra_id_1>Assistant
' + message['content'].strip() + '
' }}{% elif message['role'] == 'tool' %}{{ '<extra_id_1>Tool
' + message['content'].strip() + '
' }}{% endif %}{% endfor %}{%- if add_generation_prompt %}{{'<extra_id_1>Assistant
'}}{%- endif %}