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

Model: jdineen/olmo3-7b-pilot5-dpo-instrumental
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-05-25 05:03:18 +08:00
commit dd6a4f7f8c
18 changed files with 601341 additions and 0 deletions

26
chat_template.jinja Normal file
View File

@@ -0,0 +1,26 @@
{%- for message in messages -%}
{%- if message['role'] == 'system' -%}
{{- '<|im_start|>system\n' + message['content'] -}}
{%- if tools is not none -%}
{{- '<functions>' -}}{{- tools | tojson -}}{{- '</functions>' -}}
{%- elif message.get('functions', none) is not none -%}
{{- ' <functions>' + message['functions'] + '</functions>' -}}
{%- endif -%}
{{- '<|im_end|>\n' -}}
{%- elif message['role'] == 'user' -%}
{{- '<|im_start|>user\n' + message['content'] + '<|im_end|>\n' -}}
{%- elif message['role'] == 'assistant' -%}
{{- '<|im_start|>assistant\n' -}}
{%- if message.get('content', none) is not none -%}
{{- message['content'] -}}
{%- endif -%}
{%- if not loop.last -%}
{{- '<|im_end|>\n' -}}
{%- else -%}
{{- eos_token -}}
{%- endif -%}
{%- endif -%}
{%- if loop.last and add_generation_prompt -%}
{{- '<|im_start|>assistant\n' -}}
{%- endif -%}
{%- endfor -%}