admin管理员组文章数量:1130349
原始 chat_template:
{%- if tools %}
{
{- ‘<|im_start|>system\n’ }}
{%- if messages[0][‘role’] == ‘system’ %}
{
{- messages[0][‘content’] }}
{%- else %}
{
{- ‘You are Qwen, created by Alibaba Cloud. You are a helpful assistant.’ }}
{%- endif %}
{
{- “\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within XML tags:\n” }}
{%- for tool in tools %}
{
{- “\n” }}
{
{- tool | tojson }}
{%- endfor %}
{
{- “\n\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{“name”: , “arguments”: }\n</tool_call&
原始 chat_template:
{%- if tools %}
{
{- ‘<|im_start|>system\n’ }}
{%- if messages[0][‘role’] == ‘system’ %}
{
{- messages[0][‘content’] }}
{%- else %}
{
{- ‘You are Qwen, created by Alibaba Cloud. You are a helpful assistant.’ }}
{%- endif %}
{
{- “\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within XML tags:\n” }}
{%- for tool in tools %}
{
{- “\n” }}
{
{- tool | tojson }}
{%- endfor %}
{
{- “\n\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{“name”: , “arguments”: }\n</tool_call&
版权声明:本文标题:Qwen 大模型-对话模板中system与user的区别解析 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/jiaocheng/1754770047a2726176.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论